/* ============================================================
   TOGABE SCHOOLS — Contact Us Page Stylesheet
   ============================================================ */

/* ── Contact Layout ── */
.contact-section {
    padding: 5rem 0;
    background: #fff;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3.5rem;
    align-items: start;
}

/* ── Contact Form ── */
.contact-form-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.contact-form-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-form-header-icon {
    width: 40px; height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-form-header-icon [data-lucide] { width: 18px; height: 18px; }
.contact-form-header h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.contact-form-header p  {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.contact-form-body { padding: 2rem; }

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

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.3rem;
    display: block;
}
.char-count.near-limit { color: var(--warning); }
.char-count.at-limit   { color: var(--danger); }

/* ── Contact Info Sidebar ── */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.info-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}
.info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.info-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.875rem;
}
.info-card-icon [data-lucide] { width: 20px; height: 20px; }
.info-card-icon-primary { background: var(--primary-light); color: var(--primary); }
.info-card-icon-success { background: #d1fae5; color: #059669; }
.info-card-icon-warning { background: #fef3c7; color: #d97706; }
.info-card-icon-info    { background: #dbeafe; color: #2563eb; }

.info-card-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.3rem; }
.info-card-value { font-size: 0.875rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: 0.25rem; }
.info-card-note  { font-size: 0.75rem; color: var(--text-muted); }

/* ── School Hours Card ── */
.hours-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hours-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--bg-light);
}
.hours-card-header [data-lucide] { width: 16px; height: 16px; color: var(--primary); }
.hours-list { padding: 0; }
.hours-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.hours-item:last-child { border-bottom: none; }
.hours-day   { font-weight: 600; color: var(--text-dark); }
.hours-time  { color: var(--text-muted); font-weight: 500; }
.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.hours-badge-open   { background: #d1fae5; color: #065f46; }
.hours-badge-closed { background: #fee2e2; color: #991b1b; }

/* ── Direct Contact Card ── */
.direct-contact-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.direct-contact-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.direct-contact-card > * { position: relative; z-index: 1; }
.direct-contact-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.direct-contact-card p  {
    color: rgba(255,255,255,0.7);
    font-size: 0.84rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.direct-contact-links { display: flex; flex-direction: column; gap: 0.65rem; }
.direct-contact-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.875rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.direct-contact-link:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.direct-contact-link [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Map Section ── */
.map-section {
    padding: 0 0 5rem;
    background: #fff;
}
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.map-header {
    background: var(--bg-light);
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.map-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.map-header-left [data-lucide] { width: 16px; height: 16px; color: var(--primary); }
.map-header-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.map-header-address [data-lucide] { width: 13px; height: 13px; }
.map-iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}
.map-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}
.map-placeholder [data-lucide] { width: 52px; height: 52px; color: var(--primary); opacity: 0.4; }
.map-placeholder h4 { color: var(--text-dark); margin-bottom: 0.25rem; }
.map-placeholder p  { font-size: 0.875rem; max-width: 400px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .contact-layout   { grid-template-columns: 1fr; }
    .contact-sidebar  { order: -1; }
    .info-cards-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .contact-form-body { padding: 1.5rem; }
    .contact-form-header { padding: 1.25rem 1.5rem; }
}
@media (max-width: 480px) {
    .info-cards-grid { grid-template-columns: 1fr; }
}