/* ============================================================
   CONTACT PAGE — Page-Specific Styles
   assets/css/pages/contact.css
   ============================================================ */

/* ── Design system token overrides for contact page ── */
:root {
    --mm-bg: #FAFAFA;
    --mm-fg: #0F172A;
    --mm-muted: #F1F5F9;
    --mm-muted-fg: #64748B;
    --mm-accent: #0052FF;
    --mm-accent2: #4D7CFF;
    --mm-border: #E2E8F0;
    --mm-card: #FFFFFF;
    --mm-grad: linear-gradient(135deg, #0052FF, #4D7CFF);
    --mm-grad-r: linear-gradient(to right, #0052FF, #4D7CFF);
    --mm-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --mm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --mm-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --mm-shadow-accent: 0 4px 14px rgba(0, 82, 255, 0.25);
    --mm-shadow-accent-lg: 0 8px 24px rgba(0, 82, 255, 0.35);
}

/* ── Page base ── */
.contact-page {
    background: var(--mm-bg);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--mm-fg);
}

/* ── Hero header ── */
.contact-hero {
    background: var(--mm-fg);
    position: relative;
    overflow: hidden;
    padding: 96px clamp(20px, 4vw, 40px) 80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.contact-hero__glow {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.18) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.contact-hero__glow2 {
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(77, 124, 255, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 82, 255, 0.4);
    background: rgba(0, 82, 255, 0.08);
    padding: 8px 20px;
    margin-bottom: 28px;
}

.contact-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mm-accent);
    animation: mm-pulse 2s infinite;
}

.contact-hero__badge-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mm-accent2);
}

.contact-hero__title {
    font-family: 'Calistoga', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 18px;
}

.contact-hero__title .grad {
    background: var(--mm-grad-r);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-hero__sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    line-height: 1.7;
}

/* ── Main grid ── */
.contact-main {
    max-width: 1152px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 860px) {
    .contact-main { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Info column ── */
.contact-info__heading {
    font-family: 'Calistoga', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--mm-fg);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--mm-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-info-card:hover {
    box-shadow: var(--mm-shadow-lg);
    transform: translateY(-2px);
}

.contact-info-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mm-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: var(--mm-shadow-accent);
}

.contact-info-card__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mm-muted-fg);
    margin-bottom: 4px;
}

.contact-info-card__value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mm-fg);
    line-height: 1.6;
}

.contact-info-card__value a {
    color: var(--mm-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-info-card__value a:hover { opacity: 0.75; }

/* ── Hours sub-card ── */
.contact-hours {
    background: var(--mm-fg);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.contact-hours::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.contact-hours__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mm-accent2);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.contact-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
}

.contact-hours__row:last-child { border-bottom: none; }

.contact-hours__day {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-hours__time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

/* ── Social row ── */
.contact-social__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mm-muted-fg);
    margin-bottom: 14px;
}

.contact-social__links {
    display: flex;
    gap: 12px;
}

.contact-social__link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-muted-fg);
    font-size: 17px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--mm-shadow-sm);
}

.contact-social__link:hover {
    background: var(--mm-grad);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--mm-shadow-accent);
}

/* ── Form column ── */
.contact-form-wrap {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow: var(--mm-shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mm-grad-r);
    border-radius: 24px 24px 0 0;
}

@media (max-width: 560px) {
    .contact-form-wrap { padding: 28px 20px 24px; }
}

.contact-form__heading {
    font-family: 'Calistoga', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 400;
    color: var(--mm-fg);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.contact-form__sub {
    font-size: 0.9rem;
    color: var(--mm-muted-fg);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── Alerts ── */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-alert--success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.contact-alert--error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #7f1d1d;
}

.contact-alert__icon {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.contact-alert--success .contact-alert__icon { color: #10b981; }
.contact-alert--error .contact-alert__icon { color: #ef4444; }

/* ── Form row ── */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Field group ── */
.mm-field { margin-bottom: 20px; }

.mm-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mm-fg);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.mm-field label .req { color: var(--mm-accent); margin-left: 2px; }

.mm-field input,
.mm-field textarea,
.mm-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--mm-fg);
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.mm-field textarea {
    height: auto;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.6;
}

.mm-field input::placeholder,
.mm-field textarea::placeholder {
    color: rgba(100, 116, 139, 0.55);
}

.mm-field input:focus,
.mm-field textarea:focus,
.mm-field select:focus {
    border-color: var(--mm-accent);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

/* ── Captcha override ── */
.captcha-group label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--mm-fg) !important;
    margin-bottom: 7px !important;
}

.captcha-group input {
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid var(--mm-border) !important;
    border-radius: 12px !important;
    font-size: 0.9375rem !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    color: var(--mm-fg) !important;
    background: transparent !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.captcha-group input:focus {
    border-color: var(--mm-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12) !important;
    outline: none !important;
}

/* ── Submit button ── */
.mm-btn-primary {
    width: 100%;
    height: 52px;
    background: var(--mm-grad);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--mm-shadow-accent);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.mm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--mm-shadow-accent-lg);
    filter: brightness(1.08);
}

.mm-btn-primary:active { transform: scale(0.98); }

.mm-btn-primary .btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.mm-btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ── Stats strip ── */
.contact-stats {
    background: var(--mm-fg);
    position: relative;
    overflow: hidden;
    padding: 64px clamp(20px, 4vw, 40px);
}

.contact-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

.contact-stats__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

@media (max-width: 700px) {
    .contact-stats__inner { grid-template-columns: 1fr; }
}

.contact-stat {
    padding: 16px 24px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-stat:last-child { border-right: none; }

@media (max-width: 700px) {
    .contact-stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .contact-stat:last-child { border-bottom: none; }
}

.contact-stat__number {
    font-family: 'Calistoga', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    background: var(--mm-grad-r);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.contact-stat__label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

/* ── Animations ── */
@keyframes mm-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}

@keyframes mm-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mm-anim { animation: mm-fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.mm-anim-d1 { animation-delay: 0.08s; }
.mm-anim-d2 { animation-delay: 0.16s; }
.mm-anim-d3 { animation-delay: 0.24s; }
.mm-anim-d4 { animation-delay: 0.32s; }
