/* Custom Reset and Variables */
:root {
  --navy: #0a2240;
  --orange: #ff6f00;
  --gold: #d4af37;
  --cream: #fdfbf7;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-border: #ccd6e0;
  --text-dark: #333333;
  --text-light: #ffffff;
  --font-title: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-cursive: 'Dancing Script', cursive;
  --shadow-premium: 0 12px 36px rgba(10, 34, 64, 0.12);
  --shadow-input: 0 2px 5px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f7f9fc;
  color: var(--text-dark);
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  overflow-x: hidden;
}

/* Beautiful Themed Backgrounds */
.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e3f2fd 0%, #fffde7 50%, #f7f9fc 100%);
  z-index: -2;
  opacity: 0.8;
}

.gurdwara-watermark {
  position: absolute;
  top: 80px;
  left: 5%;
  width: 250px;
  height: 250px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230a2240" opacity="0.04"><path d="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8Z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 950px;
  flex: 1;
  background-color: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow-premium);
  overflow-x: hidden;
  border: none;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  background: linear-gradient(to bottom, #ffffff 0%, #fdfbf7 100%);
  border-bottom: 3px double var(--gray-border);
  gap: 20px;
  min-width: 0;
}

.header-flag {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  justify-content: center;
}

.flag-img {
  max-height: 170px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.header-emblem {
  flex-shrink: 0;
  width: 130px;
  display: flex;
  justify-content: center;
}

.emblem-img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.header-center {
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

/* Presents Badge */
.presents-badge {
  background-color: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 20px;
  border-radius: 4px;
  border: 1.5px solid var(--gold);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-khanda {
  font-size: 1rem;
  line-height: 1;
}

/* Camp Title */
.main-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 15px;
}

.title-summer-gurmat {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 1px;
}

.title-camp {
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 2px;
  margin-top: -2px;
}

/* Registration Form Ribbon Banner */
.form-banner {
  background-color: var(--navy);
  color: var(--white);
  padding: 8px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
  margin-bottom: 15px;
}

.banner-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}

.banner-diamond {
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  transform: rotate(45deg);
  position: absolute;
}

.banner-diamond.left {
  left: 15px;
}

.banner-diamond.right {
  right: 15px;
}

/* Taglines */
.tagline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tag-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--navy);
}

.tag-dot {
  color: var(--orange);
  font-size: 1rem;
}

.sub-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--navy);
  opacity: 0.85;
  border-top: 1.5px solid var(--orange);
  padding-top: 5px;
  width: 80%;
  max-width: 320px;
}

/* ==========================================================================
   FORM CARD & LAYOUT
   ========================================================================== */
.form-card {
  padding: 30px 40px;
  background-color: var(--cream);
  border: 4px double var(--navy);
  border-radius: 12px;
  margin: 25px 40px;
  box-shadow: inset 0 0 40px rgba(10, 34, 64, 0.02);
}

/* Form Top Section: Fields on Left, Photo Box on Right */
.form-top-row {
  display: flex;
  gap: 25px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.fields-left {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Form Grid Rows */
.row-triple {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
}

.row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.row-single {
  margin-top: 15px;
}

/* Form Fields Styling */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.form-group input, 
.form-group select {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid var(--gray-border);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--navy);
  font-weight: 750; /* bold input values */
  outline: none;
  box-shadow: var(--shadow-input);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:hover, 
.form-group select:hover {
  border-color: var(--orange);
}

.form-group input:focus, 
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10, 34, 64, 0.12);
  transform: translateY(-1px);
}

.form-group input::placeholder {
  color: #a0aec0;
  font-weight: 500;
}

/* Dropdowns Arrow customization */
.form-group select {
  cursor: pointer;
}

.required {
  color: #e53e3e;
  margin-left: 2px;
}

.optional-label {
  color: #718096;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 4px;
}

/* Error Messages */
.error-msg {
  color: #e53e3e;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
  min-height: 15px;
  display: block;
}

.text-center {
  text-align: center;
}

/* Passport Photo Upload Box */
.photo-right {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-upload-container {
  width: 130px;
  height: 160px;
  border: 2px dashed var(--navy);
  border-radius: 8px;
  background-color: var(--white);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow-input);
}

.photo-upload-container:hover {
  background-color: rgba(10, 34, 64, 0.02);
  border-color: var(--orange);
}

.photo-upload-container.dragover {
  background-color: rgba(255, 111, 0, 0.05);
  border-color: var(--orange);
}

.photo-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--navy);
  padding: 10px;
  pointer-events: none;
  z-index: 1;
}

.camera-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  opacity: 0.8;
  color: var(--navy);
}

.upload-title {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.upload-subtitle {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 4px;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.remove-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(229, 62, 62, 0.9);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  z-index: 4;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-photo-btn:hover {
  background-color: #c53030;
  transform: scale(1.1);
}

.hidden {
  display: none !important;
}

/* Medical Note Banner */
.medical-note-banner {
  background-color: #fff8e1;
  border-left: 4px solid var(--orange);
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.note-icon-box {
  flex-shrink: 0;
  color: var(--orange);
  display: flex;
  align-items: center;
}

.firstaid-icon {
  width: 22px;
  height: 22px;
}

.note-text {
  font-size: 0.8rem;
  color: #5d4037;
  font-weight: 500;
  line-height: 1.4;
}

/* Submit Container */
.submit-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.btn-submit {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8f00 100%);
  color: var(--white);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 14px 45px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  outline: none;
}

.btn-submit:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(10, 34, 64, 0.3);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Loading Spinner */
.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   INFO GRID (VENUE, DATES, TIMINGS, AGE LIMIT)
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 0 40px;
  margin-bottom: 25px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--white);
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
}

.info-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.blue-circle {
  background-color: var(--navy);
  color: var(--white);
}

.orange-circle {
  background-color: var(--orange);
  color: var(--white);
}

.info-svg {
  width: 22px;
  height: 22px;
}

.info-card-content h3 {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.info-card-content p {
  font-size: 0.78rem;
  color: #4a5568;
  line-height: 1.4;
  font-weight: 500;
}


/* ==========================================================================
   INSTRUCTIONS BANNER & TAGLINE
   ========================================================================== */
.instructions-banner {
  background-color: var(--navy);
  color: var(--white);
  margin: 0 40px 25px 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 4px solid var(--gold);
  gap: 20px;
}

.instructions-left {
  flex: 1;
}

.inst-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.clipboard-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.inst-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.inst-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inst-list li {
  font-size: 0.82rem;
  font-weight: 500;
  position: relative;
  padding-left: 15px;
  opacity: 0.9;
}

.inst-list li::before {
  content: "•";
  color: var(--gold);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.instructions-divider {
  width: 1.5px;
  height: 60px;
  background-color: rgba(212, 175, 55, 0.4);
}

.instructions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex: 1.1;
}

.tagline-gurmat {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--white);
  text-align: right;
}

.cursive-text {
  font-family: var(--font-cursive);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}

.gold-khanda {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--navy);
  margin: 0 40px 0 40px;
  border-radius: 30px 30px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  position: relative;
  gap: 30px;
}

.contact-badge {
  background: linear-gradient(135deg, #ff8f00 0%, var(--orange) 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.phone-icon {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.contact-divider {
  width: 2px;
  height: 25px;
  background-color: rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   FOOTER BANNER
   ========================================================================== */
.app-footer {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8f00 100%);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-top: 1.5px solid rgba(255,255,255,0.2);
}

.footer-text {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.footer-decoration {
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1;
}


/* ==========================================================================
   MODAL & SUCCESS SLIP DIALOG
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 34, 64, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--white);
  width: 100%;
  max-width: 580px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  background-color: var(--navy);
  color: var(--white);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 3px solid var(--gold);
}

.success-icon-circle {
  width: 32px;
  height: 32px;
  background-color: #48bb78;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  max-height: 70vh;
}

.success-intro {
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Slip Card Representation */
/* Slip Card Pass High-Fidelity Styles */
.slip-card {
  border: 3px dashed #0a2240;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(253, 251, 247, 0.6) 0%, #ffffff 50%, rgba(253, 249, 242, 0.5) 100%);
  text-align: left;
  max-width: 500px;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.slip-watermark {
  position: absolute;
  right: -10px;
  bottom: -20px;
  opacity: 0.06;
  color: #0a2240;
  width: 240px;
  height: 240px;
  pointer-events: none;
  z-index: 1;
}

.slip-header-pass {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  z-index: 2;
  position: relative;
}

.slip-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slip-header-logo-container {
  width: 32px;
  height: 32px;
  color: #0a2240;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slip-header-text h4 {
  font-size: 0.68rem;
  font-weight: 900;
  color: #0a2240;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.slip-header-text p {
  font-size: 0.58rem;
  font-weight: 700;
  color: #ff6f00;
  line-height: 1.2;
  margin-top: 1px;
}

.slip-badge {
  background-color: #ff6f00;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.slip-body-pass {
  display: flex;
  gap: 16px;
  z-index: 2;
  position: relative;
}

@media (max-width: 480px) {
  .slip-body-pass {
    flex-direction: column;
    align-items: center;
  }
}

.slip-photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 96px;
}

.slip-photo-frame {
  width: 96px;
  height: 112px;
  border: 2px solid #0a2240;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f7fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.slip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slip-no-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  color: #a0aec0;
}

.no-photo-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.no-photo-text {
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.2;
}

.slip-id-badge {
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  text-align: center;
}

.slip-data-grid {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slip-field {
  display: flex;
  flex-direction: column;
}

.slip-label {
  font-size: 0.54rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.slip-value {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2d3748;
}

.slip-value.name-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0a2240;
  text-transform: uppercase;
}

.slip-value.mono-val {
  font-family: monospace;
  font-size: 0.72rem;
}

.slip-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slip-value.signature-value {
  font-family: 'Dancing Script', 'Courier New', cursive;
  font-size: 0.85rem;
  color: #031e9a;
  font-style: italic;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.slip-footer-pass {
  border-top: 1px solid #e2e8f0;
  margin-top: 16px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  z-index: 2;
  position: relative;
}

.slip-footer-col {
  display: flex;
  flex-direction: column;
}

.footer-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 1px;
}

.footer-val {
  font-size: 0.58rem;
  color: #4a5568;
  line-height: 1.3;
}

.slip-quote {
  margin-top: 12px;
  background-color: rgba(254, 243, 199, 0.4);
  border-radius: 8px;
  text-align: center;
  padding: 6px;
  font-size: 0.64rem;
  color: #ff6f00;
  font-weight: 700;
  font-style: italic;
  font-family: serif;
  z-index: 2;
  position: relative;
}

.modal-footer {
  padding: 15px 25px;
  background-color: var(--gray-light);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid var(--gray-border);
}

.btn-print, .btn-close {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-print {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(255,111,0,0.2);
}

.btn-print:hover {
  background-color: #e65100;
}

.btn-close {
  background-color: #718096;
  color: var(--white);
}

.btn-close:hover {
  background-color: #4a5568;
}


/* ==========================================================================
   RESPONSIVE DESIGN - TABLET (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Force everything to stay within viewport */
  .container, .app-header, .form-card, .info-grid,
  .instructions-banner, .app-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-header {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 16px 12px 14px;
    gap: 6px;
  }

  /* Logo row: both logos flanking nothing, then title below */
  .header-flag, .header-emblem {
    width: auto;
    display: inline-flex;
    justify-content: center;
    position: absolute;
  }

  .app-header {
    position: relative;
    padding-top: 12px;
  }

  .header-flag {
    top: 12px;
    left: 12px;
  }

  .header-emblem {
    top: 12px;
    right: 12px;
  }

  .header-center {
    width: 100%;
    padding-top: 0;
  }

  .flag-img {
    max-height: 65px;
  }

  .emblem-img {
    max-height: 58px;
  }

  .presents-badge {
    font-size: 0.5rem;
    padding: 3px 8px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    gap: 4px;
  }

  .badge-khanda {
    font-size: 0.65rem;
  }

  .title-summer-gurmat {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }

  .title-camp {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .form-banner {
    padding: 5px 18px;
    margin-bottom: 8px;
  }

  .banner-text {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .tagline-row {
    gap: 6px;
    margin-bottom: 4px;
  }

  .tag-word {
    font-size: 0.95rem;
  }

  .sub-tagline {
    font-size: 0.75rem;
    width: 90%;
  }

  /* Form card */
  .form-card {
    margin: 15px 12px;
    padding: 18px 14px;
    border-width: 3px;
  }

  .form-top-row {
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
  }

  .photo-right {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .photo-upload-container {
    width: 100px;
    height: 125px;
  }

  .camera-icon {
    width: 24px;
    height: 24px;
  }

  .upload-title {
    font-size: 0.65rem;
  }

  .fields-left {
    width: 100%;
  }

  .row-triple {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .row-double {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 12px 14px;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .btn-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  /* Info grid */
  .info-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 12px;
    gap: 10px;
    margin-bottom: 18px;
  }

  .info-card {
    padding: 10px 8px;
    gap: 8px;
  }

  .info-icon-circle {
    width: 36px;
    height: 36px;
  }

  .info-svg {
    width: 18px;
    height: 18px;
  }

  .info-card-content h3 {
    font-size: 0.7rem;
  }

  .info-card-content p {
    font-size: 0.68rem;
  }

  /* Instructions banner */
  .instructions-banner {
    flex-direction: column;
    margin: 0 12px 18px 12px;
    padding: 16px 18px;
    gap: 12px;
    align-items: flex-start;
  }

  .instructions-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .instructions-right {
    justify-content: flex-start;
    width: 100%;
  }

  .cursive-text {
    font-size: 1.2rem;
  }

  .tagline-gurmat {
    text-align: left;
    font-size: 0.85rem;
  }

  /* Contact section */
  .contact-section {
    flex-direction: column;
    margin: 0 12px;
    padding: 20px 15px 12px;
    gap: 8px;
    border-radius: 16px 16px 0 0;
  }

  .contact-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
    top: -12px;
  }

  .contact-phone {
    font-size: 0.95rem;
  }

  .contact-divider {
    display: none;
  }

  /* Footer */
  .app-footer {
    padding: 12px 15px;
  }

  .footer-text {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  /* Medical note */
  .medical-note-banner {
    padding: 10px 12px;
    gap: 8px;
  }

  .note-text {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN - SMALL PHONES (max-width: 400px)
   ========================================================================== */
@media (max-width: 400px) {
  .flag-img {
    max-height: 70px;
  }

  .emblem-img {
    max-height: 65px;
  }

  .title-summer-gurmat {
    font-size: 1rem;
  }

  .title-camp {
    font-size: 1.35rem;
  }

  .presents-badge {
    font-size: 0.5rem;
    padding: 3px 8px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-card {
    flex-direction: row;
    align-items: center;
  }
}

/* Print View Formatting for slip */
@media print {
  body * {
    visibility: hidden;
  }
  .modal, .modal-content, #modalSlip, #modalSlip * {
    visibility: visible;
  }
  .modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .modal-content {
    box-shadow: none;
    border: none;
  }
  .modal-footer {
    display: none;
  }
  .success-intro {
    display: none;
  }
  .modal-header {
    display: none;
  }
  #printablePass {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 3px dashed #0a2240 !important;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.6) 0%, #ffffff 50%, rgba(253, 249, 242, 0.5) 100%) !important;
    box-shadow: none !important;
    margin: 0 auto !important;
  }
}
