* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 35%, #f1f5f9 100%);
    color: #111827;
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.app-shell {
    width: min(1380px, calc(100% - 36px));
    margin: 24px auto 30px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.contact-shell {
    display: grid;
    gap: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.back-btn,
.profile-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fafc;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

.back-btn:hover,
.profile-btn:hover {
    border-color: #9cc0ff;
    background: #eef5ff;
}

.brand-title {
    flex: 1;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #111827;
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
    gap: 22px;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #2563eb 100%);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.2);
    color: #fff;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.contact-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.contact-copy p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.8;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(76, 94, 255, 0.22);
}

.primary-action:hover {
    background: linear-gradient(135deg, #ffffff 0%, #edf2ff 100%);
    color: #0f172a;
}

.secondary-action:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(173, 216, 255, 0.18) 100%);
    border-color: rgba(255, 255, 255, 0.38);
}

.support-card {
    align-self: center;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.support-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #dbeafe;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.support-card h3 {
    margin: 14px 0 12px;
    font-size: 1.3rem;
}

.support-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.85);
    display: grid;
    gap: 8px;
    line-height: 1.7;
    font-size: 0.93rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.contact-form-card {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    font-size: 1.4rem;
}

.info-card h3 {
    margin: 14px 0 8px;
    font-size: 1.08rem;
    color: #111827;
}

.info-card p {
    margin: 0;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.7;
}

.contact-form-card {
    display: grid;
    gap: 18px;
}

.form-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.form-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.5px;
}

.required-note {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.field-group input,
.field-group textarea {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fbfcfe;
    color: #111827;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.field-group textarea {
    resize: vertical;
    min-height: 130px;
}

.alert-box {
    margin: -4px 0 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 700;
}

.submit-button {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(37, 99, 235, 0.24);
}

.active-contact {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    box-shadow: 0 10px 18px rgba(20, 184, 166, 0.18);
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
        width: min(100% - 18px, 100%);
    }

    .contact-hero {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-shell {
        gap: 18px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .contact-hero,
    .info-card,
    .contact-form-card {
        padding: 18px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}
