/* BSK Property Report 1.0.0.
 * Colours come from the owner's photos of the Zameen-style window. The teal is a little deeper,
 * so the white text on the SEND button can be read. */

.bskrep-wrap { margin-top: 12px; }

.bskrep-open {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #c3cbd3;
    border-radius: 4px;
    background: #fff;
    color: #2b3138;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.bskrep-open:hover { background: #f4f6f8; }
.bskrep-flag { flex: 0 0 auto; color: #5b6670; }

.bskrep-overlay,
.bskrep-overlay * { box-sizing: border-box; }

.bskrep-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(12, 20, 28, 0.62);
}
.bskrep-overlay[hidden] { display: none !important; }

.bskrep-dialog {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #f5f6f7;
    color: #2b3138;
    border-radius: 4px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}
.bskrep-dialog:focus { outline: none; }

.bskrep-head {
    position: relative;
    padding: 16px 52px;
    background: #e9ecef;
    border-bottom: 1px solid #d3d9df;
    text-align: center;
}
.bskrep-head h2 {
    margin: 0;
    color: #23292f;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}
.bskrep-close {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5b6670;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.bskrep-close:hover { background: rgba(0, 0, 0, 0.06); }

.bskrep-form { padding: 18px 20px 20px; }
.bskrep-form[hidden],
.bskrep-done[hidden] { display: none !important; }

.bskrep-select {
    position: relative;
    display: block;
}
.bskrep-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 40px 0 14px;
    border: 1px solid #c3cbd3;
    border-radius: 2px;
    background-color: #fff;
    color: #23292f;
    font: inherit;
    font-size: 16px;
}
.bskrep-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5b6670;
    border-bottom: 2px solid #5b6670;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.bskrep-field { margin-top: 16px; }
.bskrep-field label {
    display: block;
    margin-bottom: 6px;
    color: #5b6670;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bskrep-req { margin-left: 1px; color: #23292f; }
.bskrep-field input,
.bskrep-field textarea {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #c3cbd3;
    border-radius: 2px;
    background: #fff;
    color: #23292f;
    font: inherit;
    font-size: 16px;
}
.bskrep-field textarea {
    height: auto;
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}
.bskrep-field input::placeholder,
.bskrep-field textarea::placeholder { color: #8a939c; opacity: 1; }

.bskrep-dialog input:focus,
.bskrep-dialog select:focus,
.bskrep-dialog textarea:focus {
    outline: 2px solid #1d8098;
    outline-offset: 0;
    border-color: #1d8098;
}

.bskrep-send {
    display: block;
    width: 100%;
    height: 48px;
    margin: 20px 0 0;
    padding: 0 16px;
    border: 0;
    border-radius: 2px;
    background: #1d8098;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.bskrep-send:hover { background: #17748a; }
.bskrep-send:disabled { opacity: 0.65; cursor: wait; }

.bskrep-open:focus-visible,
.bskrep-close:focus-visible,
.bskrep-send:focus-visible {
    outline: 3px solid #1d8098;
    outline-offset: 2px;
}

.bskrep-status {
    margin: 12px 0 0;
    color: #b42318;
    font-size: 14px;
}
.bskrep-status:empty { display: none; }

.bskrep-done { padding: 22px 20px 24px; text-align: center; }
.bskrep-done p { margin: 0 0 18px; font-size: 16px; }
.bskrep-done .bskrep-send { margin-top: 0; }

.bskrep-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.bskrep-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

html.bskrep-lock { overflow: hidden; }

@media (max-width: 420px) {
    .bskrep-overlay { padding: 12px; }
    .bskrep-dialog { max-width: none; }
    .bskrep-head h2 { font-size: 18px; }
}
