.contact-page-hero {
    position: relative;
    display: flex;
    min-height: 560px;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.contact-page-hero-image,
.contact-page-hero-overlay {
    position: absolute;
    inset: 0;
}

.contact-page-hero-image {
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.contact-page-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(14, 16, 15, 0.96) 0%,
            rgba(14, 16, 15, 0.85) 44%,
            rgba(14, 16, 15, 0.32) 78%,
            rgba(14, 16, 15, 0.14) 100%
        ),
        linear-gradient(
            0deg,
            rgba(14, 16, 15, 0.34),
            transparent 50%
        );
}

.contact-page-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 135px;
    padding-bottom: 70px;
}

.contact-page-hero h1 {
    max-width: 820px;
    margin: 18px 0 23px;
    font-size: clamp(3.7rem, 6.7vw, 6.5rem);
    font-weight: 950;
    letter-spacing: -0.075em;
    line-height: 0.93;
}

.contact-page-hero h1 span {
    display: block;
    color: var(--gold-light);
}

.contact-page-hero p {
    max-width: 710px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.8;
}

.contact-page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.contact-methods {
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.contact-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-method {
    display: flex;
    min-height: 125px;
    flex-direction: column;
    justify-content: center;
    padding: 25px 30px;
    transition: background-color 150ms ease;
}

a.contact-method:hover,
a.contact-method:focus-visible {
    background: var(--off-white);
}

.contact-method + .contact-method {
    border-left: 1px solid var(--border);
}

.contact-method-label {
    color: #936918;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-method strong {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 950;
}

.contact-method small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.estimate-section {
    padding: 90px 0 105px;
    background: var(--off-white);
}

.estimate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    align-items: start;
    gap: 30px;
}

.estimate-form-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.estimate-form-heading {
    padding: 42px 45px 35px;
    border-bottom: 1px solid var(--border);
}

.estimate-form-heading h2,
.form-success h2 {
    margin: 11px 0 0;
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
    font-weight: 950;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.estimate-form-heading p,
.form-success p {
    max-width: 750px;
    margin: 19px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.75;
}

.estimate-form {
    padding: 39px 45px 45px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 18px;
}

.form-field {
    min-width: 0;
}

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

.form-field > label,
.form-field > legend {
    display: flex;
    align-items: center;
    margin: 0 0 8px;
    gap: 5px;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 900;
}

.form-field > label > span,
.form-field > legend > span {
    color: #9d4b37;
}

.form-field > label small {
    color: var(--text-muted);
    font-size: 0.63rem;
    font-weight: 700;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--off-white);
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select {
    min-height: 52px;
    padding: 12px 14px;
}

.form-field textarea {
    min-height: 165px;
    padding: 14px;
    line-height: 1.65;
    resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: #b7bbb7;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(201, 148, 46, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #888e8a;
}

.contact-preference {
    margin: 0;
    padding: 0;
    border: 0;
}

.radio-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.radio-options label {
    position: relative;
    cursor: pointer;
}

.radio-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-options span {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--off-white);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 850;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.radio-options label:hover span {
    border-color: #b7bbb7;
}

.radio-options input:focus-visible + span {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 148, 46, 0.12);
}

.radio-options input:checked + span {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: var(--white);
}

.photo-upload-section {
    margin: 0;
    padding: 0;
    border: 0;
}

.photo-upload-intro {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.6;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.file-upload {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    justify-content: center;
    padding: 17px;
    border: 1px dashed #b9bdb9;
    border-radius: 9px;
    background: var(--off-white);
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.file-upload:hover,
.file-upload:focus-within {
    border-color: var(--gold);
    background: var(--white);
    transform: translateY(-1px);
}

.file-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-upload-heading {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 900;
}

.file-name {
    margin-top: 6px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.66rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-size {
    margin: 11px 0 0;
    color: var(--text-muted);
    font-size: 0.66rem;
}

.upload-size.invalid {
    color: #a04232;
    font-weight: 800;
}

.form-status {
    display: none;
    margin-top: 23px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 0.73rem;
    font-weight: 750;
    line-height: 1.6;
}

.form-status.visible {
    display: block;
}

.form-status.error {
    border: 1px solid rgba(160, 66, 50, 0.25);
    background: rgba(160, 66, 50, 0.08);
    color: #85382b;
}

.form-status.sending {
    border: 1px solid rgba(147, 105, 24, 0.24);
    background: rgba(201, 148, 46, 0.09);
    color: #725112;
}

.form-submit-row {
    display: flex;
    align-items: center;
    margin-top: 28px;
    gap: 20px;
}

.submit-button {
    min-width: 220px;
    flex: 0 0 auto;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.form-submit-row p {
    max-width: 490px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.64rem;
    line-height: 1.55;
}

.form-success {
    padding: 65px 45px;
}

.form-success[hidden] {
    display: none;
}

.form-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold-light);
    font-size: 1.5rem;
    font-weight: 950;
}

.form-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.estimate-sidebar {
    position: sticky;
    top: 95px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(17, 19, 18, 0.06);
}

.sidebar-card-dark {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: var(--white);
}

.sidebar-card-label {
    color: #936918;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sidebar-card h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.sidebar-card h3 {
    margin: 9px 0 0;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.sidebar-card p {
    margin: 13px 0 0;
    color: var(--text-muted);
    font-size: 0.73rem;
    line-height: 1.7;
}

.sidebar-card-dark p {
    color: rgba(255, 255, 255, 0.66);
}

.sidebar-phone {
    display: block;
    margin-top: 17px;
    color: var(--white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    margin-top: 22px;
    gap: 9px;
}

.sidebar-checklist {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.sidebar-checklist li {
    position: relative;
    padding: 10px 0 10px 25px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.sidebar-checklist li::before {
    position: absolute;
    top: 10px;
    left: 1px;
    color: var(--gold);
    content: "✓";
    font-weight: 950;
}

.sidebar-warning {
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
}

@media (max-width: 1050px) {
    .estimate-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
    }

    .estimate-form-heading,
    .estimate-form {
        padding-right: 34px;
        padding-left: 34px;
    }

    .photo-upload-grid {
        grid-template-columns: 1fr;
    }

    .file-upload {
        min-height: 90px;
    }
}

@media (max-width: 820px) {
    .contact-page-hero {
        min-height: 555px;
    }

    .contact-page-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(14, 16, 15, 0.94),
                rgba(14, 16, 15, 0.66)
            ),
            linear-gradient(
                0deg,
                rgba(14, 16, 15, 0.4),
                transparent
            );
    }

    .contact-method-grid {
        grid-template-columns: 1fr;
    }

    .contact-method + .contact-method {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .contact-method {
        min-height: 100px;
    }

    .estimate-layout {
        grid-template-columns: 1fr;
    }

    .estimate-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-card-dark {
        grid-column: span 2;
    }
}

@media (max-width: 580px) {
    .contact-page-hero {
        min-height: 610px;
    }

    .contact-page-hero-image {
        object-position: 61% center;
    }

    .contact-page-hero-content {
        padding-top: 120px;
        padding-bottom: 55px;
    }

    .contact-page-hero h1 {
        font-size: clamp(3.15rem, 15vw, 4.35rem);
    }

    .contact-page-hero p {
        font-size: 0.91rem;
    }

    .contact-page-hero-actions {
        flex-direction: column;
    }

    .contact-page-hero-actions .button {
        width: 100%;
    }

    .estimate-section {
        padding: 68px 0 82px;
    }

    .estimate-form-heading,
    .estimate-form,
    .form-success {
        padding-right: 24px;
        padding-left: 24px;
    }

    .estimate-form-heading {
        padding-top: 31px;
        padding-bottom: 27px;
    }

    .estimate-form {
        padding-top: 29px;
        padding-bottom: 32px;
    }

    .estimate-form-heading h2,
    .form-success h2 {
        font-size: clamp(2.25rem, 11vw, 3.1rem);
    }

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

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

    .radio-options {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
        min-width: 0;
    }

    .form-success-actions {
        flex-direction: column;
    }

    .form-success-actions .button {
        width: 100%;
    }

    .estimate-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card-dark {
        grid-column: auto;
    }
}