/* -------------------------------------------------------
   JIU Admissions – CLEAN PREMIUM UI (2025 MODERN VERSION)
   • Light, clean, university-grade interface
   • Fully responsive, mobile-first
   • No theme conflicts, no double borders
   • Smooth controls, elegant whitespace, modern feel
------------------------------------------------------- */

:root {
  --jiu-blue: #0b3b66;
  --jiu-blue-dark: #072c4d;
  --jiu-accent: #eaf3ff;
  --jiu-soft: #f5f8fc;
  --jiu-bg: #f8faff;
  --jiu-border: #d9e2ec;
  --jiu-text: #12263f;
  --jiu-muted: #6b7b8c;
  --jiu-radius: 12px;
  --jiu-shadow: 0 6px 20px rgba(15, 31, 51, 0.08);
  --jiu-font: Inter, "Segoe UI", Arial, sans-serif;
}

/* Base Layout ------------------------------------------------ */
html, body {
  margin: 0;
  padding: 0;
  background: var(--jiu-bg);
  font-family: var(--jiu-font);
  color: var(--jiu-text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

/* Wrapper ---------------------------------------------------- */
.jiu-wrapper {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 20px;
}

/* Header ----------------------------------------------------- */
.jiu-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.jiu-header img {
  height: 70px;
  border-radius: 10px;
}
.jiu-header .title h1 {
  margin: 0;
  color: var(--jiu-blue);
  font-size: 22px;
  font-weight: 700;
}
.jiu-header .title p {
  margin: 4px 0 0;
  color: var(--jiu-muted);
  font-size: 14px;
}

/* Section Card ---------------------------------------------- */
.jiu-section {
  background: #fff;
  border: 1px solid var(--jiu-border);
  border-radius: var(--jiu-radius);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--jiu-shadow);
}

.section-title {
  margin: 0 0 16px;
  color: var(--jiu-blue);
  font-size: 17px;
  font-weight: 700;
}

/* Responsive Grid ------------------------------------------- */
.jiu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Inputs ----------------------------------------------------- */
.jiu-section label {
  display: block;
  font-size: 14px;
  color: var(--jiu-text);
  font-weight: 600;
}

.jiu-section input,
.jiu-section select,
.jiu-section textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid var(--jiu-border);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.jiu-section input:focus,
.jiu-section select:focus,
.jiu-section textarea:focus {
  border-color: var(--jiu-blue);
  box-shadow: 0 0 0 4px rgba(11, 59, 102, 0.08);
  outline: none;
}

textarea { resize: vertical; min-height: 110px; }

/* File Input ------------------------------------------------- */
.jiu-section input[type="file"] {
  padding: 10px;
  border-radius: 8px;
}

/* Buttons ---------------------------------------------------- */
.jiu-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.jiu-btn {
  padding: 12px 22px;
  border-radius: var(--jiu-radius);
  border: 1px solid var(--jiu-border);
  background: #fff;
  cursor: pointer;
  color: var(--jiu-blue);
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s;
}

.jiu-btn:hover {
  background: var(--jiu-accent);
}

.jiu-btn.primary {
  background: linear-gradient(180deg, var(--jiu-blue), var(--jiu-blue-dark));
  color: #fff;
  border: none;
}
.jiu-btn.primary:hover {
  opacity: 0.92;
}

/* Consent Box ------------------------------------------------ */
.jiu-consent-box {
  background: var(--jiu-soft);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--jiu-border);
}
.agree {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-weight: 600;
}
.agree input {
  width: 20px;
  height: 20px;
  accent-color: var(--jiu-blue);
}

/* Payment Notes --------------------------------------------- */
.jiu-note {
  margin-top: 15px;
  padding: 18px 22px;
  border-radius: 10px;
  background: var(--jiu-accent);
  border-left: 6px solid var(--jiu-blue);
  font-size: 15px;
  line-height: 1.55;
}

.jiu-note-blue { background: #e8f4ff; border-left-color: #0b3b66; }
.jiu-note-yellow { background: #fff7d6; border-left-color: #e3b300; }
.jiu-note-green { background: #ecffe9; border-left-color: #2d8a34; }

/* Bank Cards ------------------------------------------------- */
.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.bank-card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--jiu-border);
}
.bank-header {
  padding: 10px;
  background: #fff2f2;
  border-radius: 8px;
  font-weight: 700;
  color: #cc0000;
  margin-bottom: 12px;
}

/* Popup ------------------------------------------------------ */
#jiuSuccessPopup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: rgba(0,0,0,0.42);
  padding: 20px;
}
#jiuSuccessPopup.show { display: flex; }

.jiu-popup-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  width: 680px;
  max-width: 100%;
  box-shadow: var(--jiu-shadow);
  border: 1px solid var(--jiu-border);
}

.jiu-popup-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Invalid Fields -------------------------------------------- */
.jiu-invalid {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, .15) !important;
}

/* Mobile Responsiveness ------------------------------------- */
@media (max-width: 900px) {
  .bank-grid { grid-template-columns: 1fr; }
  .jiu-popup-summary { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .jiu-wrapper { padding: 0 14px; }
  .jiu-header img { height: 58px; }
  .jiu-header .title h1 { font-size: 19px; }
  .jiu-btn { padding: 11px 16px; }
}

/* Print Mode ------------------------------------------------ */
@media print {
  body { background: #fff; }
  .jiu-section { box-shadow: none; border: 1px solid #ddd; }
}
