
/* Contact page */

#contact-page {
    --contact-orange: #D97706;
    --contact-charcoal: #262626;
    --contact-background: #202020;
    --contact-card: #303030;
    --contact-text: #F5F5F5;
    --contact-muted: #C9C9C9;
    --contact-border: #484848;

    color: var(--contact-text);
}

.contact-container {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
}

.contact-eyebrow {
    margin: 0 0 18px;
    color: var(--contact-orange);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.09em;
}

/* Hero */

.contact-hero {
    padding: 96px 0 72px;
    animation: home-enter 0.6s ease-out both;
}

.contact-hero .contact-container {
    max-width: 850px;
}

.contact-hero h1 {
    max-width: 780px;
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

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

.contact-hero-description {
    max-width: 660px;
    margin: 0;
    color: var(--contact-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* Main contact section */

.contact-main {
    padding: 72px 0 88px;
    background: var(--contact-background);
    border-top: 1px solid #424242;
    border-bottom: 1px solid #424242;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 64px;
}

/* Contact information */

.contact-info {
    padding-top: 12px;
}

.contact-info h2 {
    max-width: 400px;
    margin: 0 0 20px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.contact-muted {
    margin: 0 0 36px;
    color: var(--contact-muted);
    font-size: 0.94rem;
    line-height: 1.85;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--contact-border);
}

.contact-detail:last-of-type {
    border-bottom: 1px solid var(--contact-border);
}

.contact-detail-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--contact-orange);
    background: #3A2B1C;
    border-radius: 9px;
}

.contact-detail-icon svg {
    width: 22px;
    height: 22px;
}

.contact-detail h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 650;
}

.contact-detail p {
    margin: 0 0 8px;
    color: var(--contact-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.contact-detail a {
    color: var(--contact-orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding: 18px;
    background: #303030;
    border: 1px solid var(--contact-border);
    border-radius: 8px;
}

.contact-note-mark {
    color: var(--contact-orange);
    font-size: 1.2rem;
}

.contact-note p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 0.86rem;
    line-height: 1.75;
}

/* Form panel */

.contact-form-panel {
    min-width: 0;
    padding: 36px;
    background: var(--contact-card);
    border: 1px solid var(--contact-border);
    border-radius: 12px;
}

.contact-form-heading {
    margin-bottom: 30px;
}

.contact-form-heading h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.contact-form-heading p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.contact-field {
    display: grid;
    gap: 9px;
}

.contact-field label {
    color: var(--contact-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-field label span {
    color: #A5A5A5;
    font-weight: 400;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    color: var(--contact-text);
    background: var(--contact-charcoal);
    border: 1px solid #555555;
    border-radius: 6px;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.contact-field input,
.contact-field select {
    min-height: 48px;
}

.contact-field textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #929292;
}

.contact-field select {
    color-scheme: dark;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--contact-orange);
    box-shadow: 0 0 0 3px rgb(217 119 6 / 18%);
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 22px;
    color: #FFFFFF;
    background: var(--contact-orange);
    border: 1px solid var(--contact-orange);
    border-radius: 7px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.contact-submit:hover {
    background: #B65F00;
    border-color: #B65F00;
}

.contact-submit:focus-visible {
    outline: 2px solid var(--contact-text);
    outline-offset: 3px;
}

.contact-form-footnote {
    margin: -8px 0 0;
    color: #AFAFAF;
    font-size: 0.78rem;
    line-height: 1.7;
}

.contact-form-status {
    margin: 0;
    padding: 14px;
    color: var(--contact-text);
    background: #3A2B1C;
    border: 1px solid var(--contact-orange);
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Closing section */

.contact-bottom {
    padding: 76px 0 88px;
    text-align: center;
}

.contact-bottom-inner {
    max-width: 760px;
}

.contact-bottom h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.contact-bottom-inner > p:last-child {
    margin: 0;
    color: var(--contact-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 800px) {
    .contact-hero {
        padding: 72px 0 60px;
    }

    .contact-main {
        padding: 56px 0 64px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info h2 {
        max-width: 540px;
    }

    .contact-muted {
        max-width: 600px;
        margin-bottom: 24px;
    }

    .contact-form-panel {
        padding: 30px;
    }

    .contact-bottom {
        padding: 64px 0;
    }
}

@media (max-width: 520px) {
    .contact-container {
        width: calc(100% - 40px);
    }

    .contact-hero {
        padding: 60px 0 52px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form-panel {
        padding: 22px;
        border-radius: 9px;
    }

    .contact-form {
        gap: 20px;
    }

    .contact-submit {
        width: 100%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .contact-hero {
        animation: none;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea,
    .contact-submit {
        transition: none;
    }
}
