/* ==========================================================================
   Elite Marathon 2026 - Modern Animated & Responsive Registration UI
   Features: Animated Title, Form Progress Bar, Rich Input Glows, Perfect Mobile Alignment
   ========================================================================== */

:root {
  --color-primary: #ffaa17;
  --color-primary-dark: #d97706;
  --color-primary-light: #fffbeb;
  
  --color-rotary-blue: #005daa;
  --color-rotary-dark: #0f172a;
  
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  
  --color-green-600: #16a34a;
  --color-green-100: #dcfce7;
  
  --color-red-600: #dc2626;
  --color-red-50: #fef2f2;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 40px -8px rgba(15, 23, 42, 0.14);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Setup */
body.reg-page-wrapper {
  background-color: var(--color-slate-50) !important;
  background-image: 
    radial-gradient(at 15% 15%, rgba(255, 170, 23, 0.08) 0px, transparent 45%),
    radial-gradient(at 85% 25%, rgba(0, 93, 170, 0.06) 0px, transparent 45%),
    radial-gradient(at 50% 90%, rgba(22, 163, 74, 0.04) 0px, transparent 50%);
  color: var(--color-slate-700);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Clean Header Bar & Mobile Responsive Alignment
   ========================================================================== */
.reg-top-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-rotary-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-left:hover .brand-rotary-img {
  transform: rotate(15deg) scale(1.05);
}

.brand-sep {
  width: 1px;
  height: 28px;
  background-color: var(--color-slate-200);
}

.brand-elite-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-rotary-blue);
  line-height: 1.2;
}

.brand-sub-tag {
  font-size: 11px;
  color: var(--color-slate-500);
  font-weight: 500;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-help-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-800);
  padding: 7px 14px;
  background: var(--color-slate-100);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-help-phone:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-700);
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-home-link:hover {
  border-color: var(--color-primary);
  color: var(--color-slate-900);
  background: var(--color-primary-light);
}

/* ==========================================================================
   Page Main Container & 2-Column Grid Layout
   ========================================================================== */
.reg-main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.reg-layout-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 991px) {
  .reg-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Compact Header */
.reg-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.reg-pill-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-600);
  margin-bottom: 12px;
  box-shadow: var(--shadow-subtle);
  animation: floatPill 4s ease-in-out infinite;
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Animated Title Effect */
.reg-title-h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 6px 0 4px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  animation: titleEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

@keyframes titleEntrance {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reg-title-h1 .title-gradient-anim {
  background: linear-gradient(115deg, #0f172a 0%, #005daa 28%, #ffaa17 50%, #d97706 72%, #0f172a 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3.5s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 93, 170, 0.2));
}

@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 200% 50%; }
}

.reg-title-h1 .year-badge-anim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe066 0%, #ffaa17 50%, #d97706 100%);
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  vertical-align: middle;
  box-shadow: 0 4px 14px rgba(255, 170, 23, 0.4);
  animation: badgeGlowPulse 2.8s ease-in-out infinite;
}

.badge-shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

@keyframes badgeGlowPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(255, 170, 23, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 6px 22px rgba(255, 170, 23, 0.7); }
}

/* Dynamic Animated Line Indicator */
.title-animated-line {
  width: 140px;
  height: 3.5px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-rotary-blue), transparent);
  margin: 8px auto 14px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 170, 23, 0.3);
}

.title-animated-line .line-glow-dot {
  position: absolute;
  top: 0;
  left: -20px;
  width: 30px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 15px var(--color-primary);
  border-radius: 4px;
  animation: lineScan 2.5s ease-in-out infinite alternate;
}

@keyframes lineScan {
  0% { left: -30px; }
  100% { left: 140px; }
}

.reg-tamil-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-rotary-blue);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  text-align: center;
}

.tamil-title-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tamil-slogan-pill {
  display: inline-block;
  background: rgba(0, 93, 170, 0.08);
  color: var(--color-rotary-blue);
  border: 1px solid rgba(0, 93, 170, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.reg-instructions-text {
  font-size: 13px;
  color: var(--color-slate-500);
  margin: 0;
}

/* ==========================================================================
   Animated Executive Form Card
   ========================================================================== */
.reg-card-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-slate-200);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.reg-card-container:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* Animated Card Top Bar */
.reg-card-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #005daa 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3.5px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.reg-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  animation: headerShimmer 5s infinite;
}

@keyframes headerShimmer {
  0% { right: -150px; }
  30%, 100% { right: 110%; }
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 170, 23, 0.15);
  border: 1px solid rgba(255, 170, 23, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.card-header-titles {
  display: flex;
  flex-direction: column;
}

.card-header-titles h2 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.card-header-sub {
  font-size: 11.5px;
  color: var(--color-slate-300);
  line-height: 1.3;
}

.card-header-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 170, 23, 0.15);
  border: 1px solid rgba(255, 170, 23, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Form Progress Completion Bar */
.form-progress-wrapper {
  background: #f1f5f9;
  height: 4px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.form-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffaa17 0%, #10b981 100%);
  transition: width 0.35s ease;
}

.reg-card-body {
  padding: 28px 30px;
}

/* Category Switcher Pills */
.category-toggle-section {
  margin-bottom: 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-slate-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-label i {
  color: var(--color-primary-dark);
}

.category-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-radio-label {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.category-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.category-radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-slate-50);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  user-select: none;
}

.category-radio-card:hover {
  background: #ffffff;
  border-color: var(--color-slate-300);
  transform: translateY(-2px);
}

.category-radio-label input[type="radio"]:checked + .category-radio-card {
  background: #fffdf5;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255, 170, 23, 0.25);
  transform: translateY(-2px);
}

.card-type-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-type-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.category-radio-label input[type="radio"]:checked + .category-radio-card .card-type-icon {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa17 100%);
  color: var(--color-slate-900);
  border-color: var(--color-primary);
  transform: rotate(6deg) scale(1.06);
}

.card-type-text h4 {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin: 0 0 2px;
}

.card-type-text span {
  font-size: 11.5px;
  color: var(--color-slate-500);
}

.card-type-fee {
  text-align: right;
}

.card-type-fee .fee-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1;
}

.category-radio-label input[type="radio"]:checked + .category-radio-card .fee-val {
  color: var(--color-primary-dark);
}

.card-type-fee .fee-sub {
  font-size: 10px;
  color: var(--color-slate-400);
  font-weight: 700;
  text-transform: uppercase;
}

/* Form Groups & Grid */
.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-item.full-col {
  grid-column: 1 / -1;
}

.item-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.35;
}

.item-label > span:first-child {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.item-label .tamil-inline {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-slate-500);
}

.item-label .req {
  color: var(--color-red-600);
  font-weight: 700;
  margin-left: 2px;
}

.item-label .btn-chart-modal {
  margin-left: auto;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper i.lead-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-slate-400);
  font-size: 14px;
  pointer-events: none;
  transition: all 0.25s ease;
}

.form-field {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-slate-900);
  background: #ffffff;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
}

.form-field:focus {
  border-color: var(--color-rotary-blue);
  box-shadow: 0 0 0 3.5px rgba(0, 93, 170, 0.15);
  transform: translateY(-1px);
}

.input-wrapper:focus-within i.lead-icon {
  color: var(--color-rotary-blue);
  transform: translateY(-50%) scale(1.15);
}

.input-wrapper select.form-field {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
}

.form-field::placeholder {
  color: var(--color-slate-400);
  font-size: 13px;
}

/* Helper Notes & Badges */
.item-help-note {
  font-size: 11.5px;
  color: var(--color-slate-500);
  margin-top: 4px;
}

.item-help-note.warn-box {
  background: var(--color-red-50);
  border: 1px solid #fee2e2;
  color: var(--color-red-600);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.btn-chart-modal {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-chart-modal:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* Student Section Panel */
.student-card-panel {
  background: #f0fdf4;
  border: 1.5px dashed #86efac;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 14px 0 20px;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.student-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.student-panel-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 7px;
}

.student-badge {
  font-size: 11px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #86efac;
}

/* Combobox */
.combobox-container {
  position: relative;
  width: 100%;
}

.combobox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.combobox-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--color-slate-400);
  cursor: pointer;
  padding: 6px;
  font-size: 13px;
}

.combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow: hidden;
}

.combobox-dropdown.active {
  display: block;
}

.dropdown-search-container {
  padding: 8px;
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
}

.dropdown-search {
  width: 100%;
  padding: 8px 12px;
  font-size: 12.5px;
  border: 1px solid var(--color-slate-200);
  border-radius: 6px;
  outline: none;
}

.dropdown-options {
  max-height: 180px;
  overflow-y: auto;
}

.dropdown-option {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-slate-700);
  cursor: pointer;
  border-bottom: 1px solid var(--color-slate-100);
}

.dropdown-option:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.api-status {
  font-size: 11px;
  margin-top: 4px;
  color: var(--color-slate-500);
}

/* Terms & Declarations */
.terms-card-section {
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 20px 0;
}

.terms-single-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition);
}

.terms-single-row:last-child {
  margin-bottom: 0;
}

.terms-single-row.checked-ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.terms-check-label input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--color-primary-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.terms-desc-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-900);
  line-height: 1.4;
  flex: 1;
}

.terms-desc-text .terms-tamil-sub,
.terms-desc-text span {
  display: block;
  font-size: 11.5px;
  color: var(--color-slate-500);
  font-weight: 500;
  margin-top: 2px;
}

.terms-view-link {
  align-self: flex-start;
  margin-left: 29px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  color: var(--color-rotary-blue);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  line-height: 1.2;
}

.terms-view-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

@media (min-width: 641px) {
  .terms-single-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .terms-view-link {
    align-self: center;
    margin-left: 0;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Fee Summary & Submit Action Bar */
.reg-bottom-action-bar {
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.fee-summary-left {
  display: flex;
  flex-direction: column;
}

.fee-summary-left .label-summary {
  font-size: 11.5px;
  color: var(--color-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fee-summary-left .amount-summary {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.1;
}

.fee-summary-left .inclusions-summary {
  font-size: 11.5px;
  color: var(--color-green-600);
  font-weight: 600;
}

.btn-submit-main {
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffaa17 0%, #f59e0b 50%, #d97706 100%);
  color: #0f172a;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 170, 23, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-submit-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: waveShimmer 3s infinite;
}

@keyframes waveShimmer {
  0% { left: -100%; }
  60%, 100% { left: 100%; }
}

.btn-submit-main:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(255, 170, 23, 0.55);
}

.btn-submit-main:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   Prizes & Awards Sticky Sidebar Section
   ========================================================================== */
.sticky-prizes-sidebar {
  position: sticky;
  top: 84px;
  z-index: 10;
}

.reg-prizes-card {
  background: #ffffff;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}

.prizes-card-body {
  padding: 22px 20px;
}

.prizes-sub-text {
  font-size: 12.5px;
  color: var(--color-slate-600);
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.reg-prizes-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.sidebar-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.prizes-card-header {
  padding: 24px 20px 14px;
  text-align: center;
}

.prizes-card-header .prizes-main-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-slate-900);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.prizes-card-header .prizes-sub-title {
  font-size: 12.5px;
  color: var(--color-slate-500);
  margin: 0;
  line-height: 1.45;
}

.prizes-card-body {
  padding: 0 20px 24px;
}

/* TOP 3 PODIUM GRID */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.podium-box {
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  transition: var(--transition);
}

.podium-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.podium-box.gold {
  background: #fffdf5;
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.18);
  padding-top: 20px;
  padding-bottom: 20px;
}

.podium-rank-tag {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
}

.gold .podium-rank-tag {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa17 100%);
  color: var(--color-slate-900);
  box-shadow: 0 2px 8px rgba(255, 170, 23, 0.4);
}

.silver .podium-rank-tag {
  background: #e2e8f0;
  color: var(--color-slate-800);
}

.bronze .podium-rank-tag {
  background: #fed7aa;
  color: #9a3412;
}

.podium-place-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-slate-800);
  margin-bottom: 2px;
}

.podium-cash-val {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 3px;
}

.gold .podium-cash-val {
  color: var(--color-primary-dark);
  font-size: 19px;
}

.podium-perk-icons {
  font-size: 13.5px;
}

/* SECONDARY RANK TIERS */
.prizes-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.tier-item-pill {
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.tier-badge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.tier-title {
  font-weight: 700;
  color: var(--color-slate-800);
}

.tier-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-slate-900);
}

/* GENDER NOTICE BANNER */
.gender-split-notice {
  text-align: center;
  background: #fffbeb;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9a3412;
}

.gender-split-notice {
  text-align: center;
  background: #fffbeb;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 16px;
}

/* Included Runner Perks Highlight Card */
.runner-perks-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #fffdf5 0%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
  transition: var(--transition);
}

.runner-perks-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.perks-card-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.perks-list li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.perks-list li i {
  font-size: 14px;
  color: #16a34a;
  flex-shrink: 0;
}

/* Clean Footer */
.reg-simple-footer {
  text-align: center;
  padding: 22px 16px;
  font-size: 12.5px;
  color: var(--color-slate-500);
  border-top: 1px solid var(--color-slate-200);
  background: #ffffff;
}

/* Modals */
.reg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.reg-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.reg-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.reg-modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  transform: scale(0.96) translateY(10px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.reg-modal[aria-hidden="false"] .reg-modal-panel {
  transform: scale(1) translateY(0);
}

.reg-modal-panel.modal-wide {
  max-width: 740px;
}

.reg-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin: 0;
}

.reg-modal-close {
  background: #e2e8f0;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.reg-modal-close:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.reg-modal-body {
  padding: 24px;
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
}

.reg-modal-body p {
  margin-bottom: 12px;
}

.reg-modal-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--color-slate-200);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-accept {
  padding: 10px 24px;
  background: #84cc16;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.btn-modal-accept:hover {
  background: #65a30d;
  transform: translateY(-1px);
}

.btn-modal-cancel {
  padding: 8px 16px;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modal-size-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.size-chart-box {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.size-chart-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  max-height: 320px;
  object-fit: contain;
}

.size-chart-box span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-slate-600);
}

/* ==========================================================================
   FLAWLESS MOBILE RESPONSIVE ALIGNMENT (< 768px & < 480px)
   ========================================================================== */

@media (max-width: 768px) {
  .brand-container {
    height: 56px;
    padding: 0 14px;
  }
  
  .brand-rotary-img {
    height: 32px;
  }
  
  .brand-elite-img {
    height: 30px;
  }
  
  .brand-sep {
    height: 22px;
  }

  .btn-home-link span {
    display: none;
  }

  .btn-help-phone {
    padding: 6px 10px;
    font-size: 12px;
  }

  .reg-main-content {
    padding: 16px 12px 40px;
  }

  .reg-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reg-title-h1 {
    font-size: 22px;
  }

  .reg-title-h1 .year-badge-anim {
    font-size: 18px;
    padding: 2px 8px;
  }

  .reg-tamil-title {
    font-size: 14.5px;
  }

  .reg-instructions-text {
    font-size: 12px;
  }

  .reg-card-header {
    padding: 14px 18px;
  }

  .card-header-icon-box {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .card-header-titles h2 {
    font-size: 15px;
  }

  .card-header-sub {
    font-size: 11px;
  }

  .card-header-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .reg-card-body {
    padding: 18px 14px;
  }

  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-pill-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-radio-card {
    padding: 10px 12px;
  }

  .card-type-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .card-type-text h4 {
    font-size: 13.5px;
  }

  .card-type-fee .fee-val {
    font-size: 17px;
  }

  /* Prevent iOS mobile auto-zoom on input focus by guaranteeing 16px font-size */
  .form-field {
    font-size: 16px !important;
    padding: 12px 14px 12px 40px;
    border-radius: 10px;
  }

  select.form-field {
    padding-right: 38px !important;
  }

  .combobox-wrapper .form-field {
    padding-right: 38px !important;
  }

  .reg-bottom-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px;
  }

  .fee-summary-left {
    text-align: center;
  }

  .btn-submit-main {
    width: 100%;
    padding: 14px 18px;
    font-size: 14.5px;
  }

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

  .podium-box.gold {
    order: 1;
  }

  .podium-box.silver {
    order: 2;
  }

  .podium-box.bronze {
    order: 3;
  }

  .prizes-tier-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-size-charts {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OFFICIAL MARATHON 3D HERO BRANDING & ANIMATION ENHANCEMENTS
   ========================================================================== */
.reg-hero-banner-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 16px;
  max-width: 460px;
  width: 100%;
  animation: heroBannerEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroBannerEntrance {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reg-hero-art-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 65%;
  background: radial-gradient(circle, rgba(0, 93, 170, 0.18) 0%, rgba(255, 170, 23, 0.12) 50%, transparent 75%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 1;
}

.reg-hero-marathon-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 30, 80, 0.18));
  animation: floatArt 4.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.reg-hero-marathon-img:hover {
  transform: scale(1.04) rotate(-0.5deg);
}

@keyframes floatArt {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Multi-Step Flow Tracker */
.reg-step-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  max-width: 580px;
  width: 100%;
}

.tracker-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-500);
  transition: all 0.25s ease;
}

.tracker-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--color-slate-100);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--color-slate-600);
  font-weight: 700;
  transition: all 0.25s ease;
}

.tracker-step.active {
  color: var(--color-slate-900);
  font-weight: 700;
}

.tracker-step.active .step-num {
  background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
  color: #090f20;
  box-shadow: 0 2px 8px rgba(255, 170, 23, 0.4);
}

.tracker-divider {
  width: 24px;
  height: 2px;
  background: var(--color-slate-200);
  border-radius: 2px;
}

/* Category Card Glow Animations */
.category-radio-label input[type="radio"]:checked + .category-radio-card {
  border-color: #ffaa17 !important;
  background: linear-gradient(135deg, rgba(255, 170, 23, 0.08) 0%, rgba(255, 255, 255, 1) 100%) !important;
  box-shadow: 0 8px 24px rgba(255, 170, 23, 0.25), 0 0 0 2px rgba(255, 170, 23, 0.4) !important;
  transform: translateY(-2px) scale(1.015);
}

.category-radio-label input[type="radio"]:checked + .category-radio-card .card-type-icon {
  background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%) !important;
  color: #090f20 !important;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(255, 170, 23, 0.4);
}

/* Shimmer Button Sweep */
.btn-submit-main {
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(255, 170, 23, 0.4) !important;
}

.btn-submit-main::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: btnShimmerSweep 3.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes btnShimmerSweep {
  0% {
    left: -70%;
  }
  30%, 100% {
    left: 140%;
  }
}

/* ==========================================================================
   PERFECT MOBILE VIEWPORT ALIGNMENT (< 576px and < 380px)
   ========================================================================== */
@media (max-width: 576px) {
  /* Prevent any inadvertent horizontal scroll */
  body.reg-page-wrapper {
    overflow-x: hidden;
  }

  /* Header & Top Branding */
  .brand-container {
    height: 52px;
    padding: 0 10px;
    gap: 6px;
  }
  
  .logo-title-main {
    font-size: 11.5px !important;
    letter-spacing: 0.5px !important;
  }
  
  .logo-title-sub {
    font-size: 9.5px !important;
    letter-spacing: 1px !important;
  }
  
  .brand-elite-img {
    height: 28px !important;
  }
  
  .btn-help-phone {
    padding: 5px 8px;
    font-size: 11.5px;
    gap: 4px;
  }
  
  .btn-home-link {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  /* Page Header & Intro */
  .reg-page-header {
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .reg-pill-info {
    font-size: 10.5px;
    padding: 4px 10px;
    max-width: 100%;
    line-height: 1.35;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 8px;
    gap: 3px 6px;
  }
  
  .pill-sep-dot {
    display: none;
  }
  
  .pill-text-main {
    font-weight: 700;
    color: var(--color-slate-800);
    display: block;
    width: 100%;
  }
  
  .pill-text-sub {
    color: var(--color-slate-500);
    font-size: 10px;
    display: block;
    width: 100%;
  }

  .reg-title-h1 {
    font-size: 20px;
    margin: 4px 0 4px;
    gap: 6px;
    line-height: 1.25;
  }
  
  .reg-title-h1 .year-badge-anim {
    font-size: 16px;
    padding: 1px 7px;
  }

  .title-animated-line {
    width: 100px;
    height: 3px;
    margin: 6px auto 10px;
  }
  
  .reg-tamil-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 6px;
  }

  .tamil-title-lead {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .tamil-slogan-pill {
    font-size: 10.5px;
    padding: 1px 8px;
  }
  
  .reg-instructions-text {
    font-size: 11.5px;
    line-height: 1.4;
    padding: 0 4px;
    margin-bottom: 12px;
  }
  
  /* Step Tracker */
  .reg-step-tracker {
    gap: 6px;
    padding: 5px 10px;
    max-width: 100%;
    align-items: center;
  }
  
  .tracker-step {
    font-size: 11px;
    gap: 4px;
  }
  
  .tracker-step .step-label {
    display: none;
  }
  
  .tracker-step .step-num {
    padding: 3px 8px;
    font-size: 11px;
  }
  
  .tracker-step.active .step-label {
    display: inline-block;
  }
  
  .tracker-divider {
    width: 14px;
    align-self: center;
  }

  /* Registration Form Card Container */
  .reg-card-container {
    border-radius: 16px;
  }

  .reg-card-header {
    padding: 12px 14px;
    gap: 8px;
  }

  .card-header-icon-box {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .card-header-titles h2 {
    font-size: 14px;
    letter-spacing: 0.2px;
  }

  .card-header-sub {
    font-size: 10.5px;
  }

  .card-header-badge {
    font-size: 10px;
    padding: 3px 7px;
    gap: 3px;
  }

  .reg-card-body {
    padding: 14px 12px;
  }

  /* Category Radio Grid */
  .category-toggle-section {
    margin-bottom: 18px;
  }

  .section-label {
    font-size: 11.5px;
    margin-bottom: 8px;
  }

  .category-radio-card {
    padding: 10px 12px;
  }

  .card-type-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 8px;
  }

  .card-type-text h4 {
    font-size: 13px;
  }

  .card-type-text span {
    font-size: 11px;
  }

  .card-type-fee .fee-val {
    font-size: 16px;
  }

  .card-type-fee .fee-sub {
    font-size: 9.5px;
  }

  /* Form Grid & Input Fields */
  .form-grid-row {
    gap: 12px;
    margin-bottom: 12px;
  }

  .item-label {
    font-size: 12.5px;
    margin-bottom: 5px;
  }

  .item-label .tamil-inline {
    font-size: 11px;
  }

  .btn-chart-modal {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  .item-help-note.warn-box {
    font-size: 11px;
    padding: 6px 8px;
    gap: 6px;
  }

  /* Student Verification Panel */
  .student-card-panel {
    padding: 12px 10px;
    margin: 10px 0 16px;
    border-radius: 10px;
  }

  .student-panel-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
  }

  .student-panel-title {
    font-size: 12px;
  }

  .student-badge {
    font-size: 10px;
    padding: 2px 7px;
  }

  /* Terms Agreement Section */
  .terms-card-section {
    padding: 12px 10px;
    margin: 16px 0;
    border-radius: 10px;
  }

  .terms-single-row {
    padding: 10px;
    gap: 8px;
  }

  .terms-check-label {
    gap: 8px;
  }

  .terms-desc-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .terms-desc-text .terms-tamil-sub,
  .terms-desc-text span {
    font-size: 11px;
    margin-top: 2px;
  }

  .terms-view-link {
    margin-left: 27px;
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Fee Action Summary & Submit Button */
  .reg-bottom-action-bar {
    padding: 14px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .amount-summary {
    font-size: 26px;
  }

  .inclusions-summary {
    font-size: 11px;
    text-align: center;
  }

  .btn-submit-main {
    padding: 13px 14px;
    font-size: 13.5px;
    border-radius: 10px;
  }

  /* Cash Prizes & Perks Section */
  .reg-prizes-card {
    border-radius: 16px;
  }

  .prizes-card-header {
    padding: 18px 12px 10px;
  }

  .prizes-card-header .prizes-main-title {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .prizes-card-header .prizes-sub-title {
    font-size: 11.5px;
  }

  .prizes-card-body {
    padding: 0 12px 18px;
  }

  .podium-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .podium-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    text-align: left;
    border-radius: 10px;
  }

  .podium-box.gold {
    order: 1;
    padding: 12px 12px;
  }

  .podium-box.silver {
    order: 2;
  }

  .podium-box.bronze {
    order: 3;
  }

  .podium-rank-tag {
    margin: 0 10px 0 0;
    width: 32px;
    height: 32px;
    font-size: 12.5px;
    flex-shrink: 0;
  }

  .podium-content-wrap {
    flex: 1;
    min-width: 0;
  }

  .podium-place-title {
    font-size: 11.5px;
    margin-bottom: 1px;
  }

  .podium-cash-val {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.2;
  }

  .gold .podium-cash-val {
    font-size: 17px;
  }

  .podium-perk-icons {
    font-size: 12.5px;
    flex-shrink: 0;
    padding-left: 8px;
  }

  .prizes-tier-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .tier-item-pill {
    padding: 8px 10px;
    font-size: 11.5px;
    gap: 6px;
  }

  .tier-badge {
    font-size: 10.5px;
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .tier-title {
    font-size: 11.5px;
    flex: 1;
  }

  .tier-amount {
    font-size: 11px;
    flex-shrink: 0;
    font-weight: 700;
  }

  .gender-split-notice {
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
    border-radius: 10px;
  }

  .runner-perks-card {
    padding: 14px 12px;
    border-radius: 14px;
    margin-top: 12px;
  }

  .perks-card-title {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .perks-list {
    gap: 6px;
  }

  .perks-list li {
    font-size: 11.5px;
  }

  /* Footer */
  .reg-simple-footer {
    padding: 20px 10px;
    font-size: 11px;
    text-align: center;
  }

  /* Modals */
  .reg-modal {
    padding: 10px;
  }

  .reg-modal-panel {
    max-height: 90vh;
    border-radius: 14px;
  }

  .reg-modal-header {
    padding: 12px 14px;
  }

  .reg-modal-header h3 {
    font-size: 14px;
  }

  .reg-modal-body {
    padding: 14px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .reg-modal-actions {
    padding: 10px 14px;
  }

  .btn-modal-accept {
    padding: 8px 16px;
    font-size: 13px;
  }

  .btn-modal-cancel {
    padding: 8px 14px;
    font-size: 12.5px;
  }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 380px) {
  .brand-container {
    padding: 0 8px;
    gap: 5px;
  }

  .logo-title-main {
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
  }

  .logo-title-sub {
    font-size: 8.5px !important;
    letter-spacing: 0.8px !important;
  }

  .btn-help-phone {
    padding: 4px 6px;
    font-size: 11px;
    gap: 3px;
  }

  .btn-help-phone span {
    letter-spacing: -0.3px;
  }

  .reg-main-content {
    padding: 12px 6px 30px;
  }

  .reg-card-body {
    padding: 12px 8px;
  }

  .card-header-badge {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .card-header-badge .badge-full-txt {
    display: none;
  }

  .btn-submit-main {
    font-size: 12.5px;
    padding: 12px 10px;
  }
}

