* {
  font-family: "DM Sans", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #10647f; /* keep your background */
}

/* The main content wrapper */
.main-content {
  flex: 1; /* pushes the footer to the bottom */
}

h1{
 font-weight: 900;
 color: white;
}

/* Remove number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Header */
.header {
  background-image: linear-gradient(rgba(4,9,30,0.7)), url(../Pictures/schoolBg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 15px 0;
}

/* NAV BAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
}

/* LOGO */
nav img {
  width: 70px;
}

/* NAVIGATION LINKS (DESKTOP) */
.nav-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links ul li {
  display: inline-block;
  position: relative;
  padding: 10px 12px;
}

.nav-links ul li a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links ul li a:hover {
  color: #f5ec34; /* keep your hover style */
}

/* ================================
   DROPDOWN MENU (DESKTOP)
================================ */
ul li ul.dropdown {
  position: absolute;
  background: #A9A9A9;
  width: 170px;
  display: none;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  z-index: 1000;
}

ul li:hover > ul.dropdown {
  display: block;
}

.dropdown li {
  display: block;
  padding: 10px;
}

.dropdown li a {
  color: white;
  display: block;
}

.dropdown li a:hover {
  color: #494732;
  background: #f5ec34;
}

/* ================================
   MOBILE — HAMBURGER
================================ */
.menu-toggle {
  display: none;
  font-size: 30px;
  color: #f5ec34;
  cursor: pointer;
}

/* ================================
   MOBILE NAVIGATION
================================ */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  /* Hide nav by default */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(4,9,30,0.95);
    padding-top: 80px;
    transition: 0.4s ease;
    z-index: 9999;
  }

  /* Slide-in animation */
  .nav-links.open {
    right: 0;
  }

  .nav-links ul li {
    display: block;
    padding: 15px 20px;
  }

  .nav-links ul li a {
    font-size: 18px;
    display: block;
  }

  /* DROPDOWN inside mobile panel */
  .dropdown {
    position: static;
    display: none;
    background: rgba(255,255,255,0.1);
    margin-top: 5px;
    border-radius: 4px;
  }

  .has-dropdown.show .dropdown {
    display: block;
  }
}

h1.title {
    text-align: center;
    margin: 50px;
}


/* =========================================
   Box Layouts
========================================= */
.box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin: 2em;
}

.box {
  background-color: white;
  border: 0.3em solid #f5ec34;
  border-radius: 0.4em;
  padding: 2em;
  margin-bottom: 2em;
  width: calc(50% - 2em);
  text-align: center;
}

.box h1 {
  color: #000;
  margin-bottom: 1.5em;
  font-size: 1.5em;
}

.box .content {
  color: #000;
  line-height: 1.6;
  text-align: left;
}

.box .content ul {
  list-style-type: disc;
  padding-left: 2em;
  margin-top: 1em;
}

.box .content ul li {
  margin-bottom: 0.5em;
}

/* =========================================
   Enrollment Form
========================================= */
.enrollment-form {
  text-align: left;
}

.enrollment-form h3 {
  background-color: #10647f;
  color: white;
  padding: 0.6em 1em;
  border-radius: 0.3em;
  margin: 1.5em 0 1em;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

.enrollment-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #333;
}

.enrollment-form input[type="text"],
.enrollment-form input[type="date"],
.enrollment-form input[type="number"],
.enrollment-form input[type="email"],
.enrollment-form select,
.enrollment-form textarea,
.enrollment-form input[type="file"] {
  width: 100%;
  padding: 0.6em;
  margin-bottom: 1.2em;
  border: 1px solid #ccc;
  border-radius: 0.3em;
  font-size: 1em;
}

.enrollment-form textarea {
  min-height: 5em;
  resize: none; /* prevent dragging resize */
}

/* Submit Button */
.enrollment-form button[type="submit"] {
  background-color: #10647f;
  color: white;
  padding: 1em 2em;
  border: none;
  border-radius: 0.4em;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
  margin-top: 1.5em;
}

.enrollment-form button[type="submit"]:hover {
  background-color: #0a4a5e;
}

/* Checkbox alignment */
.enrollment-form input[type="checkbox"] {
  margin-right: 0.5em;
  transform: scale(1.2);
}

/* =========================================
   Info Boxes
========================================= */
.info-box {
  margin-top: 1.5em;
  padding: 1em;
  border-radius: 4px;
}

.info-blue {
  background-color: #e7f3ff;
  border-left: 4px solid #2196F3;
  color: #333;
}

.info-yellow {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.info-cyan {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

/* Footer */
.footer {
  background-color: #494732;
  padding: 50px 20px;
  margin-top: 60px;
  color: white;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ===================================
   Footer Columns
=================================== */

.footer-col {
  width: 45%;        /* 2 columns on desktop */
  margin-bottom: 30px;
}

.footer-title {
  font-size: 22px;
  color: #f5ec34;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-text {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
}

/* ===================================
   Social Icons
=================================== */

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  color: #ffffff;
  margin-right: 10px;
  font-size: 18px;
  transition: 0.3s;
}

.social-links a:hover {
  background-color: #f5ec34;
  color: #10647f;
  transform: scale(1.15);
}

/* ===================================
   Footer Bottom Text
=================================== */

.footer-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.3);
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}

/* ===================================
   RESPONSIVE FOOTER
=================================== */

@media (max-width: 768px) {

  .footer-col {
    width: 100%;     /* stack columns */
    text-align: center;
  }

  .footer-title {
    font-size: 20px;
  }

  .social-links a {
    margin: 5px;
  }
}

@media (max-width: 480px) {

  .footer {
    padding: 40px 15px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-text {
    font-size: 14px;
  }

  .social-links a {
    height: 36px;
    width: 36px;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 13px;
  }
}


/* =========================================
   Modals
========================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  border-radius: 0.5em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background-color: #10647f;
  color: white;
  padding: 1.5em;
  border-radius: 0.5em 0.5em 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  color: white;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #f5ec34;
}

.modal-body {
  padding: 2em;
  line-height: 1.6;
}

.form-summary {
  background-color: #f8f9fa;
  padding: 1.5em;
  border-radius: 0.3em;
  border-left: 4px solid #10647f;
  margin-top: 1.5em;
}

#summaryContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em 1em;
  font-size: 0.9em;
}

.summary-label {
  font-weight: bold;
  color: #555;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  color: #333;
  padding-top: 0.2em;
}

.modal-footer {
  background-color: #f8f9fa;
  padding: 1.5em;
  border-radius: 0 0 0.5em 0.5em;
  display: flex;
  justify-content: flex-end;
  gap: 1em;
}

.btn-cancel,
.btn-confirm,
.btn-success {
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 0.3em;
  cursor: pointer;
  font-size: 1em;
  font-family: "DM Sans", sans-serif;
  transition: background-color 0.3s ease;
}

.btn-cancel { background-color: #6c757d; color: white; }
.btn-cancel:hover { background-color: #5a6268; }

.btn-confirm { background-color: #10647f; color: white; }
.btn-confirm:hover { background-color: #0a4a5e; }

/* =========================================
   Success Modal
========================================= */
.success-modal { background-color: rgba(0, 0, 0, 0.6); }

.success-content {
  background: white;
  max-width: 450px;
  text-align: center;
  border-radius: 1em;
  animation: successSlideIn 0.4s ease-out;
}

@keyframes successSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.checkmark-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background-color: #28a745;
  margin: 2em auto 1em auto;
  position: relative;
  animation: checkmarkPop 0.6s ease-out;
}

@keyframes checkmarkPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.checkmark::after {
  content: '✓';
  font-size: 2.5em;
  font-weight: bold;
  color: white;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: checkmarkDraw 0.3s ease-in-out 0.3s both;
}

@keyframes checkmarkDraw {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 768px) {
  .box-container {
    flex-direction: column;
    align-items: stretch;
  }

  .box {
    width: 100%;
  }
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  #summaryContent {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-confirm {
    width: 100%;
    margin-bottom: 0.5em;
  }
}
