/* ── Contact page – page-specific styles only ──
   Layout, header, footer, mobile nav, preloader → public/css/layout.css
   Theme variables                               → public/css/theme-student.css
   ─────────────────────────────────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Mobile overrides for this page ── */
@media (max-width: 767px) {
    #page-hero { padding-top: 80px; }
    .cf-row { flex-direction: column; gap: 0; }
    .cf-row .field-set { flex: 1 1 100%; }
}

/* ── Hero ── */
#page-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(41,0,151,.93) 0%, rgba(26,0,102,.91) 100%);
    z-index: 1;
}
#page-hero .container { position: relative; z-index: 2; text-align: center; }
@media (max-width: 767px) {
    #page-hero { padding: 100px 0 56px; }
}
#page-hero .hero-label { color: var(--uni-yellow); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 14px; }
#page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; color: #fff; font-family: var(--font-main); margin-bottom: 18px; line-height: 1.15; }
#page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 540px; margin: 0 auto; line-height: 1.75; }

/* ── Contact section ── */
#section-contact { padding: 80px 0 100px; background: #f5f6fb; }

/* Info cards row */
.contact-info-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 52px; }
.contact-info-card { flex: 1; min-width: 200px; background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; box-shadow: 0 2px 18px rgba(41,0,151,.07); border-top: 4px solid var(--uni-blue); }
.contact-info-card .ci-icon { width: 52px; height: 52px; background: var(--uni-blue); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.contact-info-card .ci-icon i { color: var(--uni-yellow); font-size: 1.3rem; }
.contact-info-card h5 { font-size: .85rem; font-weight: 800; color: #aaa; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; font-family: var(--font-main); }
.contact-info-card p { font-size: .97rem; color: #333; font-weight: 600; margin: 0; line-height: 1.6; }
.contact-info-card a { color: var(--uni-blue); text-decoration: none; }
.contact-info-card a:hover { text-decoration: underline; }

/* Main 2-col layout */
.contact-main { display: flex; gap: 32px; flex-wrap: wrap; align-items: stretch; }

/* Form card */
.contact-form-card { flex: 1.1; min-width: 320px; background: #fff; border-radius: 20px; padding: 44px 40px; box-shadow: 0 4px 28px rgba(41,0,151,.1); }
.contact-form-card h3 { font-size: 1.55rem; font-weight: 900; color: #0d0028; font-family: var(--font-main); margin-bottom: 6px; }
.contact-form-card .sub { color: #888; font-size: .97rem; margin-bottom: 28px; }
.cf-row { display: flex; gap: 16px; }
.cf-row .field-set { flex: 1; }
.field-set { margin-bottom: 16px; }
.field-set input, .field-set textarea, .field-set select {
    width: 100%; height: 50px; border: 1.5px solid #e2e5f0; border-radius: 10px;
    padding: 0 16px; font-size: .97rem; font-family: var(--font-main);
    color: #333; background: #fafbfd; outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none; -webkit-appearance: none;
}
.field-set textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.field-set input:focus, .field-set textarea:focus, .field-set select:focus {
    border-color: var(--uni-blue); box-shadow: 0 0 0 3px rgba(41,0,151,.1); background: #fff;
}
.field-set input::placeholder, .field-set textarea::placeholder { color: #bbb; }
.btn-send { background: var(--uni-blue); color: #fff; border: none; border-radius: 10px; padding: 14px 40px; font-size: 1rem; font-weight: 800; font-family: var(--font-main); cursor: pointer; transition: opacity .2s; width: 100%; margin-top: 6px; }
.btn-send:hover { opacity: .88; }

/* Success / error messages */
#mail_success { display: none; margin-top: 18px; background: #edfaf3; border: 1.5px solid #6ed4a3; color: #1a7a50; border-radius: 10px; padding: 16px 20px; font-weight: 700; font-size: .97rem; }
#mail_success.visible { display: flex; align-items: center; gap: 12px; }
#mail_success .tick { width: 32px; height: 32px; background: #1a7a50; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#mail_success .tick i { color: #fff; font-size: .95rem; }
#mail_fail { display: none; margin-top: 18px; background: #fff0f0; border: 1.5px solid #f5a5a5; color: #c0392b; border-radius: 10px; padding: 14px 20px; font-weight: 600; font-size: .95rem; }
#mail_fail.visible { display: block; }

/* Map card */
.contact-map-card { flex: 1; min-width: 300px; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 28px rgba(41,0,151,.1); min-height: 480px; }
.contact-map-card iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .contact-info-row { gap: 14px; }
  .contact-info-card { min-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
  #section-contact { padding: 64px 0 80px; }
  .contact-form-card { padding: 36px 32px; }
}

@media (max-width: 767px) {
  #section-contact { padding: 56px 0 !important; }
  .contact-info-row { flex-direction: column; gap: 12px; margin-bottom: 36px; }
  .contact-info-card { min-width: 100%; flex: 1 1 100%; }
  .contact-main { flex-direction: column; gap: 24px; }
  .contact-form-card { min-width: unset; padding: 28px 24px; }
  .map-wrap { min-height: unset; }
  .map-wrap iframe { min-height: 280px !important; }
  .contact-map-card { min-height: unset; }
  .contact-map-card iframe { min-height: 280px !important; }
}

@media (max-width: 480px) {
  #section-contact { padding: 40px 0 !important; }
  .contact-form-card { padding: 22px 16px; }
  .cf-row { flex-direction: column; gap: 0; }
  .cf-row .field-set { flex: 1 1 100%; }
  .map-wrap iframe { min-height: 240px !important; }
  .contact-map-card iframe { min-height: 240px !important; }
  #page-hero h1 { font-size: 2rem; }
  #page-hero p { font-size: 1rem; }
}
