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

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(20, 29, 47, 0.75);
  --border-glow: rgba(0, 242, 254, 0.3);
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-gold: #ffb703;
  --accent-purple: #7209b7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(114, 9, 183, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.08) 0%, transparent 60%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.app-header {
  backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.brand-branch {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--accent-cyan);
}

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

.screen-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.4s ease-out;
}

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

/* Typography & Buttons */
.title-primary {
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #040914;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.5);
  background: linear-gradient(135deg, #26f5ff, #62b5fe);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Video Frame Placeholder */
.video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.video-box iframe, .video-box video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

.play-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

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

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

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.form-select option {
  background-color: #0f172a;
  color: #fff;
}

/* Quiz UI */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quiz-step-count {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.quiz-question-text {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #ffffff;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.quiz-option-card {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.quiz-option-card:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  transform: translateX(6px);
}

.quiz-option-card.selected {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.option-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: #f1f5f9;
}

.option-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
  white-space: nowrap;
}

/* Results Screen */
.result-badge-card {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(114, 9, 183, 0.2), rgba(0, 242, 254, 0.15));
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 12px;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-gold);
  color: #000;
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: 20px;
  margin-bottom: 14px;
}

.parent-explanation-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-gold);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  line-height: 1.6;
  color: #e2e8f0;
}

.ticket-box {
  background: radial-gradient(circle, rgba(255, 183, 3, 0.15) 0%, rgba(9, 13, 22, 0.8) 100%);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.ticket-number {
  font-family: 'Courier New', monospace;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  margin: 10px 0;
  text-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

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

/* Footer */
.app-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 24px;
  background: rgba(9, 13, 22, 0.95);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-branch-info {
  line-height: 1.6;
}

.hidden {
  display: none !important;
}
