/* ── Contact page ── */
body {
    background: #f8fafc !important;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
}

/* ── Hero ── */
.contact-hero {
    background: radial-gradient(ellipse 40% 40% at top right, #3d1080 0%, transparent 100%), radial-gradient(ellipse 40% 40% at bottom left, #3d1080 0%, transparent 100%), #0a0015;
    margin-top: -78px;
    padding: calc(5rem + 78px) 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
}

.contact-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.contact-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.contact-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #a78bfa, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    color: #c4b5fd;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Main layout ── */
.contact-main {
    flex: 1;
    padding: 4rem 2rem 5rem;
}

.contact-wrap {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ── Left panel ── */
.contact-panel {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0e8ff;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.contact-info-card > p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-method:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-method-icon {
    width: 38px;
    height: 38px;
    background: #f0e8ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6022c4;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 18px;
    height: 18px;
}

.contact-method-body h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.contact-method-body p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.contact-method-body a {
    color: #6022c4;
    font-weight: 500;
    text-decoration: none;
}

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

/* Response time badge */
.contact-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #166534;
    font-weight: 500;
}

.contact-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Client tip card */
.contact-tip {
    background: linear-gradient(135deg, #0d0120 0%, #3d1080 100%);
    border-radius: 20px;
    padding: 1.75rem;
    color: white;
}

.contact-tip h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-tip p {
    font-size: 0.85rem;
    opacity: 0.88;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.btn-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
}

.btn-tip:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ── Right – Form ── */
.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0e8ff;
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.contact-form-header p {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label-required::after {
    content: ' *';
    color: #6022c4;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fafafa;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #6022c4;
    background: white;
    box-shadow: 0 0 0 3px rgba(96, 34, 196, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-text {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.35rem;
    display: block;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.btn-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #6022c4;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #844ce5;
    transform: translateY(-1px);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.form-privacy {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
}

.form-privacy a {
    color: #6022c4;
}

/* Alerts */
.contact-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

.contact-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.contact-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.contact-alert strong {
    font-weight: 700;
}

/* Success state */
.contact-success {
    text-align: center;
    padding: 4rem 2rem;
}

.contact-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6022c4, #9333ea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.contact-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        position: static;
    }

    .contact-main {
        padding: 2.5rem 1.25rem 4rem;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 7rem 1.25rem 3.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
