/* ============================================================
   GM HOMES — SUBMIT A DEAL
   Standalone Page Styles
   (class names aligned to index.php markup)
   ============================================================ */

:root {
    --gm-dark: #171a18;
    --gm-dark-2: #202420;
    --gm-gold: #b8955a;
    --gm-gold-light: #d0b277;
    --gm-cream: #f5f3ee;
    --gm-white: #ffffff;
    --gm-text: #252825;
    --gm-muted: #70746f;
    --gm-border: #dedbd3;
    --gm-input: #fbfaf7;
    --gm-error: #9d3c32;
    --gm-success: #3f7454;
    --gm-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gm-cream);
    color: var(--gm-text);
    font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ============================================================
   HEADER
   IMPORTANT:
   This header is ALWAYS dark on the Submit a Deal page.
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(23, 26, 24, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.site-header__inner {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.brand__mark {
    width: 38px;
    height: 38px;
    color: var(--gm-gold-light);
}

.brand__text {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand__text span {
    color: var(--gm-gold-light);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.main-nav__link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link--active {
    color: var(--gm-gold-light);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle--active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle--active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle--active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   PAGE
   ============================================================ */

.deal-page {
    min-height: calc(100vh - 82px);
    padding: 70px 20px 90px;
}

/* ============================================================
   MAIN CARD
   ============================================================ */

.deal-card {
    width: min(1080px, 100%);
    margin: 0 auto;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    box-shadow: var(--gm-shadow);
}

/* ============================================================
   FORM INTRO (title block inside the card)
   ============================================================ */

.deal-intro {
    padding: 68px 70px 52px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--gm-border);
}

.deal-intro__label {
    display: block;
    margin-bottom: 13px;
    color: var(--gm-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.deal-intro h1 {
    margin: 0 auto 18px;
    max-width: 760px;
    color: var(--gm-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.deal-intro p {
    max-width: 690px;
    margin: 0 auto;
    color: var(--gm-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* ============================================================
   NOTICES
   ============================================================ */

.notice {
    width: calc(100% - 140px);
    margin: 30px auto 0;
    padding: 16px 20px;
    border-left: 3px solid;
    font-size: 14px;
}

.notice--success {
    color: var(--gm-success);
    background: rgba(63, 116, 84, 0.08);
    border-color: var(--gm-success);
}

.notice--error {
    color: var(--gm-error);
    background: rgba(157, 60, 50, 0.08);
    border-color: var(--gm-error);
}

/* ============================================================
   FORM
   ============================================================ */

form {
    padding: 55px 70px 65px;
}

.form-section {
    margin-bottom: 42px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section__heading {
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gm-border);
    color: var(--gm-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 26px;
}

/* ============================================================
   FIELDS
   ============================================================ */

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 9px;
    color: var(--gm-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.015em;
}

.field label span {
    color: var(--gm-gold);
}

.field label small {
    color: var(--gm-muted);
    font-size: 11px;
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--gm-border);
    border-radius: 0;
    background: var(--gm-input);
    color: var(--gm-text);
    padding: 14px 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    min-height: 51px;
}

textarea {
    min-height: 165px;
    resize: vertical;
    line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: var(--gm-gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.10);
}

::placeholder {
    color: #a4a59f;
}

/* ============================================================
   CHECKBOX GROUP
   (used by the Buyers List page for property-type selection)
   ============================================================ */

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--gm-border);
    background: var(--gm-input);
}

.checkbox-group__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 4px;
    color: var(--gm-text);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    cursor: pointer;
}

.checkbox-group__item input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--gm-gold);
    cursor: pointer;
}

.checkbox-group__item span {
    line-height: 1.3;
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */

.file-wrap {
    padding: 20px;
    border: 1px dashed #c9c5bb;
    background: #faf9f6;
}

.file-wrap input[type="file"] {
    width: 100%;
    color: var(--gm-muted);
    font-size: 13px;
}

.file-wrap p {
    margin: 10px 0 0;
    color: var(--gm-muted);
    font-size: 12px;
}

/* ============================================================
   CAPTCHA
   ============================================================ */

.field.captcha {
    max-width: 260px;
}

/* ============================================================
   HONEYPOT
   ============================================================ */

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.form-submit {
    margin-top: 40px;
}

.form-submit button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 16px 28px;
    border: 1px solid var(--gm-gold);
    border-radius: 0;
    background: var(--gm-gold);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.form-submit button[type="submit"]:hover {
    background: #a7844d;
    border-color: #a7844d;
    transform: translateY(-1px);
}

.form-submit button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.form-submit p {
    margin: 14px 0 0;
    color: var(--gm-muted);
    font-size: 12px;
    text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--gm-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 55px 20px;
}

.site-footer__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer__brand {
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
}

.site-footer__brand span {
    color: var(--gm-gold-light);
}

.site-footer__inner p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.site-footer__right {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-align: right;
    line-height: 1.7;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {

    .site-header__inner {
        min-height: 74px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav__link {
        font-size: 13px;
    }

    .deal-page {
        padding-top: 45px;
    }

    .deal-intro {
        padding: 55px 45px 42px;
    }

    form {
        padding: 45px;
    }

    .notice {
        width: calc(100% - 90px);
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .site-footer__right {
        text-align: left;
    }

}

/* ============================================================
   RESPONSIVE — PHONE
   ============================================================ */

@media (max-width: 700px) {

    .site-header__inner {
        width: calc(100% - 32px);
    }

    .brand__text {
        font-size: 21px;
    }

    .brand__mark {
        width: 34px;
        height: 34px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--gm-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .main-nav--open {
        display: flex;
    }

    .main-nav__link {
        padding: 16px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .deal-page {
        padding: 25px 12px 55px;
    }

    .deal-card {
        width: 100%;
    }

    .deal-intro {
        padding: 42px 24px 34px;
    }

    .deal-intro h1 {
        font-size: 34px;
    }

    .deal-intro p {
        font-size: 14px;
    }

    .notice {
        width: calc(100% - 48px);
    }

    form {
        padding: 35px 24px 45px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .field--full {
        grid-column: auto;
    }

    .field.captcha {
        max-width: none;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 45px 16px;
    }

    .site-footer__inner {
        width: calc(100% - 32px);
    }

    .site-footer__right {
        text-align: left;
    }
}

/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 400px) {

    .deal-intro h1 {
        font-size: 30px;
    }

    form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .notice {
        width: calc(100% - 36px);
    }
}
