/* ═══════════════════════════════════════════════════════════════════════════
   Property Response Portal
   styles.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & base ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    background-color: #eef2f7;
    color: #1a202c;
    line-height: 1.65;
    min-height: 100vh;
}

/* ─── Page wrapper ──────────────────────────────────────────────────────── */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #0f2e4e 0%, #1a5276 100%);
    color: #ffffff;
    padding: 1.5rem 1.25rem 1.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.header-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.site-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ─── Main content ──────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 1rem 2rem;
}

/* ─── Form card ─────────────────────────────────────────────────────────── */
.form-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
    padding: 2.25rem 2.5rem;
}

/* ─── Form header ───────────────────────────────────────────────────────── */
.form-header {
    margin-bottom: 1.75rem;
}

.form-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f2e4e;
    margin-bottom: 0.4rem;
}

.form-intro {
    font-size: 0.93rem;
    color: #4a5568;
}

/* ─── Error box ─────────────────────────────────────────────────────────── */
.error-box {
    background: #fff5f5;
    border: 1px solid #f5a0a0;
    border-left: 5px solid #c0392b;
    border-radius: 5px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    color: #6b1414;
}

.error-box strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.error-box ul {
    margin: 0;
    padding-left: 1.3rem;
}

.error-box li {
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}

/* ─── Success box ───────────────────────────────────────────────────────── */
.success-box {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}

.success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #27ae60;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 1.1rem;
}

.success-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5e37;
    margin-bottom: 0.65rem;
}

.success-message {
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 0.4rem;
}

.success-sub {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.btn-again {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    background: #1a5276;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: background 0.15s;
}

.btn-again:hover {
    background: #154360;
}

/* ─── Fieldset sections ─────────────────────────────────────────────────── */
.form-section {
    border: 1px solid #d5dce6;
    border-radius: 7px;
    padding: 1.5rem 1.75rem 1.1rem;
    margin-bottom: 1.5rem;
}

.form-section legend {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1a5276;
    background: #ffffff;
    padding: 0 0.5rem;
}

/* ─── Form groups ───────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group:last-child {
    margin-bottom: 0.2rem;
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.35rem;
}

.field-sub {
    font-weight: 400;
    color: #718096;
    font-size: 0.8rem;
}

.req-star {
    color: #c0392b;
    font-weight: 700;
    margin-left: 2px;
}

/* ─── Inputs, selects, textarea ─────────────────────────────────────────── */
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.58rem 0.8rem;
    font-size: 0.97rem;
    font-family: inherit;
    color: #1a202c;
    background: #f9fbfd;
    border: 1px solid #c3cdd8;
    border-radius: 5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.14);
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ─── Currency prefix ───────────────────────────────────────────────────── */
.currency-wrap {
    display: flex;
    align-items: stretch;
}

.currency-prefix {
    display: flex;
    align-items: center;
    padding: 0.58rem 0.7rem;
    background: #edf2f7;
    border: 1px solid #c3cdd8;
    border-right: none;
    border-radius: 5px 0 0 5px;
    color: #4a5568;
    font-weight: 700;
    font-size: 0.97rem;
    line-height: 1;
    flex-shrink: 0;
}

.currency-wrap input {
    border-radius: 0 5px 5px 0;
}

/* ─── Field hint ────────────────────────────────────────────────────────── */
.field-hint {
    display: block;
    font-size: 0.78rem;
    color: #718096;
    margin-top: 0.3rem;
}

/* ─── Required note ─────────────────────────────────────────────────────── */
.required-note {
    font-size: 0.82rem;
    color: #718096;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ─── Form actions ──────────────────────────────────────────────────────── */
.form-actions {
    margin-top: 1.75rem;
    text-align: right;
}

.btn-submit {
    display: inline-block;
    padding: 0.8rem 2.25rem;
    background: #1a5276;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
    background: #154360;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    background: #0f2e4e;
}

.btn-submit:focus {
    outline: 3px solid rgba(26, 82, 118, 0.45);
    outline-offset: 2px;
}

/* ─── Honeypot  (hidden from real users — CSS only, no JavaScript) ──────── */
.hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: #0f2e4e;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    font-size: 0.82rem;
    padding: 1rem 1.25rem;
    margin-top: auto;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .site-title {
        font-size: 1.55rem;
    }

    .site-subtitle {
        font-size: 0.82rem;
    }

    .form-card {
        padding: 1.5rem 1.25rem;
        border-radius: 0;
        box-shadow: none;
    }

    .main-content {
        margin: 1rem auto;
        padding: 0 0 1.5rem;
    }

    .form-section {
        padding: 1.25rem 1rem 0.75rem;
    }

    .form-actions {
        text-align: center;
    }

    .btn-submit {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 380px) {
    .site-title {
        font-size: 1.3rem;
    }
}
