/* ECLEE Registration - Premium Styles */
:root {
  --primary: #1a3a6e;
  --primary-dark: #0f2548;
  --primary-light: #2a5298;
  --accent: #c4451c;
  --accent-light: #e8a02a;
  --accent-glow: rgba(196, 69, 28, 0.3);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --error: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 60px rgba(26, 58, 110, 0.15);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #f8fafc 100%);
  background-attachment: fixed;
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(26, 58, 110, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196, 69, 28, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(232, 160, 42, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

/* ================================
   LOADING OVERLAY - ELEVEN LABS STYLE
   ================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

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

.loading-container {
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 50%;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--primary);
  animation: spin-1 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
  inset: 12px;
  border-right-color: var(--accent);
  animation: spin-2 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

.spinner-ring:nth-child(3) {
  inset: 24px;
  border-bottom-color: var(--accent-light);
  animation: spin-3 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Center pulse dot */
.spinner-ring:nth-child(3)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes spin-1 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-2 {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes spin-3 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.7;
  }
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.loading-text::after {
  content: "";
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

.loading-progress {
  width: 280px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-light));
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progress 2.5s ease-in-out infinite, gradient-shift 1.5s linear infinite;
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
  opacity: 0.8;
}

@keyframes progress {
  0% {
    width: 0;
  }
  50% {
    width: 75%;
  }
  100% {
    width: 100%;
  }
}

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

/* ================================
   SUCCESS MODAL
   ================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

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

.modal-content {
  background: var(--white);
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(16, 185, 129, 0.2);
  transform: scale(0.8) translateY(40px);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--success), #059669, var(--success));
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px var(--success-glow);
  animation: success-pop 0.6s var(--transition-bounce) 0.2s both;
  position: relative;
}

.success-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  animation: ripple-out 1.5s ease-out infinite;
}

@keyframes success-pop {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes ripple-out {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-check 0.6s ease-out 0.5s forwards;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.modal-content p {
  color: var(--gray-600);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.7;
}

/* ================================
   HEADER
   ================================ */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 56px;
  width: auto;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.header-info {
  text-align: right;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.header-info p {
  margin: 2px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.header-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.header-info a:hover {
  color: var(--accent);
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
  padding: 48px 0 80px;
  position: relative;
}

.form-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: card-appear 0.8s ease-out;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a1a35 100%);
  color: var(--white);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  transform: rotate(25deg);
  pointer-events: none;
}

.form-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.form-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.form-header p {
  opacity: 0.9;
  font-size: 17px;
  font-weight: 400;
  position: relative;
}

/* ================================
   FORM SECTIONS
   ================================ */
.registration-form {
  padding: 48px;
}

.form-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
  animation: section-fade-in 0.6s ease-out both;
}

.form-section:nth-child(1) {
  animation-delay: 0.1s;
}
.form-section:nth-child(2) {
  animation-delay: 0.2s;
}
.form-section:nth-child(3) {
  animation-delay: 0.3s;
}
.form-section:nth-child(4) {
  animation-delay: 0.4s;
}
.form-section:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes section-fade-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.section-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(26, 58, 110, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.form-section:hover .section-number {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(26, 58, 110, 0.4);
}

/* ================================
   FORM ELEMENTS
   ================================ */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.form-row.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.form-row.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: -0.01em;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--gray-300);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 110, 0.1), 0 4px 12px rgba(26, 58, 110, 0.08);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.help-text {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
  padding-left: 2px;
}

/* ================================
   RADIO & CHECKBOX
   ================================ */
.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radio-group.inline {
  gap: 20px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.radio-label:hover,
.checkbox-label:hover {
  background: var(--gray-50);
}

.radio-label input,
.checkbox-label input {
  display: none;
}

.radio-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.radio-label:hover .radio-custom {
  border-color: var(--primary);
}

.radio-label input:checked + .radio-custom {
  border-color: var(--primary);
  border-width: 2px;
}

.radio-label input:checked + .radio-custom::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  animation: radio-pop 0.2s ease-out;
}

@keyframes radio-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--primary);
}

.checkbox-label input:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  animation: checkbox-pop 0.2s ease-out;
}

@keyframes checkbox-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ================================
   COURSES GRID
   ================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.course-checkbox {
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.course-checkbox::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transition: transform var(--transition);
}

.course-checkbox:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 58, 110, 0.12);
}

.course-checkbox:hover::before {
  transform: scaleY(1);
}

.course-checkbox:has(input:checked) {
  background: linear-gradient(135deg, rgba(26, 58, 110, 0.04), rgba(26, 58, 110, 0.08));
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(26, 58, 110, 0.15);
}

.course-checkbox:has(input:checked)::before {
  transform: scaleY(1);
}

/* ================================
   QUESTIONS GRID
   ================================ */
.questions-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 16px;
  transition: all var(--transition);
}

.question-item:hover {
  background: var(--white);
  border-color: var(--gray-300);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.question-text {
  font-weight: 500;
  color: var(--gray-700);
  flex: 1;
  min-width: 200px;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26, 58, 110, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 58, 110, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  padding: 20px 48px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

.btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Submit Button Special Animation */
.btn-submit {
  background: linear-gradient(135deg, var(--accent) 0%, #a33815 100%);
  box-shadow: 0 4px 20px var(--accent-glow);
  min-width: 220px;
}

.btn-submit:hover {
  box-shadow: 0 8px 35px var(--accent-glow);
}

.btn-submit.loading {
  pointer-events: none;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loader {
  opacity: 1;
}

.btn-loader {
  position: absolute;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-loader span {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: btn-loading 1.2s ease-in-out infinite;
}

.btn-loader span:nth-child(2) {
  animation-delay: 0.1s;
}
.btn-loader span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes btn-loading {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================================
   FORM ACTIONS
   ================================ */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--gray-200);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-400);
  padding: 48px 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
}

.footer p {
  font-size: 14px;
  margin: 6px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 900px) {
  .form-row.four-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-header {
    padding: 40px 32px;
  }

  .form-header h1 {
    font-size: 28px;
  }

  .registration-form {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    text-align: center;
  }

  .header-info {
    text-align: center;
  }

  .header-info p {
    justify-content: center;
  }

  .form-row,
  .form-row.three-cols,
  .form-row.four-cols {
    grid-template-columns: 1fr;
  }

  .form-header {
    padding: 32px 24px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .registration-form {
    padding: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .question-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .modal-content {
    padding: 40px 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .logo {
    height: 44px;
  }

  .form-card {
    border-radius: var(--radius-lg);
  }

  .loading-spinner {
    width: 80px;
    height: 80px;
  }

  .loading-progress {
    width: 200px;
  }
}

/* ================================
   ANIMATIONS & POLISH
   ================================ */
@media (prefers-reduced-motion: no-preference) {
  .form-group input,
  .form-group textarea {
    animation: input-appear 0.4s ease-out both;
  }

  .form-section:nth-child(1) .form-group:nth-child(1) input {
    animation-delay: 0.15s;
  }
  .form-section:nth-child(1) .form-group:nth-child(2) input {
    animation-delay: 0.2s;
  }
}

@keyframes input-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus-visible for accessibility */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background: rgba(26, 58, 110, 0.2);
  color: var(--gray-900);
}
