/* ========================================================
   SMVNHS 25 Years Silver Jubilee Reunion Stylesheet
   Theme: Vibrant Multi-Color Sections & Crisp Luxury Header
   Mobile-First, High-Performance, Touch-Friendly
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Telugu:wght@400;500;600;700&display=swap');

:root {
  --bg-page: #f8fafc;
  
  /* Section 1: Blue */
  --c-blue: #1d4ed8;
  --c-blue-light: #eff6ff;
  --c-blue-border: #bfdbfe;
  --c-blue-focus: #3b82f6;

  /* Section 2: Emerald Green */
  --c-green: #047857;
  --c-green-light: #ecfdf5;
  --c-green-border: #a7f3d0;
  --c-green-focus: #10b981;

  /* Section 3: Purple */
  --c-purple: #6d28d9;
  --c-purple-light: #f5f3ff;
  --c-purple-border: #ddd6fe;
  --c-purple-focus: #8b5cf6;

  /* Section 4: Amber */
  --c-amber: #b45309;
  --c-amber-light: #fffbeb;
  --c-amber-border: #fde68a;
  --c-amber-focus: #f59e0b;

  /* Section 5: Rose */
  --c-rose: #be123c;
  --c-rose-light: #fff1f2;
  --c-rose-border: #fecdd3;
  --c-rose-focus: #f43f5e;

  --text-dark: #0f172a;
  --text-muted: #64748b;

  --radius-card: 16px;
  --radius-input: 10px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', 'Noto Sans Telugu', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 10% 5%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(5, 150, 105, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 15% 55%, rgba(109, 40, 217, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(225, 29, 72, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  padding: 12px 10px 70px;
  -webkit-font-smoothing: antialiased;
}

/* Mobile-Centric Container */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* ========================================================
   Header Image Banner (Big, Perfect & Attractive)
   ======================================================== */
.banner-wrapper {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.25);
  border: 2px solid #d4af37;
  background: #091a36;
  margin-bottom: 14px;
  line-height: 0;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================================
   Top Navigation Tabs (Single Row 50/50 Split)
   ======================================================== */
.nav-segment-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-card);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

/* ========================================================
   Clean & Professional Batch Identification Strip
   ======================================================== */
.batch-badge-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  margin-bottom: 16px;
  border: 1.5px solid #cbd5e1;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.batch-icon-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: #fef3c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.batch-text-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.batch-pill {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: 6px;
}

.batch-divider {
  color: #94a3b8;
  font-size: 0.9rem;
}

.batch-label {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.01em;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-align: center;
}

.nav-tab-btn:hover {
  color: var(--c-blue);
  background: #f1f5f9;
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* ========================================================
   Vibrant Distinct Colored Section Cards
   ======================================================== */
.survey-card {
  border-radius: var(--radius-card);
  padding: 22px 18px;
  margin-bottom: 16px;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

/* 1. BLUE CARD - Personal Details */
.card-theme-blue {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 85px, #ffffff 100%);
  border-color: var(--c-blue-border);
}
.card-theme-blue::before { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.card-theme-blue .card-title { color: var(--c-blue); }
.card-theme-blue .icon-badge { background: #dbeafe; color: var(--c-blue); border: 1px solid var(--c-blue-border); }
.card-theme-blue .form-input:focus { border-color: var(--c-blue-focus); box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.18); }

/* 2. GREEN CARD - Attendance & Timing */
.card-theme-green {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 85px, #ffffff 100%);
  border-color: var(--c-green-border);
}
.card-theme-green::before { background: linear-gradient(90deg, #047857, #34d399); }
.card-theme-green .card-title { color: var(--c-green); }
.card-theme-green .icon-badge { background: #d1fae5; color: var(--c-green); border: 1px solid var(--c-green-border); }
.card-theme-green .form-select:focus { border-color: var(--c-green-focus); box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.18); }

/* 3. PURPLE CARD - Event Preferences */
.card-theme-purple {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 85px, #ffffff 100%);
  border-color: var(--c-purple-border);
}
.card-theme-purple::before { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.card-theme-purple .card-title { color: var(--c-purple); }
.card-theme-purple .icon-badge { background: #ede9fe; color: var(--c-purple); border: 1px solid var(--c-purple-border); }
.card-theme-purple .form-select:focus { border-color: var(--c-purple-focus); box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.18); }

/* 4. AMBER CARD - G2G Planning & Volunteers */
.card-theme-amber {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 85px, #ffffff 100%);
  border-color: var(--c-amber-border);
}
.card-theme-amber::before { background: linear-gradient(90deg, #b45309, #fbbf24); }
.card-theme-amber .card-title { color: var(--c-amber); }
.card-theme-amber .icon-badge { background: #fef3c7; color: var(--c-amber); border: 1px solid var(--c-amber-border); }
.card-theme-amber .form-textarea:focus, .card-theme-amber .form-select:focus { border-color: var(--c-amber-focus); box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.18); }

/* 5. ROSE CARD - Friends Contacts */
.card-theme-rose {
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 85px, #ffffff 100%);
  border-color: var(--c-rose-border);
}
.card-theme-rose::before { background: linear-gradient(90deg, #be123c, #fb7185); }
.card-theme-rose .card-title { color: var(--c-rose); }
.card-theme-rose .icon-badge { background: #ffe4e6; color: var(--c-rose); border: 1px solid var(--c-rose-border); }
.card-theme-rose .form-input:focus { border-color: var(--c-rose-focus); box-shadow: 0 0 0 3.5px rgba(244, 63, 94, 0.18); }

/* Card Header */
.card-header {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 10px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card-title .icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-left: 44px;
}

/* Form Controls */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Label: Telugu & English beside each other in 1 line */
.form-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-label .label-telugu {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-label .label-eng {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-label .required {
  color: #dc2626;
  font-weight: bold;
}

/* Inputs & Dropdowns (16px to prevent iOS auto-zoom, 48px touch height) */
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
  min-height: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 15px;
}

/* Styled Select Dropdown */
.form-select {
  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='%23334155' stroke-width='2.5' 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 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

/* ========================================================
   Friends Contacts (Side-by-Side with Compact Delete)
   ======================================================== */
.friends-repeater-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-row {
  display: grid;
  grid-template-columns: 1fr 1fr 34px;
  gap: 8px;
  align-items: end;
  background: #fff5f5;
  padding: 10px 10px;
  border-radius: var(--radius-input);
  border: 1.5px dashed var(--c-rose-border);
}

.friend-row .form-input {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 14.5px;
}

.friend-row .form-label {
  font-size: 0.84rem;
}

.btn-remove-row {
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  color: var(--c-rose);
  width: 34px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 1px;
}

.btn-remove-row:hover {
  background: var(--c-rose);
  color: #ffffff;
  border-color: var(--c-rose);
}

.btn-add-friend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffe4e6;
  border: 1.5px dashed var(--c-rose);
  color: var(--c-rose);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 6px;
  width: 100%;
}

.btn-add-friend:hover {
  background: #fecdd3;
}

/* ========================================================
   Modern Official Submit Button
   ======================================================== */
.submit-container {
  text-align: center;
  margin-top: 24px;
}

.btn-submit-official {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 340px;
}

.btn-submit-official:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
  transform: translateY(-2px);
}

.btn-submit-official:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================================
   Thank You Modal Popup
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  max-width: 420px;
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.modal-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-blue);
  margin-bottom: 6px;
}

.modal-text {
  font-size: 0.94rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: var(--radius-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  width: 100%;
  margin-bottom: 10px;
}

.modal-btn-report {
  background: #f1f5f9;
  color: var(--c-blue);
  border: 1px solid var(--c-blue-border);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  width: 100%;
}

/* ========================================================
    Report Dashboard (Multi-Color Horizontal Stat Cards & Themed Charts)
   ======================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 66px;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-value-text {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
  margin-top: 2px;
}

.stat-label-sub {
  display: block;
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 500;
}

/* Multi-Color Themes for Stat Cards */
.stat-card-blue {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-left: 4px solid #2563eb;
}
.stat-card-blue .stat-icon-badge {
  background: #dbeafe;
}
.stat-card-blue .stat-value {
  color: #1d4ed8;
}

.stat-card-green {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 4px solid #16a34a;
}
.stat-card-green .stat-icon-badge {
  background: #dcfce7;
}
.stat-card-green .stat-value {
  color: #15803d;
}

.stat-card-purple {
  background: #faf5ff;
  border: 1.5px solid #e9d5ff;
  border-left: 4px solid #9333ea;
}
.stat-card-purple .stat-icon-badge {
  background: #f3e8ff;
}
.stat-card-purple .stat-value {
  color: #7e22ce;
}

.stat-card-amber {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 4px solid #d97706;
}
.stat-card-amber .stat-icon-badge {
  background: #fef3c7;
}
.stat-card-amber .stat-value {
  color: #b45309;
}

.charts-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.chart-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 16px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chart-card-blue {
  border: 1.5px solid #bfdbfe;
  border-top: 4px solid #2563eb;
}
.chart-card-blue .chart-title {
  color: #1d4ed8;
}

.chart-card-green {
  border: 1.5px solid #bbf7d0;
  border-top: 4px solid #16a34a;
}
.chart-card-green .chart-title {
  color: #15803d;
}

.chart-card-purple {
  border: 1.5px solid #e9d5ff;
  border-top: 4px solid #9333ea;
}
.chart-card-purple .chart-title {
  color: #7e22ce;
}

.chart-card-teal {
  border: 1.5px solid #99f6e4;
  border-top: 4px solid #0d9488;
}
.chart-card-teal .chart-title {
  color: #0f766e;
}

.chart-card-amber {
  border: 1.5px solid #fde68a;
  border-top: 4px solid #d97706;
}
.chart-card-amber .chart-title {
  color: #b45309;
}

.chart-card-rose {
  border: 1.5px solid #fecdd3;
  border-top: 4px solid #e11d48;
}
.chart-card-rose .chart-title {
  color: #be123c;
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-wrapper {
  position: relative;
  height: 240px;
  width: 100%;
}

/* Ideas Wall */
.ideas-wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.idea-bubble {
  background: #fffbeb;
  border: 1.5px solid var(--c-amber-border);
  border-left: 4px solid var(--c-amber);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.idea-author {
  font-size: 0.8rem;
  color: var(--c-amber);
  font-weight: 700;
  margin-top: 6px;
}

/* Tables on Mobile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.custom-table th {
  background: #f1f5f9;
  color: var(--c-blue);
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1.5px solid #cbd5e1;
  white-space: nowrap;
}

.custom-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-dark);
  white-space: nowrap;
}

.btn-action-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-call {
  background: #e0f2fe;
  color: #0284c7;
}

.btn-wa {
  background: #dcfce7;
  color: #16a34a;
}
