/* ============================================================
   NAMILYANGO COLLEGE — CONTACT PAGE STYLES
   ============================================================ */

:root {
    --primary: #00274c;
    --gold: #f2cb3f;
    --nav-height: 72px;
}

/* ---- PAGE BANNER ---- */
.page-banner {
    min-height: 300px;
    background: linear-gradient(135deg, #051e3e 0%, #00274c 60%, #0a3560 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.page-banner-bg {
    position: absolute;
    inset: 0;
    background: url('images/topslider.jpg') center/cover no-repeat;
    opacity: 0.12;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f2cb3f, #e67e22, #f2cb3f);
}
.page-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2.5rem) 2rem 3rem;
    width: 100%;
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.81rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}
.breadcrumb-nav a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.breadcrumb-nav a:hover { color: #f2cb3f; }
.breadcrumb-nav .sep { font-size: 0.6rem; color: rgba(255,255,255,0.3); }
.breadcrumb-nav .current { color: #f2cb3f; }

.page-banner-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.4rem;
    line-height: 1.15;
}
.page-banner-title span { color: #f2cb3f; }

.page-banner-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
}

/* ---- FLASH MESSAGE ---- */
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.flash-message i { margin-top: 2px; font-size: 1.1rem; flex-shrink: 0; }
.flash-message.success { background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46; }
.flash-message.error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }

/* ---- CONTACT SECTION ---- */
.contact-section {
    padding: 72px 0 80px;
    background: #f4f6f9;
}
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Info cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-top: 3px solid #f2cb3f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.contact-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #00274c, #0a3560);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem;
    color: #f2cb3f;
    font-size: 1.25rem;
}
.contact-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    color: #00274c; margin-bottom: 0.5rem;
}
.contact-card p,
.contact-card a {
    font-size: 0.86rem; color: #555;
    line-height: 1.75; text-decoration: none; display: block;
}
.contact-card a:hover { color: #00274c; }

/* Form + Sidebar layout */
.contact-body {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Form */
.contact-form-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.contact-form-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.45rem; font-weight: 800;
    color: #00274c; margin-bottom: 0.3rem;
}
.contact-form-subtitle {
    font-size: 0.86rem; color: #6b7280; margin-bottom: 1.8rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    display: flex; flex-direction: column; gap: 0.35rem;
    margin-bottom: 1rem;
}
.form-group label {
    font-size: 0.8rem; font-weight: 600;
    color: #374151; letter-spacing: 0.2px;
}
.form-group label .req { color: #ef4444; }
.form-control {
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Fira Sans', sans-serif;
    color: #1f2937;
    background: #fafafa;
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
}
.form-control:focus {
    border-color: #00274c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,39,76,0.08);
}
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.btn-submit {
    display: flex; align-items: center; justify-content: center;
    gap: 0.6rem; width: 100%;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #00274c, #0a3560);
    color: #f2cb3f;
    border: none; border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; font-size: 0.95rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #0a3560, #00274c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,39,76,0.3);
    color: #fff;
}

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

.sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.sidebar-box-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem; font-weight: 700;
    color: #00274c;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f2cb3f;
    display: flex; align-items: center; gap: 0.4rem;
}
.sidebar-box-title i { color: #f2cb3f; }

.hours-list { display: flex; flex-direction: column; gap: 0; }
.hours-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.83rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.hours-row:last-child { border: none; }
.hours-row .day { font-weight: 600; color: #00274c; }

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.social-pill {
    display: flex; align-items: center; justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.79rem; font-weight: 600;
    text-decoration: none;
    border: 1.5px solid;
    transition: all 0.25s ease;
}
.social-pill.fb  { color: #1877f2; border-color: #1877f2; }
.social-pill.tw  { color: #000;    border-color: #000; }
.social-pill.ig  { color: #e1306c; border-color: #e1306c; }
.social-pill.yt  { color: #ff0000; border-color: #ff0000; }
.social-pill.wa  { color: #25d366; border-color: #25d366; }
.social-pill:hover { color: #fff; transform: translateY(-2px); }
.social-pill.fb:hover { background: #1877f2; }
.social-pill.tw:hover { background: #000; }
.social-pill.ig:hover { background: #e1306c; }
.social-pill.yt:hover { background: #ff0000; }
.social-pill.wa:hover { background: #25d366; }

.admission-box {
    background: linear-gradient(135deg, #051e3e, #0a3560);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.admission-box h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: #f2cb3f; margin-bottom: 0.5rem;
}
.admission-box p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.7; margin-bottom: 1.1rem;
}
.btn-apply {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #f2cb3f; color: #00274c;
    border-radius: 6px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-apply:hover { background: #d4a800; transform: translateY(-2px); color: #00274c; }

/* ---- MAP ---- */
.contact-map { background: #f4f6f9; padding: 0 0 72px; }
.contact-map-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.contact-map-inner iframe {
    width: 100%; height: 380px;
    border: none; border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    display: block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .contact-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .contact-cards      { grid-template-columns: 1fr; }
    .form-row           { grid-template-columns: 1fr; }
    .contact-form-wrap  { padding: 1.5rem; }
    .page-banner        { min-height: 240px; }
    .social-grid        { grid-template-columns: repeat(3, 1fr); }
    .contact-map-inner iframe { height: 260px; }
}
