/* style.css - Custom Styling & Printable A4 Form Styling */

:root {
  --primary-navy: #003366;
  --secondary-navy: #002244;
  --gold-accent: #d4af37;
  --light-bg: #f4f7fa;
  --border-color: #cbd5e1;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--light-bg);
  color: #1e293b;
}

/* Header & Navbar */
.school-header-bar {
  background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--primary-navy) 100%);
  color: white;
  padding: 1.5rem 0;
  border-bottom: 4px solid var(--gold-accent);
}

.school-title {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.6rem;
}

.school-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Form Container */
.form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
  border: 1px solid rgba(0, 51, 102, 0.12);
  margin-bottom: 2rem;
}

.form-section-title {
  background-color: #eef4fc;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
  border-left: 5px solid var(--primary-navy);
  margin-top: 1.5rem;
  margin-bottom: 1.2rem;
  border-radius: 0 4px 4px 0;
}

/* Custom Input Underline style for physical form match */
.field-number {
  font-weight: bold;
  color: var(--primary-navy);
  margin-right: 6px;
}

/* Class Toggle Selector */
.class-selector-card {
  background: #fff8e6;
  border: 2px solid var(--gold-accent);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.btn-class-choice {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
}

.btn-class-choice.active {
  background-color: var(--primary-navy) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0,51,102,0.3);
}

/* PIN Boxes representation */
.pin-boxes {
  display: inline-flex;
  gap: 3px;
}

.pin-box {
  width: 26px;
  height: 30px;
  border: 1.5px solid #333;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  line-height: 28px;
  background: white;
}

/* Checkbox visual block for form printable preview */
.form-check-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #000;
  vertical-align: text-bottom;
  margin-left: 4px;
  margin-right: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 14px;
  font-weight: bold;
}

/* Printable A4 Form Styling (applicationform.php) */
.a4-page-container {
  width: 210mm;
  min-height: 297mm;
  padding: 12mm 15mm;
  margin: 20px auto;
  background: white;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  font-family: 'Times New Roman', Times, serif;
  color: #000;
  font-size: 13.5px;
  line-height: 1.45;
  box-sizing: border-box;
  position: relative;
}

.site-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.printable-header {
  text-align: center;
  position: relative;
  margin-bottom: 12px;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
}

.printable-header .school-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 75px;
  height: 75px;
}

.printable-header .photo-box {
  position: absolute;
  right: 0;
  top: 0;
  width: 90px;
  height: 110px;
  border: 1px solid #000;
  text-align: center;
  font-size: 9.5px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
}

.printable-header .photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.printable-header h2 {
  font-size: 17px;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}

.printable-header p {
  margin: 1px 0;
  font-size: 11px;
}

.printable-header h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 6px 0 2px 0;
  text-decoration: underline;
}

.dotted-line {
  border-bottom: 1px dotted #333;
  display: inline-block;
  padding-left: 5px;
  font-weight: bold;
  color: #000;
}

.form-row-print {
  margin-bottom: 7px;
}

.page-break {
  break-after: page;
  page-break-after: always;
}

.downloaded-footer-note {
  margin-top: 25px;
  border-top: 1px solid #888;
  padding-top: 8px;
  font-style: italic;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

/* Print Media Query */
@media print {
  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .a4-page-container {
    width: 100% !important;
    min-height: auto !important;
    padding: 5mm 8mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 10mm 10mm 10mm 10mm;
  }
}
