/* ==========================================================
   CONTACT PAGE STYLES
   ==========================================================
   1. Shared bits (buttons, pulse dot, reveal)
   2. Page hero
   3. Layout
   4. Form
   5. Contact details
   6. Map
   7. Common questions
   8. Mobile
   ========================================================== */


/* 1. Shared bits */
.btn-glow {
    box-shadow: 0 8px 28px rgba(155, 77, 255, 0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(155, 77, 255, 0.55);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2EE59D;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(46, 229, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* 2. Page hero */
.contact-hero {
    position: relative;
    overflow: hidden;
    background: var(--header-bg);
    padding: 80px 0 150px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 77, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 77, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 80% 40%, #000 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 15%, transparent 70%);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    to { background-position: 48px 48px; }
}

/* Signal rings spreading out on the right */
.signal {
    position: absolute;
    right: 12%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 24px var(--purple);
}

.signal span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(155, 77, 255, 0.6);
    animation: ripple 4.5s ease-out infinite;
}

.signal span:nth-child(2) { animation-delay: 1.5s; }
.signal span:nth-child(3) { animation-delay: 3s; }

@keyframes ripple {
    from { transform: scale(1); opacity: 1; }
    to   { transform: scale(26); opacity: 0; }
}

.contact-hero-inner {
    position: relative;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #C9CDE6;
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 16ch;
    background: linear-gradient(120deg, #FFFFFF 40%, #C8A6FF 70%, #8C84FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s ease-in-out infinite alternate;
}

@keyframes shine {
    to { background-position: 100% center; }
}

.hero-lead {
    color: #B7BCD9;
    font-size: 1.12rem;
    max-width: 56ch;
    margin-top: 22px;
}


/* 3. Layout (form overlaps the hero slightly) */
.contact-main {
    padding-top: 0;
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
    margin-top: -90px;
}


/* 4. Form */
.form-card {
    padding: 40px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 30px 70px rgba(10, 15, 44, 0.12);
}

.form-intro {
    margin: 8px 0 28px;
    font-size: 14px;
}

.service-pick {
    border: none;
    margin-bottom: 26px;
}

.service-pick legend {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.pick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pick span {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.pick span:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.pick input:checked + span {
    background: var(--gradient);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(155, 77, 255, 0.3);
}

.pick input:focus-visible + span {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Floating label fields */
.field {
    position: relative;
    margin-bottom: 18px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 24px 16px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-soft);
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    resize: vertical;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field textarea {
    min-height: 140px;
}

.field label {
    position: absolute;
    left: 17px;
    top: 17px;
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(155, 77, 255, 0.12);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 7px;
    font-size: 12px;
    color: var(--purple);
}

.error-text {
    display: none;
    margin-top: 6px;
    color: #C0263A;
    font-size: 13px;
}

.field.invalid input,
.field.invalid textarea {
    border-color: #E0485C;
    animation: shake 0.35s;
}

.field.invalid .error-text {
    display: block;
}

@keyframes shake {
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.counter {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.field.invalid .counter {
    bottom: 34px;
}

.form-hint {
    font-size: 13px;
    margin-bottom: 24px;
    padding: 12px 14px;
    border-left: 3px solid var(--purple);
    background: rgba(155, 77, 255, 0.06);
    border-radius: 0 10px 10px 0;
}

.btn-send {
    position: relative;
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.btn-send.loading .btn-text { display: none; }
.btn-send.loading .spinner  { display: block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* 5. Contact details */
.contact-info {
    display: grid;
    gap: 14px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(10, 15, 44, 0.06);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

a.info-card:hover {
    transform: translateX(6px);
    border-color: rgba(155, 77, 255, 0.5);
    box-shadow: 0 20px 44px rgba(26, 15, 208, 0.12);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gradient);
    transition: transform 0.4s;
}

a.info-card:hover .info-icon {
    transform: rotate(-10deg) scale(1.06);
}

.info-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-body strong {
    color: var(--navy);
}

.info-body span {
    color: var(--text-light);
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* WhatsApp card is green so it stands out */
.info-whatsapp {
    background: #0E7A4A;
    border-color: #0E7A4A;
}

.info-whatsapp .info-icon {
    background: rgba(255, 255, 255, 0.16);
}

.info-whatsapp strong,
.info-whatsapp .info-body span {
    color: #FFFFFF;
}

a.info-whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 20px 44px rgba(14, 122, 74, 0.3);
}

.open-status {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-weight: 600;
}

.open-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.open-status.is-open   { color: #13985A !important; }
.open-status.is-closed { color: #C0263A !important; }


/* 6. Map */
.map-section {
    padding-bottom: 24px;
}

.map-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 380px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.8);
    transition: filter 0.4s;
}

.map-frame:hover iframe {
    filter: none;
}


/* 7. Common questions */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
}

.faq-head p {
    margin-top: 12px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #FFFFFF;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item[open] {
    border-color: rgba(155, 77, 255, 0.5);
    box-shadow: 0 16px 36px rgba(26, 15, 208, 0.08);
}

.faq-item summary {
    position: relative;
    list-style: none;
    padding: 20px 56px 20px 22px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Plus icon that turns into a minus */
.faq-item summary::before,
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--purple);
    transition: transform 0.3s;
}

.faq-item summary::after {
    transform: rotate(90deg);
}

.faq-item[open] summary::after {
    transform: rotate(0deg);
}

.faq-item p {
    padding: 0 22px 20px;
    animation: open 0.35s ease;
}

@keyframes open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}


/* 8. Mobile */
@media (max-width: 980px) {
    .contact-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        gap: 28px;
    }

    .signal {
        right: 8%;
        top: 30%;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 48px 0 120px;
    }

    .form-card {
        padding: 26px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-frame {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .hero-grid-bg,
    .contact-hero h1,
    .signal span,
    .pulse-dot {
        animation: none;
    }
}