/* ==========================================================================
   SuperTET.com - Super TET Eligibility Checker 2026 Stylesheet
   Premium, Fully Responsive, Accessible Client-Side Assessment Utility
   ========================================================================== */

.eligibility-checker-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  box-shadow: 0 4px 24px -4px rgba(234, 88, 12, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: clamp(20px, 3.5vw, 36px);
  margin: 32px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.eligibility-checker-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #0284c7 100%);
}

/* Header */
.checker-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #fed7aa;
}

.checker-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.checker-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #0f2b48;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.checker-subtitle {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Step Badges / Flow Indicator */
.checker-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

@media (max-width: 600px) {
  .checker-flow-steps {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.flow-step-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 700;
}

.flow-step-item.active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.flow-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.flow-step-item.active .flow-step-num {
  background: #ea580c;
  color: #ffffff;
}

/* Form Sections */
.checker-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.checker-fieldset-legend {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2b48;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checker-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.checker-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checker-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checker-label-hint {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.checker-input,
.checker-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.94rem;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  min-height: 46px;
  font-family: inherit;
}

.checker-input:focus,
.checker-select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.checker-input.has-error,
.checker-select.has-error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

/* Radio Cards (Position Selection) */
.checker-radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .checker-radio-cards {
    grid-template-columns: 1fr;
  }
}

.checker-radio-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  user-select: none;
}

.checker-radio-card:hover {
  border-color: #fdba74;
  background: #fffaf5;
}

.checker-radio-card.selected {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.checker-radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #ea580c;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checker-rc-content strong {
  display: block;
  font-size: 0.96rem;
  color: #0f2b48;
  margin-bottom: 4px;
}

.checker-rc-content span {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

/* Dynamic Live Feedback Pill (e.g. Calculated Age) */
.checker-live-feedback {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: #166534;
  font-weight: 700;
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 6px;
}

.checker-live-feedback.visible {
  display: inline-flex;
}

/* Field Inline Error */
.checker-error-msg {
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
  display: none;
}

.checker-error-msg.visible {
  display: block;
}

/* Action Button */
.checker-btn-wrap {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.checker-submit-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  color: #ffffff;
  border: 1px solid #ea580c;
  border-radius: 8px;
  padding: 13px 32px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
}

.checker-submit-btn:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.42);
}

.checker-reset-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 10px;
}

.checker-reset-link:hover {
  color: #0f2b48;
}

/* ==========================================================================
   RESULT CARD STYLES
   ========================================================================== */
.checker-result-card {
  margin-top: 32px;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: none;
  animation: result-fade-in 0.25s ease-out;
}

@keyframes result-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.checker-result-card.visible {
  display: block;
}

/* Status Banners */
.result-status-banner {
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 800;
}

.status-eligible {
  background: #ecfdf5;
  border: 1.5px solid #86efac;
  color: #065f46;
}

.status-ineligible {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

.status-incomplete {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}

.result-status-title {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
}

.result-status-desc {
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 4px;
  color: inherit;
}

/* User Input Summary Strip */
.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 22px;
}

.result-summary-item {
  font-size: 0.82rem;
}

.result-summary-item .lbl {
  color: #64748b;
  font-weight: 600;
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.result-summary-item .val {
  color: #0f172a;
  font-weight: 800;
  display: block;
}

/* Condition Checklist Table */
.result-checklist-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f2b48;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.90rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}

.result-checklist-table th {
  background: #0f2b48;
  color: #ffffff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-checklist-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.result-checklist-table tr:last-child td {
  border-bottom: none;
}

.result-checklist-table tr:hover td {
  background: #f8fafc;
}

/* Badges for Pass / Fail / Not Assessed */
.chk-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.chk-pill-pass {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.chk-pill-fail {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.chk-pill-info {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Detailed Explanatory Box */
.result-explanation-box {
  background: #fffaf5;
  border-left: 4px solid #ea580c;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: #7c2d12;
  line-height: 1.6;
}

.result-explanation-box strong {
  color: #431407;
}

/* Result Action Buttons */
.result-actions-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.result-btn-edit {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.result-btn-edit:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.result-btn-reset {
  background: #0f2b48;
  border: 1px solid #0f2b48;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.result-btn-reset:hover {
  background: #1b426d;
}

/* Statutory Disclaimer & Privacy Footnote */
.checker-disclaimer-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.checker-disclaimer-note strong {
  color: #475569;
}

/* How It Works Section */
.checker-how-it-works {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0 36px 0;
}

.how-it-works-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2b48;
  margin: 0 0 12px 0;
}

.how-it-works-list {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
}

.how-it-works-list li {
  margin-bottom: 6px;
}

/* Print & Additional Enhancements for Super TET Eligibility Checker */
.chk-pill-warn {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.checker-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checker-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.checker-alert-danger {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.checker-alert-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

@media print {
  body * {
    visibility: hidden;
  }
  #eligibility-checker,
  #eligibility-checker * {
    visibility: visible;
  }
  #eligibility-checker {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }
  .checker-btn-wrap,
  .result-actions-bar,
  .checker-reset-link,
  .site-header,
  .site-footer,
  .quick-nav,
  .checker-how-it-works {
    display: none !important;
  }
}
