/* =====================================================
   CONTACT PAGE — Vibrant Homepage-Aligned Design
   Palette, fonts & aesthetics match Kingsland Bright homepage
   ===================================================== */

/* ===== SCOPED VARIABLES ===== */
.ct-page {
    --ct-sun:        #FF6B35;
    --ct-sky:        #00B4D8;
    --ct-lime:       #06D6A0;
    --ct-rose:       #FF4D6D;
    --ct-violet:     #7B2FBE;
    --ct-yellow:     #FFD166;
    --ct-gold:       #F59E0B;
    --ct-dark:       #1A1A2E;
    --ct-text:       #2D2D44;
    --ct-muted:      #6B7280;
    --ct-border:     #E5E7EB;
    --ct-bg:         #F8F9FF;
    --ct-white:      #FFFFFF;
    --ct-radius:     16px;
    --ct-radius-sm:  10px;
    --ct-shadow:     0 4px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
    --ct-shadow-md:  0 8px 32px rgba(0,0,0,.10);
    --ct-shadow-lg:  0 16px 48px rgba(0,0,0,.14);
    --ct-font:       'Nunito', sans-serif;
    --ct-heading:    'Righteous', cursive;
    --ct-transition: .3s cubic-bezier(.4,0,.2,1);
    font-family: var(--ct-font);
    color: var(--ct-text);
    background: var(--ct-bg);
}

/* Container helper */
.ct-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   1. HERO — Dark gradient with floating orbs (matches homepage hero)
   ========================================================================== */
.ct-hero {
    position: relative;
    padding: 100px 24px 140px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0D0D2B 0%, #16213E 30%, #1A1A3E 60%, #0F3460 100%);
    z-index: 1;
}

/* Animated colour orbs */
.ct-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .40;
    animation: ctOrbFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.ct-orb--1 {
    width: 420px; height: 420px;
    background: var(--ct-sun);
    top: -120px; left: -80px;
}
.ct-orb--2 {
    width: 320px; height: 320px;
    background: var(--ct-violet);
    top: 60px; right: -80px;
    animation-delay: 2s;
}
.ct-orb--3 {
    width: 280px; height: 280px;
    background: var(--ct-sky);
    bottom: -60px; left: 30%;
    animation-delay: 4s;
}
.ct-orb--4 {
    width: 220px; height: 220px;
    background: var(--ct-lime);
    bottom: 40px; right: 18%;
    animation-delay: 1s;
}
@keyframes ctOrbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(30px,-25px) scale(1.05); }
    66%  { transform: translate(-20px,20px) scale(.95); }
}

/* Grid overlay */
.ct-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Hero content */
.ct-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.ct-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ct-yellow);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 28px;
    animation: ctFadeDown .6s ease;
}

.ct-hero__title {
    font-family: var(--ct-heading);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.15;
    text-shadow: 0 2px 30px rgba(0,180,216,.2);
    animation: ctFadeUp .8s ease .1s both;
}

.ct-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    animation: ctFadeUp .8s ease .2s both;
}

/* Wave divider */
.ct-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}
.ct-hero__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}


/* ==========================================================================
   2. CONTACT CARDS — 4-column grid with colour-coded top borders
   ========================================================================== */
.ct-cards {
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 4;
}
.ct-cards__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ct-card {
    background: var(--ct-white);
    border-radius: var(--ct-radius);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--ct-shadow);
    transition: transform var(--ct-transition), box-shadow var(--ct-transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: ctFadeUp .6s ease both;
}
.ct-card:nth-child(1) { animation-delay: .1s; }
.ct-card:nth-child(2) { animation-delay: .2s; }
.ct-card:nth-child(3) { animation-delay: .3s; }
.ct-card:nth-child(4) { animation-delay: .4s; }

/* Color-coded top border */
.ct-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    transition: height var(--ct-transition);
}
.ct-card--sun::before  { background: linear-gradient(90deg, var(--ct-sun), var(--ct-rose)); }
.ct-card--lime::before { background: linear-gradient(90deg, var(--ct-lime), var(--ct-sky)); }
.ct-card--sky::before  { background: linear-gradient(90deg, var(--ct-sky), var(--ct-violet)); }
.ct-card--rose::before { background: linear-gradient(90deg, var(--ct-rose), var(--ct-violet)); }

.ct-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ct-shadow-lg);
}
.ct-card:hover::before {
    height: 5px;
}

/* Icon circle */
.ct-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform var(--ct-transition);
}
.ct-card--sun  .ct-card__icon { background: linear-gradient(135deg, var(--ct-sun), var(--ct-rose)); }
.ct-card--lime .ct-card__icon { background: linear-gradient(135deg, var(--ct-lime), var(--ct-sky)); }
.ct-card--sky  .ct-card__icon { background: linear-gradient(135deg, var(--ct-sky), var(--ct-violet)); }
.ct-card--rose .ct-card__icon { background: linear-gradient(135deg, var(--ct-rose), var(--ct-violet)); }

.ct-card__icon .material-symbols-outlined {
    font-size: 28px;
    color: #fff;
}
.ct-card:hover .ct-card__icon {
    transform: scale(1.1) rotate(-4deg);
}

.ct-card__title {
    font-family: var(--ct-font);
    font-size: 1rem;
    font-weight: 800;
    color: var(--ct-dark);
    margin: 0 0 6px;
}
.ct-card__text {
    font-size: .875rem;
    color: var(--ct-muted);
    margin: 0;
    word-break: break-word;
    line-height: 1.5;
}
.ct-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* ==========================================================================
   3. MESSAGE SECTION — Split panel (dark left + white form right)
   ========================================================================== */
.ct-message {
    max-width: 1100px;
    margin: 64px auto;
    padding: 0 24px;
}

.ct-message__wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--ct-shadow-lg);
    background: var(--ct-white);
}

/* ---- Left dark panel ---- */
.ct-panel-left {
    background: linear-gradient(160deg, #0D0D2B 0%, #16213E 40%, #0F3460 100%);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.ct-panel-left__glow {
    position: absolute;
    top: -40%;
    left: -30%;
    width: 180%;
    height: 180%;
    background:
        radial-gradient(circle at 25% 35%, rgba(255,107,53,.12) 0%, transparent 55%),
        radial-gradient(circle at 75% 55%, rgba(0,180,216,.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(124,58,237,.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.ct-panel-left__title {
    font-family: var(--ct-heading);
    font-size: 2rem;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
    color: #fff;
}
.ct-panel-left__sub {
    font-size: .95rem;
    color: rgba(255,255,255,.65);
    margin: 0 0 36px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Info rows */
.ct-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.ct-info-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--ct-transition);
}
.ct-info-row:hover .ct-info-row__icon {
    transform: scale(1.1);
}
.ct-info-row__icon--sun  { background: linear-gradient(135deg, rgba(255,107,53,.20), rgba(255,77,109,.15)); }
.ct-info-row__icon--sky  { background: linear-gradient(135deg, rgba(0,180,216,.20), rgba(123,47,190,.12)); }
.ct-info-row__icon--lime { background: linear-gradient(135deg, rgba(6,214,160,.20), rgba(0,180,216,.12)); }
.ct-info-row__icon--rose { background: linear-gradient(135deg, rgba(255,77,109,.20), rgba(123,47,190,.12)); }

.ct-info-row__icon .material-symbols-outlined {
    font-size: 20px;
}
.ct-info-row__icon--sun  .material-symbols-outlined { color: var(--ct-sun); }
.ct-info-row__icon--sky  .material-symbols-outlined { color: var(--ct-sky); }
.ct-info-row__icon--lime .material-symbols-outlined { color: var(--ct-lime); }
.ct-info-row__icon--rose .material-symbols-outlined { color: var(--ct-rose); }

.ct-info-row__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.45);
    margin-bottom: 4px;
    font-weight: 700;
}
.ct-info-row__value {
    font-size: .95rem;
    color: #fff;
    line-height: 1.55;
}
.ct-info-row__value a {
    color: #fff;
    text-decoration: none;
    transition: color var(--ct-transition);
}
.ct-info-row__value a:hover {
    color: var(--ct-sky);
    text-decoration: underline;
}

/* ---- Right form panel ---- */
.ct-panel-right {
    padding: 48px 44px;
    background: var(--ct-white);
}
.ct-panel-right__title {
    font-family: var(--ct-heading);
    font-size: 1.5rem;
    color: var(--ct-dark);
    margin: 0 0 24px;
}

.ct-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ct-field {
    position: relative;
}
.ct-field--full {
    grid-column: 1 / -1;
}

.ct-field label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ct-dark);
    margin-bottom: 6px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    font-family: var(--ct-font);
    font-size: .92rem;
    background: #F8FAFC;
    color: var(--ct-text);
    transition: border-color var(--ct-transition), box-shadow var(--ct-transition), background var(--ct-transition);
    outline: none;
    box-sizing: border-box;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    border-color: var(--ct-sky);
    box-shadow: 0 0 0 4px rgba(0,180,216,.10);
    background: #fff;
}
.ct-field textarea {
    resize: vertical;
    min-height: 120px;
}
.ct-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Submit button — vibrant gradient matching homepage CTA */
.ct-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 32px;
    background: linear-gradient(135deg, var(--ct-sun), var(--ct-rose));
    color: #fff;
    border: none;
    border-radius: var(--ct-radius-sm);
    font-family: var(--ct-font);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--ct-transition);
    box-shadow: 0 4px 18px rgba(255,107,53,.30);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-top: 4px;
}
.ct-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,107,53,.40);
    background: linear-gradient(135deg, #e05a10, #e03050);
}
.ct-submit-btn .material-symbols-outlined {
    font-size: 20px;
    transition: transform .3s;
}
.ct-submit-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}
.ct-submit-btn.loading {
    pointer-events: none;
    opacity: .7;
}

/* Form messages */
.contact-form-message {
    padding: 12px 16px;
    border-radius: var(--ct-radius-sm);
    font-size: .9rem;
    font-weight: 600;
    margin-top: 14px;
    display: none;
    text-align: center;
}
.contact-form-message.success {
    display: block;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
    box-shadow: 0 2px 8px rgba(6,214,160,.15);
}
.contact-form-message.error {
    display: block;
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
    box-shadow: 0 2px 8px rgba(220,38,38,.12);
}


/* ==========================================================================
   4. GOOGLE MAP
   ========================================================================== */
.ct-map {
    max-width: 1100px;
    margin: 0 auto 64px;
    padding: 0 24px;
}
.ct-map__wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ct-shadow-md);
    height: 400px;
    border: 3px solid var(--ct-white);
}
.ct-map__wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* ==========================================================================
   5. WHATSAPP FLOAT
   ========================================================================== */
.ct-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 9999;
    animation: ctPulseGreen 2s infinite;
    text-decoration: none;
    color: #fff;
    transition: transform .2s;
}
.ct-whatsapp-float:hover {
    transform: scale(1.1);
}
.ct-whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
@keyframes ctPulseGreen {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50%      { box-shadow: 0 4px 40px rgba(37,211,102,.7); }
}


/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */
@keyframes ctFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ctFadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .ct-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ct-hero {
        padding: 80px 20px 120px;
    }
    .ct-hero__title {
        font-size: 2rem;
    }
    .ct-cards__grid {
        grid-template-columns: 1fr 1fr;
        margin-top: -40px;
        gap: 12px;
    }
    .ct-cards {
        margin-top: -40px;
    }

    .ct-message__wrap {
        grid-template-columns: 1fr;
    }
    .ct-panel-left {
        padding: 32px 24px;
    }
    .ct-panel-right {
        padding: 32px 24px;
    }
    .ct-form-grid {
        grid-template-columns: 1fr;
    }
    .ct-map__wrap {
        height: 300px;
    }

    /* Hide large orbs on mobile for performance */
    .ct-orb--1 { width: 260px; height: 260px; }
    .ct-orb--2 { width: 200px; height: 200px; }
    .ct-orb--3,
    .ct-orb--4 { display: none; }
}

@media (max-width: 480px) {
    .ct-hero {
        padding: 60px 16px 100px;
    }
    .ct-hero__title {
        font-size: 1.65rem;
    }
    .ct-hero__badge {
        font-size: .75rem;
        padding: 6px 16px;
    }
    .ct-cards {
        padding: 0 16px;
        margin-top: -30px;
    }
    .ct-cards__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ct-card {
        padding: 24px 20px;
    }
    .ct-message {
        padding: 0 16px;
        margin: 40px auto;
    }
    .ct-panel-left {
        padding: 24px 20px;
    }
    .ct-panel-right {
        padding: 24px 20px;
    }
    .ct-submit-btn {
        padding: 13px 24px;
        font-size: .9rem;
    }
    .ct-map {
        padding: 0 16px;
    }
}
