/* Scratchathon Registration & Submission Page Styles */
/* Following STEM Ground design system patterns */

/* Import STEM Ground CSS Variables */
:root {
  /* Modern Teal & Blue Palette */
  --primary-color: #0093FF;
  --primary-light: #00E0FF;
  --primary-dark: #0066CC;
  --primary-darker: #004C99;
  --secondary-color: #0066cc;
  --bg-light: #F0F8FF;
  --bg-lighter: #f8fafa;
  
  /* Text Colors */
  --text-dark: #3a4a5a;
  --text-muted: #5d6b7c;
  --text-light: #7d8a98;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(42, 157, 143, 0.07);
  --shadow-md: 0 4px 16px rgba(42, 157, 143, 0.1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Fonts */
  --font-heading: 'Abril Fatface', serif;
  --font-body: 'Lato', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===== MAIN CONTAINER ===== */
.scratchathon-container {
    min-height: 100vh;
    background-color: var(--bg-light);
    padding: 0;
}

/* ===== FLOATING TOP CONTAINER ===== */
.floating-top-container {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    border-bottom: 2px solid rgba(0, 147, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 16px 0;
    backdrop-filter: blur(10px);
    transition: top 0.3s ease, transform 0.3s ease;
}

/* Header scroll state adjustments */
.floating-top-container.header-scrolled {
    top: 75px; /* Adjusted for scrolled header height */
}

.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-left {
    flex: 1;
}

.top-announcement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.top-announcement i {
    color: #e74c3c;
    font-size: 1.1rem;
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.top-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.top-step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.top-step-btn i {
    font-size: 1rem;
}

/* Step 1: Register Button - Yellow Theme (like Register Now) */
.top-step-btn[data-tab="register"] {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.25);
}

.top-step-btn[data-tab="register"]:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.35);
}

/* Step 2: Submit Button - Blue Theme (like Join Telegram) */
.top-step-btn[data-tab="submit"] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.25);
}

.top-step-btn[data-tab="submit"]:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.35);
}

/* Shimmer effect for top step buttons */
.top-step-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.top-step-btn:hover::before {
    left: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */

/* Main Hero Container */
.scratchathon-hero.main-hero {
  background: #fbfbfd;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  color: #1d1d1f;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

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

/* Hero Content */
.scratchathon-hero .container {
  position: relative;
  z-index: 3;
  padding: 0;
}

.hero-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(0, 147, 255, 0.2);
  border: 1px solid rgba(0, 147, 255, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease-out;
}

.hero-badge i {
  color: #ffd700;
  font-size: 1rem;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.title-main {
  display: block;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1.0;
  background: linear-gradient(90deg, #FF2D92 0%, #5856D6 16.67%, #007AFF 33.33%, #34C759 50%, #FFD60A 66.67%, #FF9500 83.33%, #FF2D92 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  position: relative;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: wwdcGradient 8s linear infinite;
  word-break: normal;
}

/* SCRATCHATHON Logo Styles */
.scratch-logo-container {
  margin-bottom: 1rem;
  text-align: center;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.scratch-logo {
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.2));
  animation: logoPop 2s ease-out;
  transform-origin: center;
}

@keyframes logoPop {
  0% {
    transform: scale(0.3) rotate(-5deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.95) rotate(-1deg);
    opacity: 0.9;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .scratch-logo {
    max-width: 550px;
  }
}

@media (max-width: 480px) {
  .scratch-logo {
    max-width: 400px;
    margin-left: -5px;
  }
}

/* Hero Subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  color: #86868b;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.4s both;
}



/* Hero Actions */
.hero-actions {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.action-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.action-intro h3 {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 147, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0093FF 0%, #0066CC 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1d1d1f;
  font-weight: 500;
  line-height: 1.4;
}

.process-note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #86868b;
  margin: 1rem 0 0 0;
  font-style: italic;
}

.action-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 1rem;
}



/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  min-width: 180px;
  justify-content: center;
}

.btn-primary {
  background: #007AFF;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.25);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.35);
  color: white;
}

.btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
  font-size: 1rem !important;
  padding: 1rem 2rem !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: #007AFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.15);
  color: #495057;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}



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

/* Tab navigation removed - using hero action cards instead */

/* ===== TAB CONTENT ===== */
.tab-content {
    padding: 2rem 0 3rem 0;
    background: var(--bg-light);
    position: relative;
    margin-top: -50px; /* Pull closer to hero to eliminate gap */
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, 
        rgba(0, 147, 255, 0.05) 0%, 
        transparent 100%);
    pointer-events: none;
}

.tab-panel {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 30px;
}

.tab-panel.active {
    display: block;
}

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

/* ===== MODERN FORM STYLING ===== */
.form-wrapper {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.form-header {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.form-header::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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
    color: white;
}

.form-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-lighter);
    border-bottom: 1px solid rgba(0, 147, 255, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: var(--transition);
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 147, 255, 0.1);
    border: 2px solid rgba(0, 147, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(0, 147, 255, 0.2);
    margin: 0 1rem;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 2rem;
    animation: slideIn 0.3s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 147, 255, 0.1);
}

.step-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step-header h3 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.step-header p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

/* Form Groups */
.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
}

/* Input Wrappers */
.input-wrapper {
    position: relative;
}

.input-wrapper input,
.textarea-wrapper textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Select Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 147, 255, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.select-wrapper:hover .select-arrow {
    color: var(--primary-color);
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
}

.radio-option input[type="radio"] {
    display: none;
}

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

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

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

.radio-label {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    padding: 2rem;
    background: var(--bg-lighter);
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--bg-lighter);
    border-top: 1px solid rgba(0, 147, 255, 0.1);
    gap: 1rem;
}

.step-actions.center {
    justify-content: center;
}

.step-actions.right {
    justify-content: flex-end;
}

/* Auth Section */
.auth-section {
    padding: 2rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
}

.auth-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.auth-actions {
    text-align: center;
    padding: 1.5rem 0;
}

/* Project Section */
.project-section {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 147, 255, 0.1);
}

.submission-actions {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 147, 255, 0.1);
    margin-top: 2rem;
}

/* Optional Section */
.optional-section {
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.section-toggle {
    padding: 1.5rem;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.section-toggle:hover {
    background: rgba(0, 147, 255, 0.05);
}

.section-toggle h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-toggle h4 i {
    color: var(--primary-color);
}

.toggle-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 255, 0.3);
}

.toggle-btn.expanded {
    background: var(--text-muted);
}

.toggle-btn.expanded i {
    transform: rotate(45deg);
}

/* Collapsible Content */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.collapsible-content.expanded {
    max-height: 500px;
    padding: 1.5rem;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 147, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 147, 255, 0.15);
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 147, 255, 0.3);
}

.upload-text p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-text small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* File Preview */
.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 147, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.file-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Textarea Styling */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Word Counter Styling */
.word-counter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.word-counter.warning {
    color: #f39c12;
}

.word-counter.error {
    color: #dc3545;
    font-weight: 600;
}

.word-counter #word-count {
    font-weight: 700;
    margin-right: 2px;
}

.word-counter.warning #word-count {
    color: #e67e22;
}

.word-counter.error #word-count {
    color: #c0392b;
}

/* Form Validation Styling */
.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error i {
    font-size: 0.8rem;
}

.input-wrapper.error input,
.textarea-wrapper.error textarea,
.select-wrapper.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Remove success states - keep it simple with just focus and error */
.input-wrapper input:focus,
.textarea-wrapper textarea:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-lighter);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

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

.btn i {
    font-size: 1.1rem;
}

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

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    transform: translateX(100%);
    transition: var(--transition);
}

.message-container.show {
    transform: translateX(0);
}

.message-content {
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
        gap: 1rem;
    }
    
.message-content.error {
    border-left-color: #dc3545;
}

.message-content.success {
    border-left-color: var(--primary-color);
}

.message-content.warning {
    border-left-color: #ffc107;
}

.message-close {
    background: none;
    border: none;
        font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.message-close:hover {
    color: var(--text-dark);
}

/* Enhanced Action Cards for Navigation */
.action-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 147, 255, 0.3);
}

.action-card.active {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 147, 255, 0.4);
}

.action-card.active .card-icon {
    animation: pulse 2s infinite;
}

/* Success Screen */
.success-screen {
    display: none;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 3rem auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: successSlideIn 0.5s ease-out;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    animation: successPulse 2s infinite;
}

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

.success-screen h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pin-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid #dee2e6;
}

.pin-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pin-display {
    background: var(--primary-color);
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    letter-spacing: 3px;
    box-shadow: 0 4px 12px rgba(0, 147, 255, 0.3);
}

.pin-warning {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.next-steps {
    text-align: left;
    margin: 1.5rem 0;
}

.next-steps h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.next-steps ol {
    padding-left: 1.5rem;
}

.next-steps li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 180px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-top-container {
        padding: 8px 0;
    }
    
    .top-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .top-left {
        display: block;
    }
    
    .top-announcement {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .top-right {
        gap: 6px;
        justify-content: center;
    }
    
    .top-step-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        border-radius: 16px;
    }
    
    .top-step-btn i {
        font-size: 0.8rem;
    }
    
    .scratchathon-hero.main-hero {
        padding: 100px 0 80px;
        min-height: 50vh;
    }
    
    .action-intro h3 {
        font-size: 1.6rem;
    }
    
    .process-steps {
        gap: 0.75rem;
        margin: 1.25rem 0;
    }
    
    .step-item {
        padding: 0.8rem 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .step-text {
        font-size: 0.95rem;
    }
    
    .process-note {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .floating-top-container {
        padding: 6px 0;
    }
    
    .top-announcement {
        font-size: 0.75rem;
    }
    
    .top-step-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 14px;
    }
    
    .top-step-btn i {
        font-size: 0.75rem;
    }
    
    .action-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        min-width: 120px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .title-main {
        font-size: 2.8rem;
        letter-spacing: -1px;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px; /* Reduce container padding on tablets */
    }
    
    .tab-content {
        margin-top: -30px; /* Less aggressive pull on mobile */
        padding: 1.5rem 0 2rem 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-indicator {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .progress-line {
        display: none;
    }
    
    .form-wrapper {
        margin: 0.75rem; /* Slightly reduce margin */
        border-radius: 16px;
    }
    
    .form-header {
        padding: 2rem 1.5rem;
    }
    
    .form-step {
        padding: 1.5rem;
    }
    
    .step-actions {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .auth-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .btn {
        min-width: 140px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    
    .title-main {
        font-size: 2.4rem;
        letter-spacing: 0;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-description p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 10px; /* Further reduce container padding on small mobile */
    }
    
    .tab-content {
        margin-top: -20px; /* Even less aggressive pull on small mobile */
        padding: 1rem 0 1.5rem 0;
    }
    
    .form-wrapper {
        margin: 0.5rem; /* Minimal margin for small screens */
        border-radius: 12px;
    }
    
    .form-header {
        padding: 1.5rem 1rem; /* Reduce header padding */
    }
    
    .form-step {
        padding: 1rem; /* Reduce step padding */
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-header h3 {
        font-size: 1.4rem;
    }
    
    .progress-indicator {
        padding: 1rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .success-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .success-content h2 {
        font-size: 2rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px; /* Minimal container padding for very small screens */
    }
    
    .form-wrapper {
        margin: 0.25rem; /* Very minimal margin */
        border-radius: 8px;
    }
    
    .form-header {
        padding: 1rem 0.75rem; /* Further reduce header padding */
    }
    
    .form-step {
        padding: 0.75rem; /* Further reduce step padding */
    }
    
    .form-group {
        margin-bottom: 1rem; /* Reduce spacing between form groups */
    }
    
    .btn {
        padding: 0.75rem 1.5rem; /* Smaller buttons */
        font-size: 0.9rem;
    }
}

/* Submission Notice Styles */
.submission-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notice-icon {
    color: #856404;
    font-size: 1.5rem;
    margin-top: 2px;
}

.notice-content h4 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.notice-content p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
}

/* PIN Help Styles */
.pin-help {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.help-content p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.help-content i {
    color: #0093FF;
    margin-right: 5px;
}

/* Resend PIN Button */
.btn-outline {
    background: transparent;
    border: 2px solid #0093FF;
    color: #0093FF;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background: #0093FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 147, 255, 0.3);
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Confirmation Dialog Styles */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.dialog-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialog-header {
    padding: 25px 30px 15px 30px;
    border-bottom: 1px solid #eee;
}

.dialog-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dialog-header i {
    color: #ffc107;
}

.dialog-body {
    padding: 25px 30px;
}

.dialog-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.confirmation-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.confirmation-details p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.dialog-actions {
    padding: 15px 30px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Submission Success Screen - Match Registration Success Screen */
#submission-success-screen {
    background: var(--bg-light);
}

#submission-success-screen .success-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    animation: successPulse 2s infinite;
}

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

#submission-success-screen .submission-details {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
}

#submission-success-screen .submission-details h3 {
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.submission-details {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    color: var(--text-muted);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--text-dark);
}

.important-reminder {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.important-reminder h3 {
    font-family: var(--font-heading);
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.important-reminder p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .submission-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .auth-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .dialog-content {
        width: 95%;
        margin: 20px;
    }
    
    .dialog-actions {
        flex-direction: column;
    }
    
    .dialog-actions .btn {
        width: 100%;
    }
    
    .submission-details {
        padding: 20px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
}

/* Loading Spinner Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.loading-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text h3 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.loading-text p {
    color: var(--text-muted);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.upload-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e3f2fd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196f3, #64b5f6);
    border-radius: 4px;
    width: 0%;
    animation: progressPulse 2s ease-in-out infinite;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

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

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* Mobile responsive for loading overlay */
@media (max-width: 768px) {
    .loading-content {
        padding: 2rem;
        margin: 20px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .loading-text h3 {
        font-size: 1.3rem;
    }
    
    .loading-text p {
        font-size: 0.9rem;
    }
}

/* ===== CONSENT SECTION STYLES ===== */
.consent-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 147, 255, 0.1);
}

.consent-section .section-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-section .section-header p {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.consent-checkboxes {
    margin: 20px 0;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    padding: 12px 0;
    transition: var(--transition);
}

.checkbox-option:hover {
    background-color: rgba(0, 147, 255, 0.02);
    border-radius: 8px;
    padding: 12px 8px;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: var(--transition);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-link i {
    font-size: 0.8rem;
}

.parental-consent {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.parental-consent .checkbox-label {
    color: #856404;
    font-weight: 500;
}

.consent-note {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.consent-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.consent-note i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Checkbox error states */
.checkbox-option.error .checkbox-custom {
    border-color: #dc3545;
    animation: shake 0.3s ease-in-out;
}

.checkbox-option.error .checkbox-label {
    color: #dc3545;
}

.consent-section.has-errors {
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.15);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Submit button disabled state */
.btn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Mobile responsiveness for consent section */
@media (max-width: 768px) {
    .consent-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .checkbox-option {
        padding: 10px 5px;
    }
    
    .checkbox-option:hover {
        padding: 10px 5px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .consent-section .section-header h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .consent-section {
        padding: 15px 10px;
    }
    
    .checkbox-custom {
        width: 18px;
        height: 18px;
    }
    
    .checkbox-custom::after {
        top: 1px;
        left: 4px;
        width: 5px;
        height: 9px;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .legal-link i {
        display: none;
    }
}


 