﻿
:root {
    --navy: #102A43;
    --navy-dark: #081D2C;
    --navy-soft: #183B56;
    --taupe: #B6A99A;
    --taupe-light: #E9E3DB;
    --gold: #C69A4A;
    --gold-light: #D8B56A;
    --cream: #F7F4EF;
    --white: #FFFFFF;
    --text: #253746;
    --muted: #71808B;
    --border: #DDD8D1;
    --error: #B64B4B;
    --success: #2E7052;
}


button,
input,
select,
textarea {
    font: inherit;
}

/* ==========================================
           FORM WRAPPER
        ========================================== */

.wrapper {
    width: min(980px, calc(100% - 32px));
    margin: -80px auto 80px;
    position: relative;
    z-index: 5;
}

.form-card {
    background: #fff;
    box-shadow: 0 25px 70px rgba(16,42,67,.12);
}

/* ==========================================
           PROGRESS
        ========================================== */

.progress-area {
    padding: 30px 40px;
    background: #FBFAF8;
    border-bottom: 1px solid var(--border);
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.progress-title {
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.progress-count {
    color: var(--muted);
    font-size: 12px;
}

.progress-line {
    height: 3px;
    background: #E5E0D9;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    background: var(--gold);
    transition: width .35s ease;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9AA1A6;
    font-size: 11px;
    font-weight: 700;
}

.step-number {
    width: 28px;
    height: 28px;
    border: 1px solid #D6D1CA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Georgia, serif;
    font-size: 12px;
}

.step.active {
    color: var(--navy);
}

    .step.active .step-number {
        border-color: var(--gold);
        background: var(--gold);
        color: var(--navy-dark);
    }

.step.completed {
    color: var(--navy);
}

    .step.completed .step-number {
        background: var(--navy);
        border-color: var(--navy);
        color: white;
    }

/* ==========================================
           FORM
        ========================================== */

.form-content {
    padding: 48px 50px 42px;
}

.form-step {
    display: none;
    animation: fadeStep .35s ease;
}

    .form-step.active {
        display: block;
    }

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-heading {
    margin-bottom: 35px;
}

    .step-heading h2 {
        color: var(--navy);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 32px;
        font-weight: 400;
        margin-bottom: 8px;
    }

    .step-heading p {
        color: var(--muted);
        font-size: 14px;
    }

/* ==========================================
           FORM GRID
        ========================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 26px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.required {
    color: var(--gold);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    outline: none;
    border-radius: 3px;
    transition: .2s ease;
}

input,
select {
    height: 52px;
    padding: 0 15px;
}

textarea {
    min-height: 190px;
    padding: 15px;
    resize: vertical;
    line-height: 1.7;
}

    input::placeholder,
    textarea::placeholder {
        color: #A6ADB2;
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(198,154,74,.10);
    }

select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

/* ==========================================
           PHONE
        ========================================== */

.phone {
    display: grid;
    grid-template-columns: 95px 1fr;
}

.phone-code {
    height: 52px;
    border: 1px solid var(--border);
    border-right: 0;
    background: #F5F2ED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.phone input {
    border-radius: 0 3px 3px 0;
}

/* ==========================================
           CHARACTER COUNT
        ========================================== */

.textarea-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    margin-top: 7px;
}

/* ==========================================
           ERROR
        ========================================== */

.error {
    display: none;
    color: var(--error);
    font-size: 11px;
    margin-top: 6px;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
    border-color: var(--error);
}

.field.invalid .error {
    display: block;
}

/* ==========================================
           ACREAGE
        ========================================== */

.exact-acreage {
    display: none;
    margin-top: 10px;
}

    .exact-acreage.show {
        display: block;
    }

/* ==========================================
           CONSENT
        ========================================== */

.consent {
    margin-top: 5px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .consent input {
        appearance: none;
        width: 19px;
        height: 19px;
        min-width: 19px;
        padding: 0;
        margin-top: 2px;
        cursor: pointer;
        border: 1px solid #BDB7AE;
    }

        .consent input:checked {
            background: var(--navy);
            border-color: var(--navy);
        }

            .consent input:checked::after {
                content: "✓";
                display: block;
                color: #fff;
                font-size: 13px;
                line-height: 17px;
                text-align: center;
            }

    .consent label {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
    }

    .consent a {
        color: var(--navy);
        font-weight: 700;
        text-decoration: underline;
    }

    .consent.invalid label {
        color: var(--error);
    }

/* ==========================================
           BUTTONS
        ========================================== */

.navigation {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn {
    min-height: 52px;
    padding: 0 27px;
    cursor: pointer;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    transition: .2s ease;
}

.btn-back {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
}

    .btn-back:hover {
        border-color: var(--navy);
    }

.btn-next,
.btn-submit {
    background: var(--gold);
    color: var(--navy-dark);
}

    .btn-next:hover,
    .btn-submit:hover {
        background: var(--gold-light);
        transform: translateY(-1px);
    }

.btn-submit {
    min-width: 245px;
}

.navigation .left {
    min-width: 110px;
}

/* ==========================================
           SUCCESS
        ========================================== */

.success {
    display: none;
    padding: 85px 40px;
    text-align: center;
}

    .success.show {
        display: block;
    }

.success-icon {
    width: 72px;
    height: 72px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.success h2 {
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 15px;
}

.success p {
    max-width: 560px;
    margin: auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid var(--navy);
    color: var(--navy);
    text-decoration: none;
    margin-top: 28px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

    .explore:hover {
        background: var(--navy);
        color: #fff;
    }

/* ==========================================
           FOOTER
        ========================================== */

footer {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    padding-bottom: 45px;
    letter-spacing: .5px;
}

    footer strong {
        color: var(--navy);
    }

/* ==========================================
           RESPONSIVE
        ========================================== */

@media (max-width: 760px) {

    .hero {
        padding: 60px 20px 115px;
    }

    .wrapper {
        width: calc(100% - 22px);
        margin-top: -60px;
    }

    .progress-area {
        padding: 25px 20px;
    }

    .steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }

    .step {
        display: flex;
        justify-content: center;
    }

        .step span:last-child {
            display: none;
        }

    .form-content {
        padding: 35px 22px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .field.full {
        grid-column: auto;
    }

    .step-heading h2 {
        font-size: 27px;
    }

    .navigation {
        margin-top: 32px;
    }

    .btn {
        padding: 0 20px;
    }

    .btn-submit {
        min-width: auto;
    }
}

@media (max-width: 480px) {

    .hero-inner {
        width: 100%;
    }

    .hero {
        padding: 50px 18px 100px;
    }

        .hero h1 {
            font-size: 39px;
        }

        .hero p {
            font-size: 14px;
        }

    .wrapper {
        width: calc(100% - 16px);
    }

    .steps {
        margin-top: 17px;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .progress-title {
        font-size: 10px;
    }

    .progress-count {
        font-size: 10px;
    }

    .phone {
        grid-template-columns: 80px 1fr;
    }

    .navigation {
        gap: 10px;
    }

    .btn {
        width: 50%;
        padding: 0 10px;
    }

    .success {
        padding: 65px 22px;
    }
}
