/* ==========================================================================
   El Fouad International Schools - Workshop Feedback Form Theme
   Website: https://elfouadinternationalschools.com/
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-navy: #0A192F;
  --primary-royal: #1E3A8A;
  --accent-blue: #2563EB;
  --accent-blue-light: #EFF6FF;
  --accent-gold: #D4AF37;
  --accent-gold-dark: #B89628;
  --accent-gold-light: #FEF9C3;
  --accent-emerald: #059669;
  --accent-purple: #7C3AED;
  
  /* Neutrals */
  --bg-page: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-focus: #3B82F6;
  
  /* Status */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 30px 16px 60px;
}

/* Animated Ambient Shapes */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.bg-shape-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.18) 0%, rgba(37, 99, 235, 0.05) 70%);
  top: -100px;
  right: -100px;
}

.bg-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
  bottom: 50px;
  left: -100px;
}

.bg-shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 70%);
  top: 40%;
  right: 10%;
}

/* Container */
.app-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Form Wrapper Main Card */
.form-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

/* ==========================================================================
   Header & School Branding
   ========================================================================== */
.header-card {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #112240 50%, #1E3A8A 100%);
  color: #FFFFFF;
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold);
}

.header-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M30 30L0 0h60L30 30zm0 0L60 60H0l30-30z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.school-brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.school-titles {
  display: flex;
  flex-direction: column;
}

.brand-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition);
}

.brand-link:hover {
  color: #FDE047;
}

.school-footer-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.school-footer-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.school-name-en {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF;
  line-height: 1.2;
}

.school-badge-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

/* Workshop Banner */
.workshop-banner {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  position: relative;
  z-index: 2;
}

.workshop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FDE047;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.workshop-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.3;
}

.workshop-subtitle {
  font-size: 0.95rem;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.bloom-levels-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.76rem;
  color: #94A3B8;
  background: rgba(10, 25, 47, 0.6);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bloom-levels-pill span {
  font-weight: 600;
  color: #E2E8F0;
}

.bloom-levels-pill i {
  font-size: 0.65rem;
  color: var(--accent-gold);
  opacity: 0.7;
}

.bloom-levels-pill .active-level {
  color: #FDE047;
  background: rgba(212, 175, 55, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Interactive Stepper & Progress Bar
   ========================================================================== */
.progress-bar-container {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 36px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.stepper-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.stepper-item:hover .step-icon {
  transform: scale(1.08);
  border-color: var(--accent-blue);
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.step-done-icon {
  display: none;
  font-size: 0.8rem;
}

.step-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

/* Stepper Active / Completed States */
.stepper-item.active .step-icon {
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.stepper-item.active .step-label {
  color: var(--accent-blue);
  font-weight: 700;
}

.stepper-item.completed .step-icon {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: #FFFFFF;
}

.stepper-item.completed .step-number {
  display: none;
}

.stepper-item.completed .step-done-icon {
  display: inline-block;
}

.stepper-item.completed .step-label {
  color: #0F172A;
}

.stepper-divider {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 8px 20px;
  position: relative;
  top: -10px;
  transition: var(--transition);
}

.stepper-divider.completed {
  background: var(--accent-emerald);
}

.stepper-progress-bar {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.stepper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue) 0%, #3B82F6 50%, var(--accent-emerald) 100%);
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.stepper-counter {
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-badge {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.stepper-badge.complete {
  background: #ECFDF5;
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Shaking animation for validation error */
@keyframes shakeElement {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-section.error-state {
  animation: shakeElement 0.4s ease-in-out;
}

/* ==========================================================================
   Form Body & Sections
   ========================================================================== */
.feedback-form {
  padding: 32px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 24px;
  transition: var(--transition);
  position: relative;
}

.form-section:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.form-section.error-state {
  border-color: var(--error) !important;
  background-color: #FEF2F2;
}

/* Info Section (Optional) */
.info-section {
  background: var(--bg-card-alt);
  border-style: dashed;
}

.section-header-compact {
  margin-bottom: 18px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.section-title-wrap i {
  font-size: 1.15rem;
  color: var(--accent-blue);
}

.section-title-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-optional {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.grid-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group label i {
  color: var(--accent-blue);
  font-size: 0.85rem;
}

.input-group input,
.input-group textarea,
.textarea-container textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.input-group input:focus,
.textarea-container textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Question Header */
.question-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.q-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-royal) 0%, var(--accent-blue) 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.q-content {
  flex: 1;
}

.q-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
}

.required-star {
  color: var(--error);
  font-weight: bold;
}

.q-hint {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Question 1: Overall Experience Rating Cards
   ========================================================================== */
.rating-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.rating-card {
  position: relative;
  cursor: pointer;
}

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

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.label-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.sub-label {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.2;
}

/* Hover & Selected States for Q1 */
.rating-card:hover .card-inner {
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rating-card input[type="radio"]:checked + .card-inner {
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.rating-card input[type="radio"]:checked + .card-inner .icon-bubble {
  background: var(--accent-blue);
  color: #FFFFFF;
  transform: scale(1.08);
}

.option-excellent input[type="radio"]:checked + .card-inner {
  border-color: #D97706;
  background: #FFFBEB;
}
.option-excellent input[type="radio"]:checked + .card-inner .icon-bubble {
  background: #D97706;
}

.option-very-good input[type="radio"]:checked + .card-inner {
  border-color: var(--accent-emerald);
  background: #ECFDF5;
}
.option-very-good input[type="radio"]:checked + .card-inner .icon-bubble {
  background: var(--accent-emerald);
}

/* ==========================================================================
   Question 2: Confidence Levels List Cards
   ========================================================================== */
.choice-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice-row-card {
  position: relative;
  cursor: pointer;
}

.choice-row-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.row-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}

.radio-custom::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: var(--transition);
}

.row-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.row-card-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.row-card-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.confidence-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}

.confidence-indicator .bar {
  width: 6px;
  height: 20px;
  background: #E2E8F0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Bar levels fill */
.confidence-indicator.lvl-4 .bar { background: #10B981; }
.confidence-indicator.lvl-3 .bar:nth-child(-n+3) { background: #3B82F6; }
.confidence-indicator.lvl-2 .bar:nth-child(-n+2) { background: #F59E0B; }
.confidence-indicator.lvl-1 .bar:nth-child(1) { background: #94A3B8; }

.choice-row-card:hover .row-card-inner {
  border-color: #94A3B8;
  background: var(--bg-card-alt);
}

.choice-row-card input[type="radio"]:checked + .row-card-inner {
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
  box-shadow: var(--shadow-sm);
}

.choice-row-card input[type="radio"]:checked + .row-card-inner .radio-custom {
  border-color: var(--accent-blue);
}

.choice-row-card input[type="radio"]:checked + .row-card-inner .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   Question 3: Horizontal Pill Options
   ========================================================================== */
.horizontal-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-option {
  flex: 1;
  min-width: 140px;
  cursor: pointer;
  position: relative;
}

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

.pill-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  text-align: center;
}

.pill-content i {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}

.pill-option:hover .pill-content {
  border-color: #94A3B8;
  background: var(--bg-card-alt);
}

.pill-option input[type="radio"]:checked + .pill-content {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pill-option input[type="radio"]:checked + .pill-content i {
  color: #FFFFFF;
}

/* ==========================================================================
   Question 4 & 5: Textareas
   ========================================================================== */
.textarea-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.textarea-container textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 0 4px;
}

.tip-text {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.tip-text i {
  color: var(--accent-gold-dark);
}

/* Error Messages */
.error-message {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--error);
  margin-top: 10px;
}

.error-state .error-message {
  display: block;
}

/* ==========================================================================
   Submit Bar & Footer
   ========================================================================== */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.security-badge i {
  color: var(--accent-emerald);
}

.btn-submit {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, var(--primary-royal) 0%, var(--accent-blue) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  filter: brightness(1.05);
}

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

.btn-submit .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translateX(3px) translateY(-2px);
}

/* Flying airplane animation */
.btn-submit.btn-submitting .btn-icon {
  animation: flyAirplane 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flyAirplane {
  0% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  30% { transform: translate(-3px, 3px) rotate(-15deg); opacity: 1; }
  100% { transform: translate(45px, -35px) scale(0.3) rotate(45deg); opacity: 0; }
}

/* Submitting Loading State */
.btn-submit.btn-submitting {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #2563EB 100%);
  background-size: 200% 200%;
  animation: shimmerButton 1.5s infinite;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55);
  cursor: wait;
}

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

/* Success State on Button */
.btn-submit.btn-success-state {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55) !important;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

.form-footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-color);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.25s ease-out;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-circle {
  width: 76px;
  height: 76px;
  background: #ECFDF5;
  border: 3px solid #10B981;
  color: #10B981;
  font-size: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: bounce 0.6s ease-out;
}

.config-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

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

.success-card {
  max-width: 560px;
}

.appreciation-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #DBEAFE;
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
}

.appreciation-quote {
  position: relative;
}

.appreciation-quote i {
  color: var(--accent-blue);
  font-size: 1.1rem;
  opacity: 0.6;
  margin-bottom: 6px;
  display: block;
}

.appreciation-quote p {
  font-size: 0.9rem;
  color: #1E293B;
  line-height: 1.55;
  font-style: italic;
}

.submission-summary-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-synced {
  color: var(--accent-emerald) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.summary-item .label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-item .value {
  font-weight: 600;
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-actions.horizontal {
  justify-content: flex-end;
}

.btn-primary, .btn-secondary {
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
}

.btn-primary:hover {
  background: #1D4ED8;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-alt);
  border-color: #CBD5E1;
}

.config-card {
  text-align: left;
}
.config-card .modal-title, .config-card .modal-subtitle {
  text-align: center;
}
.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.toast-success {
  border-left: 4px solid var(--success);
}
.toast.toast-error {
  border-left: 4px solid var(--error);
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-12px);}
  60% {transform: translateY(-6px);}
}

@media (max-width: 768px) {
  body {
    padding: 12px 10px 40px;
  }

  .header-card {
    padding: 28px 20px 24px;
  }

  .school-brand {
    gap: 10px;
  }

  .school-name-en {
    font-size: 1.25rem;
  }

  .workshop-title {
    font-size: 1.25rem;
  }

  .feedback-form {
    padding: 24px 18px 30px;
    gap: 24px;
  }

  .grid-row-2,
  .grid-row-3 {
    grid-template-columns: 1fr;
  }

  .rating-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .rating-grid-5 .rating-card:last-child {
    grid-column: span 2;
  }

  .horizontal-pill-group {
    flex-direction: column;
  }

  .progress-bar-container {
    padding: 14px 16px 14px;
  }

  .step-label {
    font-size: 0.68rem;
  }

  .step-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .form-footer {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
  }
}
