/* GDG Cairo Public Attendee Registration — Single Page Production Design System */

:root {
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC04;
  --google-green: #34A853;
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Body & Layout */
body.public-portal {
  background: radial-gradient(circle at 10% 10%, rgba(66, 133, 244, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(52, 168, 83, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(234, 67, 53, 0.04) 0%, transparent 60%);
  min-height: 100vh;
  min-height: 100dvh;
}

.dark body.public-portal {
  background: radial-gradient(circle at 10% 10%, rgba(66, 133, 244, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 90% 90%, rgba(52, 168, 83, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(251, 188, 4, 0.04) 0%, transparent 60%),
              #0B0E14;
}

/* Top Progress Line (3px - Google Gradient) */
.progress-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(229, 231, 235, 0.5);
  overflow: hidden;
}

.dark .progress-bar-track {
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass Card Container */
.reg-glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
}

.dark .reg-glass-card {
  background: rgba(18, 22, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

/* Form Section Header */
.form-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  margin-bottom: 16px;
}

.dark .form-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Form Controls */
.reg-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(209, 213, 219, 0.8);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  transition: all 0.18s ease;
}

.dark .reg-input {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F9FAFB;
}

.reg-input:focus {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.reg-input.input-error {
  border-color: var(--google-red) !important;
  box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.2) !important;
}

.reg-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(209, 213, 219, 0.8);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  transition: all 0.18s ease;
  resize: vertical;
}

.dark .reg-textarea {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F9FAFB;
}

.reg-textarea:focus {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

.reg-textarea.input-error {
  border-color: var(--google-red) !important;
  box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.2) !important;
}

/* Choice Cards (Radio & Checkboxes) */
.reg-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(229, 231, 235, 0.8);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .reg-choice-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.reg-choice-card:hover {
  border-color: var(--google-blue);
  background: rgba(66, 133, 244, 0.04);
}

.reg-choice-card.selected {
  border-color: var(--google-blue);
  background: rgba(66, 133, 244, 0.08);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.15);
}

.dark .reg-choice-card.selected {
  border-color: var(--google-blue);
  background: rgba(66, 133, 244, 0.18);
  box-shadow: 0 4px 18px rgba(66, 133, 244, 0.25);
}

.reg-choice-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.reg-choice-card.selected .reg-choice-indicator {
  border-color: var(--google-blue);
  background-color: var(--google-blue);
}

.reg-choice-indicator-checkbox {
  border-radius: 6px;
}

/* Conditional Field Container Motion */
.conditional-container {
  overflow: hidden;
  transition: max-height 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease;
  will-change: max-height, opacity;
}

.conditional-container.hidden-conditional {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}

.conditional-container.visible-conditional {
  max-height: 600px;
  opacity: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .conditional-container {
    transition: none !important;
  }
  .progress-bar-fill {
    transition: none !important;
  }
}
