/* ===================================================
   استمارة كورس البرمجة الشامل - الهوية البصرية (Red & Chrome)
   Designed with Crimson Red, Chrome White, and Obsidian Dark
   =================================================== */

:root {
  --bg-main: #08080c;
  --bg-card: rgba(18, 18, 25, 0.9);
  --bg-card-hover: rgba(26, 26, 36, 0.95);
  --red-primary: #e50914;
  --red-bright: #ff1a2e;
  --red-glow: rgba(229, 9, 20, 0.35);
  --red-border: rgba(229, 9, 20, 0.4);
  --red-grad: linear-gradient(135deg, #ff2a3f 0%, #e50914 50%, #99000a 100%);
  --chrome-grad: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --whatsapp-green: #25d366;
  --whatsapp-hover: #128c7e;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ambient Red Lights */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-top {
  top: -180px;
  right: -100px;
  background: radial-gradient(circle, #e50914, transparent 70%);
}
.glow-bottom {
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle, #ff2a3f, transparent 70%);
}

.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 24px 16px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header & Brand Identity */
.brand-header {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
}

.brand-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: rgba(18, 18, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  backdrop-filter: blur(12px);
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5));
}

.instructor-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red-bright);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

.instructor-info {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.instructor-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}

.instructor-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.course-title {
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
}

.red-gradient-text {
  background: var(--red-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}

.course-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 24px;
}

/* Stepper Progress Bar */
.stepper-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #14141e;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  background: var(--red-grad);
  border-color: #ff4d5e;
  color: #fff;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
  transform: scale(1.1);
}

.step-item.active .step-label {
  color: #fff;
}

.step-item.completed .step-circle {
  background: #10b981;
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.step-item.completed .step-label {
  color: #10b981;
}

.step-line {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px -20px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-line.filled {
  background: var(--red-primary);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
}

/* Wizard Main Card */
.wizard-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--red-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  backdrop-filter: blur(16px);
}

.step-section {
  display: none;
  animation: fadeInStep 0.35s ease-out forwards;
}

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

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

.section-heading {
  margin-bottom: 24px;
  text-align: right;
}

.heading-tag {
  display: inline-block;
  background: rgba(229, 9, 20, 0.15);
  color: #ff4d5e;
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.section-heading p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Form Styles */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
}

.required {
  color: var(--red-bright);
}

.field-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  right: 14px;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}

.input-box input, .input-box select {
  width: 100%;
  background: rgba(12, 12, 18, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 13px 44px 13px 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.input-box.ltr-input input {
  padding: 13px 44px 13px 14px;
}

.input-box input:focus, .input-box select:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
  background: rgba(16, 16, 24, 0.95);
}

.input-box input::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

/* Custom Select Dropdown for Age */
.select-box select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px;
}

.select-box select option {
  background: #121218;
  color: #fff;
}

/* Province Custom Picker */
.province-custom-picker {
  position: relative;
}

.dropdown-caret {
  position: absolute;
  left: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
}

.province-options-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #14141e;
  border: 1px solid var(--red-border);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  animation: fadeInStep 0.15s ease-out;
}

.prov-option {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #e2e8f0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
}

.prov-option:hover, .prov-option.selected {
  background: rgba(229, 9, 20, 0.2);
  color: #ff4d5e;
  font-weight: 700;
  padding-right: 18px;
}

.prov-option:last-child {
  border-bottom: none;
}

/* Occupation Radio Cards */
.job-options-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.job-radio-card {
  cursor: pointer;
  position: relative;
}

.job-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.job-radio-card .card-inner {
  background: rgba(15, 15, 22, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.job-icon {
  font-size: 1.5rem;
}

.job-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
}

.job-radio-card input:checked + .card-inner {
  border-color: var(--red-bright);
  background: rgba(229, 9, 20, 0.15);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
}

.job-radio-card input:checked + .card-inner .job-name {
  color: #fff;
  font-weight: 800;
}

/* Buttons and Actions */
.actions-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.actions-row.two-buttons {
  display: flex;
  align-items: center;
}

.btn-primary-red {
  flex: 1;
  background: var(--red-grad);
  border: none;
  color: #fff;
  padding: 15px 22px;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--font-family);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
  transition: all 0.2s ease;
}

.btn-primary-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6);
}

.btn-primary-red.full-btn {
  width: 100%;
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-family);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

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

/* STEP 2: Course Details Visuals */
.details-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.details-hero-box {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(18, 18, 25, 0.9) 100%);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.hero-q {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hero-a {
  font-size: 0.92rem;
  color: #fca5a5;
  font-weight: 700;
}

.tech-stack-card, .features-list-card {
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
}

.card-title-badge {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.tech-pill.highlight {
  background: rgba(229, 9, 20, 0.2);
  border-color: var(--red-border);
  color: #ff6b7a;
  font-weight: 800;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
}

.features-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.li-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.li-text strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}

.li-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.goal-highlight-box {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px dashed rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.goal-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.goal-text strong {
  color: #ff4d5e;
}

/* STEP 3: Pricing Card */
.pricing-card {
  background: linear-gradient(135deg, rgba(30, 15, 20, 0.9) 0%, rgba(15, 15, 22, 0.95) 100%);
  border: 2px solid var(--red-bright);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 9, 20, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.discount-badge-top {
  display: inline-block;
  background: var(--red-grad);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.pricing-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 14px;
}

.price-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.p-value.strike {
  font-size: 1.3rem;
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 700;
}

.p-value.glowing {
  font-size: 2.1rem;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.p-value small {
  font-size: 1rem;
  font-weight: 700;
}

.price-arrow-div {
  font-size: 1.6rem;
  color: var(--red-bright);
}

.savings-tag {
  font-size: 0.95rem;
  color: #4ade80;
  font-weight: 800;
}

/* Review Summary Card */
.review-data-card {
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #cbd5e1;
}

.edit-link-btn {
  background: none;
  border: none;
  color: #ff4d5e;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family);
  text-decoration: underline;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: var(--radius-md);
}

.review-item.full {
  grid-column: span 2;
}

.r-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.r-val {
  font-size: 0.92rem;
  color: #fff;
}

/* WhatsApp Submit Button */
.btn-whatsapp-glow {
  flex: 1.8;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  animation: pulseWa 2s infinite;
  transition: all 0.2s ease;
}

.btn-whatsapp-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.guarantee-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 14px;
}

.site-footer {
  margin-top: 24px;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 580px) {
  .course-title {
    font-size: 1.6rem;
  }
  .brand-top-row {
    padding: 8px 12px;
  }
  .brand-logo {
    height: 40px;
  }
  .instructor-avatar {
    width: 38px;
    height: 38px;
  }
  .stepper-wrapper {
    max-width: 100%;
  }
  .step-label {
    font-size: 0.68rem;
  }
  .wizard-card {
    padding: 22px 16px;
  }
  .job-options-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .job-radio-card .card-inner {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
    gap: 12px;
  }
  .pricing-comparison {
    flex-direction: column;
    gap: 8px;
  }
  .price-arrow-div {
    transform: rotate(90deg);
  }
  .actions-row.two-buttons {
    flex-direction: column;
  }
  .btn-whatsapp-glow, .btn-primary-red, .btn-secondary-dark {
    width: 100%;
  }
}
