/* Contact */

.contact-hero {
    padding: 86px 0 60px;
    background:
        linear-gradient(120deg, rgba(8, 16, 31, 0.88), rgba(17, 24, 39, 0.76)),
        url("/assets/img/hero-otaku-dev.webp") center / cover no-repeat;
}

.contact-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: end;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #facc15;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contact-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: 3.4rem;
    line-height: 1.05;
}

.contact-hero p {
    max-width: 700px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: 1.08rem;
}

.contact-summary,
.contact-aside,
.contact-form {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(8, 16, 31, 0.86);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.contact-summary {
    padding: 24px;
}

.contact-summary p {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-summary p:last-child {
    border-bottom: 0;
}

.contact-summary strong {
    color: #facc15;
}

.contact-summary a,
.contact-summary span {
    color: #f8fafc;
}

.contact-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 16, 31, 0.96));
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.contact-form {
    padding: 30px;
}

.form-head h2,
.contact-aside h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.55rem;
}

.form-head p,
.contact-aside li {
    color: #cbd5e1;
}

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

.form-field,
.privacy-check {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.form-field span,
.privacy-check span {
    color: #f8fafc;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font: inherit;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.form-field [aria-invalid="true"] {
    border-color: #f97316;
}

.form-field small,
.field-error {
    color: #fed7aa;
    font-weight: 700;
}

.privacy-check {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.form-alert {
    margin: 22px 0 4px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.form-alert-success {
    border: 1px solid rgba(52, 211, 153, 0.38);
    background: rgba(6, 95, 70, 0.32);
    color: #bbf7d0;
}

.form-alert-error {
    border: 1px solid rgba(249, 115, 22, 0.4);
    background: rgba(124, 45, 18, 0.34);
    color: #fed7aa;
}

.contact-submit {
    margin-top: 22px;
    min-width: 220px;
}

.contact-aside {
    padding: 26px;
}

.contact-aside ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.contact-aside li + li {
    margin-top: 12px;
}

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

@media (max-width: 900px) {
    .contact-hero-inner,
    .contact-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        padding: 64px 0 44px;
    }

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

    .contact-form,
    .contact-aside,
    .contact-summary {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding-top: 54px;
        padding-bottom: 38px;
    }

    .contact-hero-inner {
        gap: 22px;
    }

    .contact-hero h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .contact-hero p {
        margin-bottom: 20px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .contact-form,
    .contact-aside,
    .contact-summary {
        padding: 18px;
        border-radius: 12px;
    }

    .form-head h2,
    .contact-aside h2 {
        font-size: 1.34rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        min-height: 46px;
        padding: 11px 12px;
    }

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

@media (max-width: 420px) {
    .contact-form,
    .contact-aside,
    .contact-summary {
        padding: 16px;
    }

    .privacy-check {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .contact-summary p {
        padding: 12px 0;
    }
}
