/**
 * Islamic Theme Stylesheet - Fintech Style
 * Modern, professional design with Islamic identity
 */

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-image: url("../images/islamic-patterns/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0;
  overflow: hidden;
  z-index: 1;
  transform: none !important;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 120, 87, 0.12) 0%,
    rgba(6, 78, 59, 0.18) 100%
  );
  z-index: 1;
  animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: right;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease-out;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.hero-book-icon {
  width: 120px;
  height: 120px;
  margin: 0 0 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 253, 245, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(4, 120, 87, 0.2);
  animation: float 3s ease-in-out infinite, smoothGlow 4s ease-in-out infinite;
  border: 2px solid rgba(16, 185, 129, 0.2);
  transition: transform 0.3s ease;
}

@keyframes smoothGlow {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(4, 120, 87, 0.2);
  }
  50% {
    box-shadow: 0 12px 40px rgba(4, 120, 87, 0.35);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-book-icon i {
  font-size: 4rem;
  color: var(--primary-green);
  filter: drop-shadow(0 4px 8px rgba(4, 120, 87, 0.3));
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-green);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  font-family: "Cairo", sans-serif;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  color: var(--primary-green);
  font-family: "Noto Naskh Arabic", serif;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-left: auto;
  direction: rtl;
}

/* ========================================
   Competition Levels Section
   ======================================== */
.levels-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
  line-height: 1.3;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-green),
    transparent
  );
  border-radius: 2px;
}

.section-description {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 400;
}

.level-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 2px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--soft-green));
  transform: scaleX(0);
  transition: var(--transition);
}

.level-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
  border-color: var(--primary-green);
}

.level-card:hover::before {
  transform: scaleX(1);
}

.level-card-featured {
  background: linear-gradient(135deg, var(--mint-bg) 0%, var(--white) 100%);
  border-color: var(--primary-green);
  box-shadow: var(--box-shadow-lg);
}

.level-card-featured::before {
  transform: scaleX(1);
}

.level-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 16px;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.level-card-featured .level-icon {
  background: linear-gradient(
    135deg,
    var(--soft-green) 0%,
    var(--primary-green) 100%
  );
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
}

.level-name {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.level-juz {
  font-size: 1.25rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.level-description {
  font-size: 1.0625rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  flex-grow: 1;
  font-weight: 400;
}

.level-status {
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-open {
  background: var(--mint-bg);
  color: var(--primary-green);
}

.badge-closed {
  background: var(--gray-200);
  color: var(--text-gray);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-bg) 100%);
}

.info-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-green);
}

.info-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--mint-bg) 0%,
    var(--light-green) 100%
  );
  border-radius: 18px;
  color: var(--primary-green);
  font-size: 2rem;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.info-text {
  font-size: 1.125rem;
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   Rules Section
   ======================================== */
.rules-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.rule-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid var(--gray-200);
}

.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-green);
}

.rule-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 16px;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.rule-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.rule-text {
  font-size: 1.0625rem;
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   Prizes Section
   ======================================== */
.prizes-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--mint-bg) 0%, var(--white) 100%);
}

.prize-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.prize-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-green);
}

.prize-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 18px;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.prize-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.prize-text {
  font-size: 1.125rem;
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  left: 20px;
  max-width: 500px;
  width: auto;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-xl);
  z-index: 10000;
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .flash-message {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: 100%;
    width: calc(100% - 20px);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .flash-message .flash-icon {
    font-size: 1.25rem;
  }

  .flash-message .flash-close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    margin-right: 0;
  }

  .flash-message span {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
  }
}

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

.flash-message .flash-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
}

.flash-message .flash-close {
  margin-right: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.flash-message .flash-close:hover {
  opacity: 1;
}

.flash-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #2e7d32 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-error {
  background: linear-gradient(135deg, var(--error-red) 0%, #c62828 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    padding: 0;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 0.875rem;
  }

  .hero-book-icon {
    width: 85px;
    height: 85px;
    margin: 0 0 1.5rem auto;
  }

  .hero-book-icon i {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Reduce bubbles on mobile for better performance */
  .hero-bubble.bubble-xlarge {
    display: none;
  }

  .hero-bubble.bubble-large {
    width: 60px;
    height: 60px;
  }

  .hero-bubble.bubble-medium {
    width: 50px;
    height: 50px;
  }

  .hero-bubble.bubble-small {
    width: 35px;
    height: 35px;
  }

  .section-title-white {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .levels-section,
  .about-section,
  .rules-section,
  .prizes-section,
  .motivation-section,
  .parents-section,
  .honor-section,
  .daily-section,
  .excellence-section,
  .teachers-section,
  .lifestyle-section,
  .dua-section {
    padding: 4rem 0;
  }

  .level-card,
  .info-card,
  .rule-card,
  .prize-card {
    padding: 2.5rem 2rem;
  }

  .level-name {
    font-size: 1.375rem;
  }

  .level-juz {
    font-size: 1rem;
  }

  .level-description {
    font-size: 0.9375rem;
  }

  .info-title,
  .rule-title,
  .prize-title {
    font-size: 1.25rem;
  }

  .info-text,
  .rule-text {
    font-size: 0.9375rem;
  }

  .quran-verse {
    font-size: 1.125rem;
    line-height: 2.2;
  }

  .verse-reference {
    font-size: 0.875rem;
  }

  .hadith-quote {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hadith-reference {
    font-size: 0.8125rem;
  }

  .hadith-quote-large {
    font-size: 1.125rem;
    line-height: 2.2;
  }

  .motivation-content,
  .parents-content,
  .daily-content,
  .lifestyle-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .verse-hadith-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .honor-badge-intro {
    padding: 2rem 1.5rem;
  }

  .honor-quote {
    font-size: 1rem;
  }

  .honor-message {
    font-size: 1.0625rem;
  }

  .motivation-text-large {
    font-size: 1.25rem;
  }

  .motivation-description {
    font-size: 1rem;
  }

  .feature-item,
  .lifestyle-item {
    flex-direction: column;
    text-align: center;
  }

  .streak-counter,
  .journey-card {
    min-width: auto;
    width: 100%;
    padding: 2rem;
  }

  .dua-card {
    padding: 2rem 1.5rem;
  }

  .dua-verse {
    font-size: 1.5rem;
  }

  .dua-icon {
    font-size: 3rem;
  }

  .flash-message {
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    padding: 0;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.375rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-tagline {
    font-size: 0.8125rem;
  }

  .hero-book-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 1rem auto;
  }

  .hero-book-icon i {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-title-white {
    font-size: 1.375rem;
  }

  .section-description {
    font-size: 0.9375rem;
  }

  .level-card,
  .info-card,
  .rule-card,
  .prize-card,
  .honor-card,
  .path-card,
  .teacher-feature {
    padding: 1.5rem 1rem;
  }

  .level-name {
    font-size: 1.125rem;
  }

  .level-juz {
    font-size: 0.9375rem;
  }

  .level-description {
    font-size: 0.875rem;
  }

  .info-title,
  .rule-title,
  .prize-title {
    font-size: 1.125rem;
  }

  .info-text,
  .rule-text {
    font-size: 0.875rem;
  }

  .quran-verse {
    font-size: 1rem;
  }

  .verse-reference {
    font-size: 0.8125rem;
  }

  .hadith-quote {
    font-size: 0.9375rem;
  }

  .hadith-reference {
    font-size: 0.75rem;
  }

  .hadith-quote-large {
    font-size: 1rem;
  }

  .verse-hadith-card,
  .honor-badge-intro,
  .honor-hadith-intro,
  .excellence-hadith,
  .teachers-hadith {
    padding: 1.5rem 1rem;
  }

  .honor-quote {
    font-size: 0.9375rem;
  }

  .honor-message {
    font-size: 1rem;
  }

  .motivation-text-large {
    font-size: 1.125rem;
  }

  .motivation-description {
    font-size: 0.9375rem;
  }

  .dua-card {
    padding: 1.5rem 1rem;
  }

  .dua-verse {
    font-size: 1rem;
  }

  .dua-text p {
    font-size: 0.875rem;
  }

  .dua-icon {
    font-size: 2rem;
  }

  .lifestyle-message {
    font-size: 1.25rem;
  }

  .lifestyle-item h5 {
    font-size: 1rem;
  }

  .lifestyle-item p {
    font-size: 0.875rem;
  }

  .journey-card h3 {
    font-size: 1.5rem;
  }

  .journey-card p {
    font-size: 0.9375rem;
  }

  .registration-section {
    padding: 4.5rem 0 3rem;
  }

  .registration-header {
    padding-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .competition-info {
    font-size: 0.9375rem;
  }

  .registration-instructions {
    padding: 2rem 1.5rem;
  }

  .registration-instructions h2 {
    font-size: 1.25rem;
  }

  .registration-instructions li {
    font-size: 0.875rem;
    padding-right: 2rem;
  }


  .form-section-title {
    font-size: 1rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    font-size: 0.9375rem;
    padding: 0.875rem 1.5rem;
  }

  .btn-level-register {
    font-size: 0.875rem;
  }

  .feature-content h4 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.875rem;
  }

  .parents-message {
    font-size: 0.9375rem;
  }

  .daily-message {
    font-size: 0.9375rem;
  }

  .goal-item span {
    font-size: 0.9375rem;
  }

  .streak-counter h3 {
    font-size: 1.75rem;
  }

  .streak-counter p {
    font-size: 0.9375rem;
  }

  .excellence-message {
    font-size: 1.125rem;
  }

  .path-card h4 {
    font-size: 1.25rem;
  }

  .path-card p {
    font-size: 0.9375rem;
  }

  .path-note {
    font-size: 0.8125rem;
  }

  .teachers-message {
    font-size: 1.125rem;
  }

  .teacher-feature h4 {
    font-size: 1.125rem;
  }

  .teacher-feature p {
    font-size: 0.875rem;
  }

  .honor-card h4 {
    font-size: 1.125rem;
  }

  .honor-card p {
    font-size: 0.875rem;
  }

  .honor-icon {
    font-size: 2rem;
  }

  .rewards-message {
    font-size: 1.25rem;
  }

  .rewards-reminder {
    font-size: 0.9375rem;
  }
}

/* ========================================
   Section 1: Why Memorize the Qur'an?
   ======================================== */
.motivation-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  z-index: 2;
  clear: both;
}

.verse-hadith-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quran-verse {
  font-size: 1.875rem;
  line-height: 2.6;
  color: var(--white) !important;
  font-family: "Noto Naskh Arabic", serif;
  text-align: right;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.verse-reference {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95) !important;
  text-align: left;
  margin-top: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hadith-quote {
  font-size: 1.625rem;
  line-height: 2.2;
  color: var(--white) !important;
  font-family: "Noto Naskh Arabic", serif;
  text-align: right;
  margin-top: 2rem;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.hadith-reference {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95) !important;
  text-align: left;
  margin-top: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.motivation-content {
  padding-right: 2rem;
}

.section-title-white {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.motivation-text-large {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.motivation-description {
  font-size: 1.1875rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.98) !important;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Section 2: Honor of the Hafiz
   ======================================== */
.honor-badge-intro {
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--mint-bg) 0%,
    var(--light-green) 100%
  );
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 2px solid var(--primary-green);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.1);
}

.honor-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

.honor-quote {
  font-size: 1.5rem;
  line-height: 2.2;
  color: var(--dark-green) !important;
  font-family: "Noto Naskh Arabic", serif;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.honor-reference {
  font-size: 1rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

.honor-message {
  font-size: 1.25rem;
  color: var(--dark-green) !important;
  font-weight: 700;
  margin-top: 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ========================================
   Section 3: Parents Section
   ======================================== */
.parents-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.parents-content {
  padding-right: 2rem;
}

.parents-verse,
.parents-hadith {
  background: var(--mint-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-right: 4px solid var(--primary-green);
}

.parents-verse .quran-verse,
.parents-hadith .hadith-quote {
  color: var(--dark-green) !important;
  font-weight: 600;
}

.parents-verse .verse-reference,
.parents-hadith .hadith-reference {
  color: var(--primary-green) !important;
  font-weight: 600;
}

.parents-message {
  font-size: 1.1875rem;
  line-height: 1.9;
  color: var(--text-dark) !important;
  margin-top: 1.75rem;
  font-weight: 400;
}

.parents-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(-5px);
  border-color: var(--primary-green);
  box-shadow: var(--box-shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 12px;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-content p {
  font-size: 1.0625rem;
  color: var(--text-dark) !important;
  margin: 0;
  line-height: 1.8;
  font-weight: 400;
}

/* ========================================
   Section 4: Honor Section
   ======================================== */
.honor-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-bg) 100%);
}

.honor-hadith-intro {
  text-align: center;
  margin-bottom: 3rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--primary-green);
}

.hadith-quote-large {
  font-size: 1.875rem;
  line-height: 2.6;
  color: var(--dark-green) !important;
  font-family: "Noto Naskh Arabic", serif;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.honor-hadith-intro .hadith-reference {
  color: var(--primary-green) !important;
  text-shadow: none;
}

.honor-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.honor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-green);
}

.honor-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 18px;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.honor-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.honor-card p {
  font-size: 1.0625rem;
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   Section 5: Daily Motivation Section
   ======================================== */
.daily-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.daily-content {
  padding-right: 2rem;
}

.daily-hadith {
  background: var(--mint-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-right: 4px solid var(--primary-green);
}

.daily-hadith .hadith-quote {
  color: var(--dark-green) !important;
  font-weight: 600;
}

.daily-hadith .hadith-reference {
  color: var(--primary-green) !important;
  font-weight: 600;
}

.daily-message {
  font-size: 1.1875rem;
  line-height: 1.9;
  color: var(--text-dark) !important;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.daily-goals {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.goal-item:hover {
  border-color: var(--primary-green);
  transform: translateX(-5px);
}

.goal-item i {
  color: var(--primary-green);
  font-size: 1.5rem;
}

.goal-item span {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--dark-green);
  line-height: 1.6;
}

.daily-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.streak-counter {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--box-shadow-xl);
  min-width: 280px;
}

.streak-counter i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.streak-counter h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.streak-counter p {
  font-size: 1.125rem;
  color: var(--white) !important;
  opacity: 0.95;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Section 6: Excellence Section
   ======================================== */
.excellence-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--mint-bg) 0%, var(--white) 100%);
}

.excellence-hadith {
  text-align: center;
  margin-bottom: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--primary-green);
}

.excellence-hadith .hadith-quote-large {
  color: var(--dark-green) !important;
}

.excellence-hadith .hadith-reference {
  color: var(--primary-green) !important;
  text-shadow: none;
}

.excellence-message {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green) !important;
  margin-bottom: 3.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1.5;
}

.path-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.path-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.path-advanced {
  border-color: var(--primary-green);
}

.path-beginner {
  border-color: var(--soft-green);
}

.path-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.path-advanced .path-icon {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
}

.path-beginner .path-icon {
  background: linear-gradient(
    135deg,
    var(--soft-green) 0%,
    var(--primary-green) 100%
  );
  color: var(--white);
}

.path-card h4 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.path-card p {
  font-size: 1.125rem;
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.path-note {
  font-size: 0.9375rem;
  color: var(--dark-green) !important;
  font-weight: 700;
  font-style: italic;
  margin: 0;
}

/* ========================================
   Section 7: Teachers Section
   ======================================== */
.teachers-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.teachers-hadith {
  text-align: center;
  margin-bottom: 2rem;
  background: var(--mint-bg);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 2px solid var(--primary-green);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.1);
}

.teachers-hadith .hadith-quote-large {
  color: var(--dark-green) !important;
  font-weight: 600;
}

.teachers-hadith .hadith-reference {
  color: var(--primary-green) !important;
  text-shadow: none;
}

.teachers-message {
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-green) !important;
  margin-bottom: 3.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1.5;
}

.teacher-feature {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 2px solid var(--gray-200);
}

.teacher-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-green);
}

.teacher-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: 16px;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.teacher-feature h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.teacher-feature p {
  font-size: 1.0625rem;
  color: var(--text-dark) !important;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   Section 8: Way of Life Section
   ======================================== */
.lifestyle-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-bg) 100%);
}

.lifestyle-content {
  padding-right: 2rem;
}

.lifestyle-verse {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-right: 4px solid var(--primary-green);
  box-shadow: var(--box-shadow);
}

.lifestyle-verse .quran-verse {
  color: var(--dark-green) !important;
  font-weight: 600;
}

.lifestyle-verse .verse-reference {
  color: var(--primary-green) !important;
  font-weight: 600;
}

.lifestyle-message {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--dark-green) !important;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1.4;
}

.lifestyle-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lifestyle-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.lifestyle-item:hover {
  transform: translateX(-5px);
  border-color: var(--primary-green);
  box-shadow: var(--box-shadow-lg);
}

.lifestyle-item i {
  color: var(--primary-green);
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.lifestyle-item h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.lifestyle-item p {
  font-size: 1.0625rem;
  color: var(--text-dark) !important;
  margin: 0;
  line-height: 1.8;
  font-weight: 400;
}

.lifestyle-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.journey-card {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--box-shadow-xl);
  min-width: 300px;
}

.journey-card i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.journey-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.journey-card p {
  font-size: 1.125rem;
  color: var(--white) !important;
  opacity: 0.95;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Section 9: Enhanced Prizes
   ======================================== */
.rewards-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.rewards-message {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--dark-green) !important;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1.4;
}

.rewards-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.rewards-reminder {
  font-size: 1.1875rem;
  color: var(--text-dark) !important;
  font-style: italic;
  font-weight: 500;
  line-height: 1.8;
}

.prize-note {
  font-size: 0.875rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ========================================
   Section 10: Du'a Section
   ======================================== */
.dua-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--dark-green) 0%,
    var(--primary-green) 100%
  );
  color: var(--white);
}

.dua-section .section-title {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dua-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.dua-icon {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.dua-verse {
  font-size: 2.25rem;
  line-height: 2.6;
  color: var(--white) !important;
  font-family: "Noto Naskh Arabic", serif;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

.dua-reference {
  font-size: 1rem;
  color: rgba(255, 255, 255, 1) !important;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dua-text {
  text-align: right;
  margin-bottom: 2rem;
}

.dua-text p {
  font-size: 1.25rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 1) !important;
  margin-bottom: 1.25rem;
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.dua-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Registration Section
   ======================================== */
.registration-section {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-bg) 100%);
  min-height: calc(100vh - 80px);
  margin-top: 0;
}

.registration-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
  scroll-margin-top: 100px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1rem;
  font-family: "Cairo", sans-serif;
}

.competition-info {
  font-size: 1.25rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0;
}

.registration-instructions {
  background: linear-gradient(
    135deg,
    var(--mint-bg) 0%,
    var(--light-green) 100%
  );
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
  border: 2px solid var(--primary-green);
  border-right: 5px solid var(--primary-green);
}

.registration-instructions h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cairo", sans-serif;
}

.registration-instructions h2::before {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-green);
  font-size: 1.5rem;
}

.registration-instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.registration-instructions li {
  padding: 0.875rem 2rem 0.875rem 0;
  color: var(--text-dark);
  font-size: 1.0625rem;
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(4, 120, 87, 0.2);
  transition: var(--transition);
}

.registration-instructions li:last-child {
  border-bottom: none;
}

.registration-instructions li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-green);
  font-size: 1rem;
  flex-shrink: 0;
}

.registration-instructions li:hover {
  color: var(--dark-green);
  padding-right: 0.5rem;
}

.registration-form {
  max-width: 100%;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-green);
  display: inline-block;
  font-family: "Cairo", sans-serif;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Multi-Step Form Styles
   ======================================== */
.multi-step-form-container {
  margin-top: 2rem;
}

/* Progress Indicator */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: var(--border-radius-lg);
  gap: 0.5rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(4, 120, 87, 0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  flex-direction: column;
  gap: 0.25rem;
}

.step-number i {
  font-size: 0.9rem;
  display: none; /* Hide on desktop */
}

.step-number-text {
  display: block;
}

.step-item.step-completed .step-number {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

.step-item.step-active .step-number {
  background: var(--white);
  border-color: var(--primary-green);
  color: var(--primary-green);
  border-width: 3px;
}

.step-indicator {
  position: absolute;
  top: 50px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--primary-green);
  z-index: 3;
  display: none;
}

.step-item.step-active .step-indicator {
  display: block;
}

.step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  padding: 0.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  width: 100%;
}

.step-item.step-completed .step-label {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.step-item.step-active .step-label {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--primary-green);
  border-width: 2px;
  font-weight: 700;
}

.step-item:active {
  transform: scale(0.95);
}

@media (hover: hover) {
  .step-item:hover:not(.step-active):not(.step-completed) {
    opacity: 0.8;
  }
}

.step-connector {
  flex: 1;
  height: 3px;
  background: var(--gray-300);
  margin: 0 0.5rem;
  margin-top: -30px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  max-width: 100px;
}

.step-connector.step-connector-completed {
  background: var(--primary-green);
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

.step-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--box-shadow-lg);
  border: 1px solid var(--gray-200);
}

.step-content .form-section-title {
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

/* Form Rows and Columns */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-col {
  display: flex;
  flex-direction: column;
}

/* Phone field styling - constrained width for better UX */
.phone-field-row,
.form-row:has(#phone) {
  grid-template-columns: 1fr;
  justify-items: start;
}

.phone-field-col,
.form-row:has(#phone) .form-col {
  max-width: 400px;
  width: 100%;
}

#phone {
  padding-right: 3rem !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.phone-field-group,
.form-group:has(#phone) {
  position: relative;
  width: 100%;
}

.phone-field-group::after,
.form-group:has(#phone)::after {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  position: absolute;
  right: 1rem;
  top: 2.5rem;
  color: var(--primary-green);
  font-size: 1.125rem;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition);
}

.phone-field-group:focus-within::after,
.form-group:has(#phone):focus-within::after {
  color: var(--dark-green);
}

/* Enhanced phone input focus state */
#phone:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

/* Mobile responsive for phone field */
@media (max-width: 768px) {
  .phone-field-col,
  .form-row:has(#phone) .form-col {
    max-width: 100%;
  }
  
  .phone-field-group::after,
  .form-group:has(#phone)::after {
    top: 2.4rem;
    right: 0.875rem;
    font-size: 1rem;
  }
  
  #phone {
    font-size: 1rem !important;
    padding-right: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  .registration-section {
    padding: 5rem 0 4rem;
  }

  .registration-header {
    padding-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step-progress {
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
  }

  .step-progress::-webkit-scrollbar {
    display: none;
  }

  .step-item {
    max-width: none;
    flex: 0 0 auto;
    min-width: auto;
    width: auto;
  }

  .step-connector {
    display: none;
  }

  .step-label {
    display: none; /* Hide labels on mobile */
  }

  .step-indicator {
    display: none; /* Hide indicator on mobile */
  }

  .step-number {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    flex-direction: column;
    gap: 0.2rem;
  }

  .step-number i {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
  }

  .step-number-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .step-progress {
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.5rem;
    gap: 1.25rem;
  }

  .step-item {
    min-width: auto;
  }

  .step-number {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    flex-direction: column;
    gap: 0.2rem;
  }

  .step-number i {
    font-size: 1rem;
    line-height: 1;
  }

  .step-number-text {
    font-size: 0.85rem;
    line-height: 1;
  }

  .step-label {
    display: none;
  }

  .step-indicator {
    display: none;
  }

  .step-content {
    padding: 1.5rem 1rem;
  }

  .step-content .form-section-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 360px) {
  .step-progress {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .step-item {
    min-width: auto;
  }

  .step-number {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-direction: column;
    gap: 0.15rem;
  }

  .step-number i {
    font-size: 0.95rem;
    line-height: 1;
  }

  .step-number-text {
    font-size: 0.8rem;
    line-height: 1;
  }

  .step-label {
    display: none;
  }

  .step-indicator {
    display: none;
  }
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.btn-next,
.btn-prev,
.btn-submit {
  min-width: 150px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-next,
.btn-submit {
  background: var(--primary-green);
  color: var(--white);
  border: 2px solid var(--primary-green);
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-prev {
  background: var(--white);
  color: var(--gray-600);
  border: 2px solid var(--gray-300);
}

.btn-prev:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--text-dark);
}

/* Mobile Form Navigation */
@media (max-width: 768px) {
  .form-navigation {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
    min-width: auto;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .form-navigation {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    gap: 0.75rem;
  }

  .btn-next,
  .btn-prev,
  .btn-submit {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Form Validation */
.form-control.is-invalid {
  border-color: var(--error-red);
  background-color: #fff5f5;
}

.form-control.is-invalid:focus {
  border-color: var(--error-red);
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}
