/* ================================================
   SUNRISE ACADEMY – Contact Us Page Styles
   ================================================ */

/* ---- Page Hero ---- */
.contact-page-hero {
    min-height: 500px;
    background: linear-gradient(135deg, #fffbf5, #fff3e0 50%, #f0f8ff);
    padding: 130px 30px 80px;
    display: flex; align-items: center; justify-content: center;
    gap: 60px; position: relative; overflow: hidden; flex-wrap: wrap;
    max-width: 100%;
}
.cph-bg { position: absolute; inset: 0; pointer-events: none; }
.cph-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; animation: blobFloat 8s ease-in-out infinite; }
.cph-b1 { width: 500px; height: 500px; background: radial-gradient(circle, #f7931e44, transparent); top: -150px; left: -80px; }
.cph-b2 { width: 380px; height: 380px; background: radial-gradient(circle, #2ec4b633, transparent); bottom: -80px; right: 0; animation-delay: 3s; }
.cph-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(247,147,30,.12) 1px, transparent 1px); background-size: 36px 36px; }

.cph-content { max-width: 620px; position: relative; z-index: 1; }
.cph-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: var(--secondary); line-height: 1.2; margin-bottom: 18px; }
.cph-content h1 span { color: var(--primary); }
.cph-content p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; max-width: 560px; }

.cph-quick { display: flex; flex-wrap: wrap; gap: 12px; }
.cq-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; border: 1.5px solid rgba(247,147,30,.25);
    padding: 10px 18px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; color: var(--secondary);
    text-decoration: none; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}
.cq-pill i { color: var(--primary); }
.cq-pill:hover { border-color: var(--primary); background: #fff8f0; transform: translateY(-2px); }
.cq-hours { cursor: default; }
.cq-hours:hover { transform: none; }

/* Hero illustration */
.cph-illustration { position: relative; width: 280px; height: 260px; flex-shrink: 0; z-index: 1; }
.cph-card {
    position: absolute; border-radius: 18px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 2.5rem; box-shadow: 0 10px 35px rgba(0,0,0,.1);
}
.cph-card span { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.cph-c1 { width: 160px; height: 160px; background: linear-gradient(135deg, #fff8f0, #ffe9cc); top: 20px; left: 10px; animation: floatCard 4s ease-in-out infinite; }
.cph-c2 { width: 110px; height: 100px; background: linear-gradient(135deg, #e8f5e9, #c8e6c9); bottom: 0; left: 5px; animation: floatCard 4s ease-in-out infinite 1.2s; font-size: 1.8rem; }
.cph-c3 { width: 110px; height: 100px; background: linear-gradient(135deg, #e3f2fd, #bbdefb); top: 10px; right: 0; animation: floatCard 4s ease-in-out infinite 2.2s; font-size: 1.8rem; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ---- Contact Cards ---- */
.contact-cards-section { padding: 70px 0 0; background: white; }
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cc-card {
    background: var(--light-bg); border-radius: 20px; padding: 28px;
    border: 2px solid transparent; transition: all 0.4s;
}
.cc-card:hover { border-color: var(--primary); background: white; transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.cc-icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.cc-card h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.cc-card p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.cc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-size: 0.84rem; font-weight: 700; transition: gap 0.3s; }
.cc-link:hover { gap: 10px; }

/* ---- Main Contact (Form + Info) ---- */
.main-contact-section { padding: 80px 0 100px; background: white; }
.mc-inner { display: grid; grid-template-columns: 400px 1fr; gap: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 70px rgba(0,0,0,.12); }

/* Left info panel */
.mc-info-panel {
    background: linear-gradient(160deg, var(--secondary), #0f3460);
    padding: 50px 40px; position: relative; overflow: hidden;
    color: white;
}
.mci-header { margin-bottom: 40px; }
.mci-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: white; margin: 12px 0 10px; }
.mci-header h2 span { color: var(--primary); }
.mci-header p  { color: rgba(255,255,255,.65); font-size: 0.88rem; line-height: 1.7; }

.mci-items { display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px; }
.mci-item  { display: flex; align-items: flex-start; gap: 16px; }
.mci-icon  {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: rgba(247,147,30,.2); border: 1px solid rgba(247,147,30,.3);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.mci-item strong { display: block; color: white; font-size: 0.88rem; margin-bottom: 4px; }
.mci-item span   { color: rgba(255,255,255,.6); font-size: 0.82rem; line-height: 1.6; }

.mci-social p { color: rgba(255,255,255,.6); font-size: 0.82rem; margin-bottom: 12px; }
.mci-social-links { display: flex; gap: 10px; }
.mci-social-links a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s; font-size: 0.88rem;
}
.mci-social-links a:hover { background: var(--primary); color: white; border-color: var(--primary); }

.mci-deco {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.04); pointer-events: none;
}
.mci-deco1 { width: 280px; height: 280px; bottom: -80px; right: -80px; }
.mci-deco2 { width: 160px; height: 160px; bottom: 80px; right: 20px; }

/* Right form panel */
.mc-form-panel { background: white; padding: 50px 48px; }
.mcf-header { margin-bottom: 30px; }
.mcf-header h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--secondary); margin-bottom: 6px; }
.mcf-header h3 span { color: var(--primary); }
.mcf-header p { color: var(--text-muted); font-size: 0.88rem; }

/* Form styles (contact specific) */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.cf-row { display: flex; flex-direction: column; gap: 18px; }
.cf-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-group label {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.82rem; font-weight: 600; color: var(--secondary); margin-bottom: 7px;
}
.cf-group label i { color: var(--primary); font-size: 0.75rem; }
.cf-group input,
.cf-group select,
.cf-group textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e8eaf0; border-radius: 12px;
    font-size: 0.88rem; font-family: 'DM Sans', sans-serif;
    color: var(--text-main); background: #fafbff; transition: all 0.3s;
}
.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
    outline: none; border-color: var(--primary);
    background: white; box-shadow: 0 0 0 4px rgba(247,147,30,.1);
}
.cf-group textarea { resize: none; }

/* Subject chips */
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input[type="radio"] { display: none; }
.chip span {
    display: block; padding: 7px 16px; border-radius: 20px;
    border: 2px solid #e0e0e0; background: white;
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: all 0.3s; user-select: none;
}
.chip input:checked + span { border-color: var(--primary); color: var(--primary); background: rgba(247,147,30,.08); }
.chip span:hover { border-color: rgba(247,147,30,.4); color: var(--primary); }

/* Checkbox */
.cf-checkbox { display: flex; align-items: flex-start; }
.check-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-label input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.check-label span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.cf-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.cf-submit-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: white; border: none; padding: 14px 30px; border-radius: 12px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 6px 20px rgba(247,147,30,.4); transition: all 0.3s; white-space: nowrap;
}
.cf-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(247,147,30,.5); }

/* ---- Map Section ---- */
.map-section { padding: 100px 0; background: var(--light-bg); }
.map-embed-wrapper { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.map-embed-placeholder {
    background: linear-gradient(135deg, #fff8f0, #ffe9cc);
    border-radius: 24px; min-height: 400px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px; border: 2px dashed rgba(247,147,30,.3);
}
.map-pin-anim {
    font-size: 3rem; color: var(--primary); margin-bottom: 16px;
    animation: pinBounce 1.5s ease-in-out infinite;
}
@keyframes pinBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.map-embed-placeholder h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--secondary); margin-bottom: 8px; }
.map-embed-placeholder p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.map-directions-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.map-landmarks { background: white; border-radius: 20px; padding: 28px; box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.map-landmarks h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.map-landmarks h4 i { color: var(--primary); }
.lm-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.lm-item { display: flex; align-items: center; gap: 14px; }
.lm-item > i { width: 38px; height: 38px; border-radius: 10px; background: rgba(247,147,30,.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.lm-item strong { display: block; font-size: 0.85rem; color: var(--secondary); }
.lm-item span   { font-size: 0.78rem; color: var(--text-muted); }
.transport-note {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: flex-start;
    border-left: 4px solid var(--primary);
}
.transport-note > i { font-size: 1.5rem; color: var(--primary); margin-top: 2px; }
.transport-note p   { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }
.transport-note strong { color: var(--secondary); }

/* ---- FAQ Section ---- */
.faq-section { padding: 100px 0; background: white; }
.faq-grid { max-width: 860px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 2px solid #e8eaf0; border-radius: 16px; overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--primary); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; cursor: pointer; background: white; transition: background 0.3s;
}
.faq-item.open .faq-question { background: #fff8f0; }
.faq-question span { font-size: 0.95rem; font-weight: 600; color: var(--secondary); line-height: 1.4; }
.faq-icon {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: rgba(247,147,30,.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; transition: all 0.3s;
}
.faq-item.open .faq-icon { background: var(--primary); color: white; transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }

.faq-cta { text-align: center; }
.faq-cta p { color: var(--text-muted); margin-bottom: 16px; }

/* Nav active */
.nav-active { color: var(--primary) !important; }

/* Alert reuse from style.css */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.alert-success { background: #e8f8f0; color: #1a7a45; border-left: 4px solid var(--green); }
.alert-error   { background: #ffe8e8; color: #c0392b; border-left: 4px solid var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .mc-inner { grid-template-columns: 1fr; }
    .mc-info-panel { padding: 40px; }
    .mci-items { flex-direction: row; flex-wrap: wrap; }
    .mci-item { width: calc(50% - 14px); }
    .mci-deco { display: none; }
    .map-embed-wrapper { grid-template-columns: 1fr; }
    .cc-grid { grid-template-columns: 1fr 1fr; }
    .cph-illustration { display: none; }
}
@media (max-width: 768px) {
    .contact-page-hero { flex-direction: column; text-align: center; padding: 120px 20px 60px; }
    .cph-quick { justify-content: center; }
    .mc-form-panel { padding: 36px 24px; }
    .cf-row.two-col { grid-template-columns: 1fr; }
    .cf-bottom { grid-template-columns: 1fr; }
    .cf-submit-btn { width: 100%; justify-content: center; }
    .mci-items { flex-direction: column; }
    .mci-item { width: 100%; }
    .cc-grid { grid-template-columns: 1fr; }
}
