/* Contact page — dark theme */

.contact-page {
    position: relative;
    isolation: isolate;
    min-height: 60vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    padding-bottom: clamp(1.5rem, 4vw, 3.5rem);
    background:
        radial-gradient(ellipse 70% 45% at 100% -10%, rgba(109, 14, 14, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 40% at -5% 40%, rgba(197, 160, 89, 0.08), transparent 50%),
        var(--paper);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

.contact-page__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    background-image: radial-gradient(rgba(197, 160, 89, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
}

.contact-hero {
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(0.85rem, 2.5vw, 1.4rem);
    text-align: center;
}

.contact-crumbs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    margin-bottom: 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted);
}

.contact-crumbs a {
    color: var(--gold-soft);
    text-decoration: none;
}

.contact-crumbs a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.contact-hero__brand {
    margin: 0 auto 0.35rem;
    font-family: var(--display);
    font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--gold);
    word-break: break-word;
    padding-inline: 0.25rem;
}

.contact-hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.65rem, 6vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}

.contact-hero p {
    margin: 0.55rem auto 0;
    max-width: 38ch;
    color: var(--muted);
    font-size: clamp(0.92rem, 2.4vw, 1.05rem);
    line-height: 1.7;
    padding-inline: 0.35rem;
}

.contact-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.8vw, 1.6rem);
    max-width: 760px;
    padding-bottom: 0.75rem;
}

.contact-alert {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.contact-alert--ok {
    background: rgba(31, 157, 85, 0.14);
    color: #6ee7a8;
    border: 1px solid rgba(110, 231, 168, 0.28);
}

.contact-alert--err {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.contact-layout {
    width: 100%;
    min-width: 0;
}

.contact-form-panel,
.contact-faq {
    width: 100%;
    min-width: 0;
    background: var(--surface);
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: clamp(14px, 2vw, 20px);
    padding: clamp(0.95rem, 3vw, 1.55rem);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    color: var(--ink-soft);
}

.contact-form-panel__head h2,
.contact-faq__head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.1rem, 3.2vw, 1.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    word-break: break-word;
}

.contact-form-panel__head p,
.contact-faq__head p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: clamp(0.85rem, 2.2vw, 0.92rem);
    line-height: 1.55;
}

.contact-form {
    margin-top: 1rem;
    width: 100%;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.contact-types {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    min-width: 0;
}

.contact-types legend {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.contact-types legend span {
    color: var(--gold-soft);
}

.contact-types__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.contact-type {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 52px;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid rgba(197, 160, 89, 0.22);
    border-radius: 12px;
    background: #121212;
    cursor: pointer;
    text-align: start;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    color: var(--ink-soft);
}

.contact-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-type__icon {
    display: grid;
    place-items: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-type__label {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.contact-type:hover {
    border-color: rgba(197, 160, 89, 0.4);
    background: #161616;
}

.contact-type.is-active,
.contact-type:has(input:checked) {
    border-color: var(--maroon);
    background: linear-gradient(180deg, rgba(109, 14, 14, 0.28), rgba(109, 14, 14, 0.1));
    box-shadow: 0 0 0 3px rgba(109, 14, 14, 0.18);
    color: #fff;
}

.contact-type.is-active .contact-type__icon,
.contact-type:has(input:checked) .contact-type__icon {
    color: var(--gold-soft);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
    min-width: 0;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
}

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

.contact-field label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-soft);
    line-height: 1.4;
}

.contact-field label > span:last-child {
    color: var(--gold-soft);
}

.contact-field label strong {
    color: var(--gold);
}

.contact-field__icon {
    display: inline-grid;
    place-items: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1.5px solid rgba(197, 160, 89, 0.22);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font: inherit;
    font-size: 16px;
    background: #121212 !important;
    color: #fff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
    background: #161616 !important;
}

.contact-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

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

.contact-captcha {
    margin-top: 0.1rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.12), rgba(109, 14, 14, 0.08));
    border: 1px dashed rgba(197, 160, 89, 0.35);
}

.contact-captcha label {
    width: 100%;
}

.contact-captcha label strong {
    word-break: break-word;
    color: var(--gold-soft);
}

.contact-captcha__row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.contact-captcha__row input[type="number"] {
    width: 100%;
    max-width: none;
    flex: none;
}

.contact-captcha__refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    border: 1.5px solid rgba(197, 160, 89, 0.35);
    background: #161616;
    color: var(--gold-soft);
    font: inherit;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.contact-captcha__refresh:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.contact-form__submit {
    margin-top: 1.1rem;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    font-size: 1rem;
}

.contact-faq__head {
    margin-bottom: 0.9rem;
}

.contact-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.contact-faq__item {
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 12px;
    background: #121212;
    padding: 0 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.contact-faq__item[open] {
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    background: #161616;
}

.contact-faq__item summary {
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    padding: 0.85rem 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: clamp(0.9rem, 2.6vw, 1rem);
    line-height: 1.45;
    word-break: break-word;
}

.contact-faq__item summary::-webkit-details-marker {
    display: none;
}

.contact-faq__item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.14);
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
}

.contact-faq__item[open] summary::after {
    content: "−";
    background: rgba(109, 14, 14, 0.28);
    color: var(--gold-soft);
}

.contact-faq__item p {
    margin: 0 0 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    font-size: clamp(0.88rem, 2.3vw, 0.94rem);
    word-break: break-word;
}

@media (min-width: 640px) {
    .contact-types__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-type {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 78px;
        padding: 0.75rem 0.45rem;
        text-align: center;
        gap: 0.35rem;
    }

    .contact-type__label {
        font-size: clamp(0.74rem, 1.5vw, 0.84rem);
    }

    .contact-form__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem 1rem;
    }

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

    .contact-field input,
    .contact-field textarea {
        font-size: 0.98rem;
    }

    .contact-captcha__row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .contact-captcha__row input[type="number"] {
        flex: 1 1 140px;
        max-width: 200px;
    }

    .contact-captcha__refresh {
        width: auto;
        white-space: nowrap;
    }
}

@media (min-width: 900px) {
    .contact-stack {
        max-width: 800px;
    }

    .contact-form-panel,
    .contact-faq {
        padding: 1.55rem 1.65rem;
    }
}
