/* ==========================================================
   NYDTTA - ADMISSION PORTAL RESPONSIVE STYLESHEET
   File: css/admission.css
   6-Tier Responsive Breakpoint Engine with Complete PDF Styling
========================================================== */

/* ----------------------------------------------------------
   ১. বেস লেআউট ও কালার
---------------------------------------------------------- */
.admission-hero {
  background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
              linear-gradient(145deg, #091932 0%, #050f1f 100%);
  color: #ffffff;
  padding: 4.5rem 5% 5.5rem;
  border-bottom: 3.5px solid var(--gov-accent-gold, #d4af37);
  text-align: center;
  position: relative;
}

.hero-inner-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title-main {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: #ffffff;
}

.hero-lead-text {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.admission-main-container {
  max-width: 1050px;
  margin: -45px auto 4.5rem;
  padding: 0 5%;
  position: relative;
  z-index: 20;
}

.admission-card-wrapper {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color, #dbe2ea);
  box-shadow: 0 12px 36px rgba(11, 29, 58, 0.12);
  border-top: 5px solid var(--gov-accent-gold, #d4af37);
  padding: 3rem 2.8rem;
}

/* ----------------------------------------------------------
   ২. ফিল্ডসেট, ইনপুট ও ফটো আপলোড গ্রিড
---------------------------------------------------------- */
.form-section-group {
  border: none;
  margin: 0 0 2.2rem 0;
  padding: 0;
}

.form-section-title {
  font-size: 1.3rem;
  color: var(--gov-navy, #0b1d3a);
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.6rem;
  margin-bottom: 1.4rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gov-navy, #0b1d3a);
  color: var(--gov-accent-gold, #d4af37);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.field-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.field-box label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gov-navy, #0b1d3a);
  margin-bottom: 0.45rem;
}

.required-star {
  color: var(--gov-red, #c62828);
  font-weight: bold;
}

.field-box input,
.field-box select,
.field-box textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--border-color, #dbe2ea);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  background: #fbfcfe;
  transition: all 0.25s ease;
}

.field-box input:focus,
.field-box select:focus,
.field-box textarea:focus {
  border-color: var(--gov-accent-gold, #d4af37);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.uppercase-input {
  text-transform: uppercase;
}

/* Photo Upload Box Component */
.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: #f8fafc;
  border: 1.5px dashed var(--gov-accent-gold, #d4af37);
  padding: 1.4rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.photo-preview-container {
  width: 110px;
  height: 130px;
  border: 2px solid var(--border-color, #dbe2ea);
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted, #556987);
  text-align: center;
  padding: 6px;
}

.photo-placeholder-text span:first-child {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.photo-input-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted, #556987);
}

/* ----------------------------------------------------------
   ৩. অ্যাকশন বাটনস (Download, WhatsApp, Print)
---------------------------------------------------------- */
.admission-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.btn-submit-action {
  background: var(--gov-navy, #0b1d3a);
  color: var(--gov-accent-gold, #d4af37);
  border: 1.5px solid var(--gov-accent-gold, #d4af37);
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Hind Siliguri', sans-serif;
  transition: all 0.25s ease;
}

.btn-submit-action:hover {
  background: var(--gov-accent-gold, #d4af37);
  color: var(--gov-navy, #0b1d3a);
  transform: translateY(-2px);
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Hind Siliguri', sans-serif;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.btn-whatsapp-action:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-print-action {
  background: #f1f5f9;
  color: var(--gov-navy, #0b1d3a);
  border: 1.5px solid #cbd5e1;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Hind Siliguri', sans-serif;
  transition: all 0.25s ease;
}

.btn-print-action:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-icon {
  font-size: 1.15rem;
}

/* ----------------------------------------------------------
   ৪. গাইডলাইন কার্ড
---------------------------------------------------------- */
.admission-guideline-card {
  margin-top: 3.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color, #dbe2ea);
  border-radius: 10px;
  padding: 2.2rem 2rem;
  box-shadow: var(--gov-shadow, 0 4px 16px rgba(11,29,58,0.08));
}

.guideline-heading {
  color: var(--gov-navy, #0b1d3a);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.guideline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.94rem;
  color: var(--text-main, #1e293b);
  padding: 0;
}

.guideline-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.6;
}

.guideline-check {
  color: var(--gov-green, #1b5e20);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================
   ৫. পিডিএফ এবং প্রিন্ট টেমপ্লেট স্টাইল (Strict A4 Layout)
========================================================== */
.pdf-print-template {
 position: fixed;
  left: -9999px;
  top: 0;
  width: 800px;
  background: #ffffff;
  z-index: -1000;
  opacity: 1;
}

.pdf-canvas {
  width: 8in;
  margin: 0 auto;
  padding: 0.3in 0.4in;
  background: #fff;
}

.pdf-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid #0b1d3a;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.pdf-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.pdf-title-wrap {
  flex-grow: 1;
  text-align: center;
}

.pdf-inst-name {
  font-family: 'Cinzel', serif;
  font-size: 13pt;
  font-weight: 800;
  color: #0b1d3a;
  margin: 0;
  line-height: 1.1;
}

.pdf-inst-sub {
  font-size: 9.5pt;
  font-weight: 600;
  color: #333;
  margin: 2px 0;
}

.pdf-inst-address {
  font-size: 7.5pt;
  color: #666;
  margin: 0;
}

.pdf-form-badge {
  display: inline-block;
  background: #0b1d3a;
  color: #d4af37;
  font-size: 7.8pt;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-top: 5px;
}

.pdf-meta-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
}

.pdf-details-col {
  font-size: 8.5pt;
  line-height: 1.6;
}

.pdf-photo-box {
  width: 1.1in;
  height: 1.3in;
  border: 1px solid #999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.pdf-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-section-heading {
  font-size: 9pt;
  font-weight: 700;
  color: #0b1d3a;
  background: #eef2f6;
  padding: 4px 8px;
  margin: 10px 0 6px 0;
  border-left: 3px solid #d4af37;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.2pt;
  margin-bottom: 6px;
}

.pdf-table td {
  padding: 5px 8px;
  border: 1px solid #dcdcdc;
  vertical-align: middle;
}

.pdf-td-label {
  background: #fafbfc;
  font-weight: 600;
  width: 25%;
  color: #444;
}

.pdf-td-val {
  color: #111;
}

.pdf-declaration {
  font-size: 7.5pt;
  color: #555;
  line-height: 1.4;
  margin: 12px 0 28px 0;
  border-top: 1px dashed #ccc;
  padding-top: 6px;
}

.pdf-sign-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
  padding: 0 10px;
}

.pdf-sign-col {
  text-align: center;
  font-size: 8pt;
  color: #333;
}

.pdf-sign-line {
  width: 1.5in;
  border-top: 1px solid #333;
  margin-bottom: 4px;
}

.pdf-footer-note {
  font-size: 6.8pt;
  color: #888;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 4px;
}

/* Native Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #pdfPrintTemplate, #pdfPrintTemplate * {
    visibility: visible;
  }
  #pdfPrintTemplate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
  }
}

/* ==========================================================
   ৬. ৬-টিয়ার রেসপনসিভ ব্রেকপয়েন্ট সিস্টেম (Strict 6 Screen Sizes)
========================================================== */

/* Tier 6: Extra-Large Desktop & 4K (≥ 1200px) */
@media screen and (min-width: 1200px) {
  .admission-main-container {
    max-width: 1100px;
  }
  .admission-card-wrapper {
    padding: 3.2rem;
  }
}

/* Tier 5: Large Laptop & Desktop (992px to 1199px) */
@media screen and (max-width: 1199px) and (min-width: 992px) {
  .hero-title-main {
    font-size: 2.35rem;
  }
  .admission-card-wrapper {
    padding: 2.6rem;
  }
  .admission-actions-row {
    gap: 0.8rem;
  }
}

/* Tier 4: Tablets & iPads (768px to 991px) */
@media screen and (max-width: 991px) {
  .hero-title-main {
    font-size: 2.15rem;
  }
  .admission-hero {
    padding: 3.8rem 5% 4.8rem;
  }
  .admission-card-wrapper {
    padding: 2.2rem 1.8rem;
  }
  .admission-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Tier 3: Phablets & Large Phones (576px to 767px) */
@media screen and (max-width: 767px) {
  .hero-title-main {
    font-size: 1.95rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .admission-actions-row {
    grid-template-columns: 1fr;
  }
  .admission-main-container {
    margin-top: -35px;
  }
  .photo-upload-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tier 2: Standard Mobile Devices (380px to 575px) */
@media screen and (max-width: 575px) {
  .hero-title-main {
    font-size: 1.65rem;
  }
  .hero-lead-text {
    font-size: 0.95rem;
  }
  .admission-card-wrapper {
    padding: 1.6rem 1.1rem;
    border-radius: 8px;
  }
  .form-section-title {
    font-size: 1.15rem;
  }
  .btn-submit-action,
  .btn-whatsapp-action,
  .btn-print-action {
    font-size: 0.9rem;
    padding: 0.85rem 0.8rem;
  }
}

/* Tier 1: Ultra-Compact Phones & Foldables (< 380px) */
@media screen and (max-width: 379px) {
  .hero-title-main {
    font-size: 1.35rem;
  }
  .admission-hero {
    padding: 3rem 4% 4rem;
  }
  .admission-main-container {
    padding: 0 3%;
  }
  .admission-card-wrapper {
    padding: 1.2rem 0.85rem;
  }
  .field-box label {
    font-size: 0.86rem;
  }
  .field-box input,
  .field-box select,
  .field-box textarea {
    padding: 0.7rem 0.75rem;
    font-size: 0.88rem;
  }
  .btn-submit-action,
  .btn-whatsapp-action,
  .btn-print-action {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 4px;
    padding: 0.75rem 0.5rem;
  }
}