/*
Theme Name: Selectividad Contigo
Version: 2.0
Author: Selectividad Contigo
Description: Professional theme for Selectividad exam preparation
Requires PHP: 7.4
*/

/* ========================================
   CSS VARIABLES - PROFESSIONAL COLOR SCHEME
   Based on research: Red accent (10%), grey/white base
======================================== */
:root {
  /* Primary Colors */
  --sc-white: #FFFFFF;
  --sc-off-white: #FAFAFA;
  --sc-light-grey: #F5F5F5;
  --sc-medium-grey: #E8E8E8;

  /* Text Colors */
  --sc-text-primary: #1A1A1A;
  --sc-text-secondary: #4A4A4A;
  --sc-text-muted: #757575;
  --sc-text-light: #9E9E9E;

  /* Accent Colors - Crimson Red (conversion-focused) */
  --sc-accent: #C41E3A;
  --sc-accent-hover: #A01830;
  --sc-accent-light: #F8E8EB;

  /* Dark Colors */
  --sc-dark: #1A1A1A;
  --sc-dark-grey: #2D2D2D;
  --sc-charcoal: #333333;

  /* Functional */
  --sc-success: #2E7D32;
  --sc-error: #C41E3A;
  --sc-border: #E0E0E0;

  /* Typography */
  --sc-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --sc-space-xs: 4px;
  --sc-space-sm: 8px;
  --sc-space-md: 16px;
  --sc-space-lg: 24px;
  --sc-space-xl: 32px;
  --sc-space-2xl: 48px;
  --sc-space-3xl: 64px;

  /* Transitions */
  --sc-transition: 0.2s ease;
  --sc-transition-slow: 0.4s ease;

  /* Shadows */
  --sc-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sc-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --sc-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========================================
   FONTS
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sc-font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sc-text-primary);
  background: var(--sc-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-main);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--sc-space-md) 0;
  color: var(--sc-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin: 0 0 var(--sc-space-md) 0; }

a {
  color: var(--sc-accent);
  text-decoration: none;
  transition: color var(--sc-transition);
}

a:hover { color: var(--sc-accent-hover); }

/* ========================================
   LAYOUT
======================================== */
.sc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sc-space-lg);
}

.sc-body {
  padding-top: 72px;
}

.sc-body.has-banner {
  padding-top: 112px;
}

/* ========================================
   VISITOR TYPE SELECTOR
======================================== */
.sc-visitor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--sc-transition-slow);
}

.sc-visitor-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.sc-visitor-modal {
  background: var(--sc-white);
  padding: var(--sc-space-2xl) var(--sc-space-xl);
  border-radius: 12px;
  text-align: center;
  max-width: 520px;
  width: 90%;
  transform: translateY(20px);
  transition: transform var(--sc-transition-slow);
}

.sc-visitor-overlay.is-visible .sc-visitor-modal {
  transform: translateY(0);
}

.sc-visitor-modal h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sc-space-sm);
}

.sc-visitor-modal > p {
  color: var(--sc-text-secondary);
  margin-bottom: var(--sc-space-xl);
}

.sc-visitor-options {
  display: flex;
  gap: var(--sc-space-md);
  justify-content: center;
}

.sc-visitor-btn {
  flex: 1;
  padding: var(--sc-space-lg);
  border: 2px solid var(--sc-border);
  background: var(--sc-white);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--sc-transition);
}

.sc-visitor-btn:hover {
  border-color: var(--sc-accent);
  background: var(--sc-off-white);
}

.sc-visitor-btn-icon {
  font-size: 2rem;
  margin-bottom: var(--sc-space-sm);
  display: block;
}

.sc-visitor-btn-title {
  font-weight: 700;
  color: var(--sc-text-primary);
  display: block;
  margin-bottom: var(--sc-space-xs);
}

.sc-visitor-btn-desc {
  font-size: 0.875rem;
  color: var(--sc-text-muted);
}

/* ========================================
   BANNER
======================================== */
.sc-banner {
  background: var(--sc-dark);
  color: var(--sc-white);
  padding: var(--sc-space-sm) var(--sc-space-md);
  text-align: center;
  font-size: 0.875rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.sc-banner a {
  color: var(--sc-white);
  text-decoration: underline;
  font-weight: 600;
}

.sc-banner-highlight {
  background: var(--sc-accent);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: var(--sc-space-sm);
  display: inline-block;
}

/* ========================================
   HEADER
======================================== */
.sc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--sc-white);
  border-bottom: 1px solid var(--sc-border);
  z-index: 1000;
  transition: all var(--sc-transition);
}

.has-banner .sc-header {
  top: 40px;
}

.sc-header.is-scrolled {
  box-shadow: var(--sc-shadow-md);
}

.sc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sc-space-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sc-space-lg);
}

/* Logo */
.sc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sc-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sc-text-primary);
  letter-spacing: -0.02em;
}

.sc-logo-text span {
  color: var(--sc-accent);
}

/* Navigation */
.sc-nav {
  display: flex;
  align-items: center;
  gap: var(--sc-space-lg);
}

.sc-nav-list {
  display: flex;
  align-items: center;
  gap: var(--sc-space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sc-text-secondary);
  padding: var(--sc-space-sm) 0;
  position: relative;
  transition: color var(--sc-transition);
}

.sc-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sc-accent);
  transition: width var(--sc-transition);
}

.sc-nav-link:hover,
.sc-nav-link.is-active {
  color: var(--sc-text-primary);
}

.sc-nav-link:hover::after,
.sc-nav-link.is-active::after {
  width: 100%;
}

/* Buttons */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sc-space-sm);
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--sc-transition);
  text-decoration: none;
}

.sc-btn-primary {
  background: var(--sc-accent);
  color: var(--sc-white);
}

.sc-btn-primary:hover {
  background: var(--sc-accent-hover);
  color: var(--sc-white);
  transform: translateY(-1px);
}

.sc-btn-secondary {
  background: var(--sc-dark);
  color: var(--sc-white);
}

.sc-btn-secondary:hover {
  background: var(--sc-charcoal);
  color: var(--sc-white);
}

.sc-btn-outline {
  background: transparent;
  color: var(--sc-text-primary);
  border: 2px solid var(--sc-border);
}

.sc-btn-outline:hover {
  border-color: var(--sc-text-primary);
}

.sc-btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Mobile Menu */
.sc-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.sc-menu-toggle span,
.sc-menu-toggle span::before,
.sc-menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sc-text-primary);
  border-radius: 2px;
  transition: all var(--sc-transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sc-menu-toggle span { top: 50%; transform: translate(-50%, -50%); }
.sc-menu-toggle span::before { content: ''; top: -8px; }
.sc-menu-toggle span::after { content: ''; top: 8px; }

.sc-menu-toggle[aria-expanded="true"] span { background: transparent; }
.sc-menu-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.sc-menu-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .sc-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sc-white);
    flex-direction: column;
    padding: var(--sc-space-xl);
    transform: translateX(100%);
    transition: transform var(--sc-transition);
  }

  .has-banner .sc-nav { top: 112px; }
  .sc-nav.is-open { transform: translateX(0); }

  .sc-nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .sc-nav-link {
    padding: var(--sc-space-md) 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--sc-border);
    display: block;
    width: 100%;
  }

  .sc-menu-toggle { display: block; }
}

/* ========================================
   HERO SECTION
======================================== */
.sc-hero {
  padding: 120px 0 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sc-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, var(--sc-light-grey) 0%, transparent 50%);
  z-index: -1;
  animation: sc-hero-bg 20s ease-in-out infinite alternate;
}

@keyframes sc-hero-bg {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.1); }
}

.sc-hero-content {
  max-width: 600px;
}

.sc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sc-space-sm);
  background: var(--sc-light-grey);
  padding: var(--sc-space-sm) var(--sc-space-md);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sc-text-secondary);
  margin-bottom: var(--sc-space-lg);
}

.sc-hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--sc-success);
  border-radius: 50%;
  animation: sc-pulse 2s infinite;
}

@keyframes sc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sc-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--sc-space-lg);
  letter-spacing: -0.03em;
}

.sc-highlight {
  color: var(--sc-accent);
}

.sc-hero-subtitle {
  font-size: 1.125rem;
  color: var(--sc-text-secondary);
  margin-bottom: var(--sc-space-xl);
  line-height: 1.7;
}

.sc-hero-actions {
  display: flex;
  gap: var(--sc-space-md);
  flex-wrap: wrap;
  margin-bottom: var(--sc-space-2xl);
}

.sc-hero-stats {
  display: flex;
  gap: var(--sc-space-2xl);
  padding-top: var(--sc-space-xl);
  border-top: 1px solid var(--sc-border);
}

.sc-hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.sc-hero-stat-label {
  font-size: 0.875rem;
  color: var(--sc-text-muted);
}

@media (max-width: 700px) {
  .sc-hero { padding: 100px 0 60px; min-height: auto; }
  .sc-hero-stats { gap: var(--sc-space-xl); flex-wrap: wrap; }
}

/* ========================================
   SECTIONS
======================================== */
.sc-section {
  padding: var(--sc-space-3xl) 0;
}

.sc-section-grey {
  background: var(--sc-light-grey);
}

.sc-section-dark {
  background: var(--sc-dark);
  color: var(--sc-white);
}

.sc-section-dark h2,
.sc-section-dark h3 { color: var(--sc-white); }
.sc-section-dark p { color: rgba(255,255,255,0.8); }

.sc-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--sc-space-2xl);
}

.sc-section-header p {
  color: var(--sc-text-secondary);
  font-size: 1.0625rem;
}

/* ========================================
   FEATURES GRID
======================================== */
.sc-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sc-space-xl);
}

.sc-feature-card {
  padding: var(--sc-space-xl);
  background: var(--sc-white);
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  transition: all var(--sc-transition);
}

.sc-feature-card:hover {
  border-color: var(--sc-accent);
  box-shadow: var(--sc-shadow-lg);
  transform: translateY(-4px);
}

.sc-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--sc-light-grey);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sc-space-md);
}

.sc-feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sc-space-sm);
}

.sc-feature-card p {
  color: var(--sc-text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

/* ========================================
   TESTIMONIALS
======================================== */
.sc-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sc-space-xl);
}

.sc-testimonial-card {
  padding: var(--sc-space-xl);
  background: var(--sc-white);
  border-radius: 12px;
  box-shadow: var(--sc-shadow-sm);
  border: 1px solid var(--sc-border);
}

.sc-testimonial-stars {
  color: #F59E0B;
  font-size: 1.25rem;
  margin-bottom: var(--sc-space-md);
}

.sc-testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sc-space-lg);
}

.sc-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sc-space-md);
}

.sc-testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--sc-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sc-accent);
}

.sc-testimonial-name {
  font-weight: 600;
}

.sc-testimonial-role {
  font-size: 0.875rem;
  color: var(--sc-text-muted);
}

/* ========================================
   CTA SECTION
======================================== */
.sc-cta {
  background: var(--sc-dark);
  padding: var(--sc-space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sc-cta::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(circle, var(--sc-accent) 0%, transparent 50%);
  opacity: 0.08;
  animation: sc-cta-pulse 10s ease-in-out infinite;
}

@keyframes sc-cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.sc-cta-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.sc-cta h2 {
  color: var(--sc-white);
  margin-bottom: var(--sc-space-md);
}

.sc-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.0625rem;
  margin-bottom: var(--sc-space-xl);
}

/* ========================================
   FOOTER
======================================== */
.sc-footer {
  background: var(--sc-dark);
  color: var(--sc-white);
  padding: var(--sc-space-3xl) 0 var(--sc-space-xl);
}

.sc-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sc-space-2xl);
  margin-bottom: var(--sc-space-2xl);
}

.sc-footer-brand .sc-logo-text {
  color: var(--sc-white);
  display: block;
  margin-bottom: var(--sc-space-md);
}

.sc-footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  max-width: 280px;
}

.sc-footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sc-space-md);
}

.sc-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-footer-links li {
  margin-bottom: var(--sc-space-sm);
}

.sc-footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

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

.sc-footer-bottom {
  padding-top: var(--sc-space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sc-space-md);
}

.sc-footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 900px) {
  .sc-footer-grid { grid-template-columns: 1fr 1fr; }
  .sc-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .sc-footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   MATRICULA FORM
======================================== */
.agh-root#matricula {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--sc-space-2xl) var(--sc-space-lg);
}

.agh-form-header {
  text-align: center;
  margin-bottom: var(--sc-space-2xl);
}

.agh-form-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--sc-space-sm);
}

.agh-form-header p {
  color: var(--sc-text-secondary);
}

/* Stepper */
.agh-stepper-wrap {
  margin-bottom: var(--sc-space-2xl);
}

.agh-stepper {
  display: flex;
  justify-content: center;
  gap: var(--sc-space-2xl);
}

.agh-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.agh-step-circle {
  width: 44px;
  height: 44px;
  border: 2px solid var(--sc-border);
  background: var(--sc-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sc-text-muted);
  position: relative;
  transition: all var(--sc-transition);
}

.agh-step-circle.active {
  border-color: var(--sc-accent);
  color: var(--sc-accent);
  background: var(--sc-accent-light);
}

.agh-step-circle.done {
  border-color: var(--sc-accent);
  background: var(--sc-accent);
  color: var(--sc-white);
}

.agh-step-bar {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  width: 50px;
  height: 2px;
  background: var(--sc-border);
  transform: translateY(-50%);
}

.agh-step:last-child .agh-step-bar { display: none; }

.agh-step-label {
  margin-top: var(--sc-space-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sc-text-muted);
}

/* Form container */
.agh-enroll-main {
  background: var(--sc-white);
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  padding: var(--sc-space-xl);
}

.agh-enroll-step { display: none; }
.agh-enroll-step.active { display: block; }

/* Form fields */
.agh-enroll-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sc-space-lg) var(--sc-space-md);
}

.agh-enroll-field {
  display: flex;
  flex-direction: column;
  gap: var(--sc-space-sm);
}

.agh-enroll-field label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--sc-text-primary);
}

.agh-enroll-field input,
.agh-enroll-field select {
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  background: var(--sc-white);
  transition: all var(--sc-transition);
}

.agh-enroll-field input:focus,
.agh-enroll-field select:focus {
  outline: none;
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 3px var(--sc-accent-light);
}

.agh-enroll-field .error-message {
  color: var(--sc-error);
  font-size: 0.8125rem;
  min-height: 18px;
}

/* Radio */
.agh-radio-row {
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
}

.agh-radio-row > label:first-child {
  min-width: 150px;
}

.agh-radio-opt {
  display: flex;
  gap: var(--sc-space-md);
}

.agh-radio-opt label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
}

/* Discovery block */
.agh-discover-block {
  background: var(--sc-light-grey);
  padding: var(--sc-space-md);
  border-radius: 8px;
}

.agh-discover-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sc-space-sm);
}

.agh-discover-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.agh-who-block {
  margin-top: var(--sc-space-md);
  padding-top: var(--sc-space-md);
  border-top: 1px solid var(--sc-border);
}

/* Step 2 */
.agh-enroll-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sc-space-lg);
  margin-bottom: var(--sc-space-lg);
}

.agh-enroll-col label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--sc-space-sm);
}

.agh-enroll-col select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
}

.agh-checkbox-list {
  display: flex;
  gap: var(--sc-space-lg);
}

.agh-checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
}

/* Subjects */
.agh-subjects-tip {
  background: var(--sc-light-grey);
  padding: var(--sc-space-md);
  border-radius: 8px;
  margin-bottom: var(--sc-space-lg);
  color: var(--sc-text-secondary);
}

.agh-subject-group {
  margin-bottom: var(--sc-space-lg);
}

.agh-subject-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-text-muted);
  margin-bottom: var(--sc-space-md);
  padding-bottom: var(--sc-space-sm);
  border-bottom: 1px solid var(--sc-border);
}

.agh-subjects-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sc-space-sm);
}

.agh-subject-card {
  padding: var(--sc-space-md);
  background: var(--sc-off-white);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  transition: border-color var(--sc-transition);
}

.agh-subject-card:hover {
  border-color: var(--sc-accent);
}

/* Actions */
.agh-enroll-actions,
.agh-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sc-space-md);
  margin-top: var(--sc-space-xl);
  padding-top: var(--sc-space-lg);
  border-top: 1px solid var(--sc-border);
}

.agh-enroll-back,
.agh-enroll-next {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--sc-transition);
  border: none;
}

.agh-enroll-back {
  background: var(--sc-light-grey);
  color: var(--sc-text-primary);
}

.agh-enroll-back:hover {
  background: var(--sc-medium-grey);
}

.agh-enroll-next {
  background: var(--sc-accent);
  color: var(--sc-white);
}

.agh-enroll-next:hover:not(:disabled) {
  background: var(--sc-accent-hover);
}

.agh-enroll-next:disabled {
  background: var(--sc-medium-grey);
  color: var(--sc-text-muted);
  cursor: not-allowed;
}

/* Review */
.agh-review-wrap {
  padding: var(--sc-space-md);
}

.agh-review-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--sc-space-lg);
}

.agh-review-pre {
  background: var(--sc-light-grey);
  padding: var(--sc-space-lg);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: var(--sc-space-lg);
}

.agh-review-note {
  padding: var(--sc-space-md);
  background: var(--sc-accent-light);
  border-left: 4px solid var(--sc-accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
}

/* Confirmation */
.agh-enroll-confirm-block {
  text-align: center;
  padding: var(--sc-space-2xl);
}

.agh-enroll-confirm-block .icon-done {
  font-size: 4rem;
  color: var(--sc-success);
  display: block;
  margin-bottom: var(--sc-space-md);
}

.agh-pay-info {
  color: var(--sc-text-secondary);
  margin-bottom: var(--sc-space-lg);
}

@media (max-width: 700px) {
  .agh-enroll-fields,
  .agh-enroll-row,
  .agh-subjects-list,
  .agh-discover-checks { grid-template-columns: 1fr; }
  .agh-stepper { gap: var(--sc-space-lg); }
  .agh-step-bar { width: 30px; }
  .agh-checkbox-list { flex-direction: column; gap: var(--sc-space-sm); }
}

/* ========================================
   PERSONALIZATION
======================================== */
body.visitor-student .for-parent { display: none !important; }
body.visitor-parent .for-student { display: none !important; }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes sc-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sc-animate-in {
  opacity: 0;
  animation: sc-fade-in 0.6s ease forwards;
}

.sc-animate-delay-1 { animation-delay: 0.1s; }
.sc-animate-delay-2 { animation-delay: 0.2s; }
.sc-animate-delay-3 { animation-delay: 0.3s; }
