/* Cinzel is handled by common-frontend.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #001a00;
  --green-light: #004d00;
  --green-medium: #003300;
  --gold: #D4AF37;
  --gold-light: #f5e6b8;
  --white: #ffffff;
  --cream: #fafaf8;
}

body {
  font-family: 'Cinzel', system-ui, sans-serif;
  background: var(--white);
  color: var(--green);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: 'Cinzel', serif;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

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


/* APPLY HERO */

/* Header and Mobile Menu are handled by common-frontend.css */

/* APPLY HERO */
.apply-hero {
  height: 70vh;
  min-height: 550px;
  padding-top: 100px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-medium) 50%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/background.webp');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.08;
  animation: float 30s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1.2s ease-out;
  max-width: 900px;
  padding: 0 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  color: var(--gold);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 6px;
}

.page-subtitle {
  color: var(--gold);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* AUTH SECTION */
.auth-section {
  padding: 6rem 2rem;
  background: var(--white);
  position: relative;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto 4rem;
  background: var(--white);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 15px 60px rgba(0, 26, 0, 0.12);
  border: 2px solid var(--cream);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-title {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.auth-subtitle {
  color: var(--green-medium);
  font-size: 1rem;
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--green);
  background: var(--white);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Country Select Wrapper */
.country-select-wrapper {
  position: relative;
  width: 100%;
}

.country-select-wrapper select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  padding-right: 3rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--green);
  background: var(--white);
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
}

.country-select-wrapper select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.country-flag-display {
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  z-index: 10;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
}

.country-flag-display.visible {
  opacity: 1;
}

.country-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--green-medium);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.country-select-wrapper select:focus+.country-select-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Phone Input Wrapper */
.phone-input-wrapper {
  position: relative;
  width: 100%;
}

.country-code-display {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--gold);
  font-size: 1rem;
  pointer-events: none;
  padding-right: 0.5rem;
  border-right: 2px solid #e8e8e8;
  min-width: 50px;
  text-align: center;
  transition: color 0.3s ease;
}

.phone-input-wrapper input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  padding-left: 5rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--green);
  background: var(--white);
  transition: all 0.3s ease;
}

.phone-input-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.phone-input-wrapper input:focus~.country-code-display {
  color: var(--green);
}

/* Phone Input Wrapper */
.phone-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.country-code-display {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  pointer-events: none;
  padding-right: 0.75rem;
  border-right: 2px solid #d0d0d0;
  min-width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60%;
  transition: all 0.3s ease;
  z-index: 1;
}

.phone-input-wrapper input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  padding-left: 5.5rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--green);
  background: var(--white);
  transition: all 0.3s ease;
}

.phone-input-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.phone-input-wrapper input:focus~.country-code-display {
  color: var(--green);
  border-color: var(--gold);
}

.phone-input-wrapper input::placeholder {
  color: #999;
  font-weight: 400;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--green-medium);
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--green);
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--gold), #e6c64d);
  color: var(--green);
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  margin-bottom: 1.5rem;
}

.btn-auth:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.2rem;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--border-gray);
  border-radius: 50px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.btn-oauth:hover {
  background: var(--light-gray);
  border-color: #4285F4;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

.btn-oauth svg {
  color: #4285F4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
  text-align: center;
  color: var(--green-medium);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--green-medium), transparent);
}

.btn-google {
  width: 100%;
  padding: 1.2rem;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--gold);
  border-radius: 50px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.btn-google:hover {
  background: var(--gold);
  color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-switch {
  text-align: center;
  color: var(--green-medium);
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: var(--green);
  text-decoration: underline;
}

.password-strength {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength::after {
  content: '';
  display: block;
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
}

.password-strength.weak::after {
  width: 33%;
  background: #ff4444;
}

.password-strength.medium::after {
  width: 66%;
  background: #ff9800;
}

.password-strength.strong::after {
  width: 100%;
  background: #4caf50;
}

.checkbox-group label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.checkbox-group span {
  font-weight: 400;
  line-height: 1.6;
}

/* AUTH BENEFITS */
.auth-benefits {
  max-width: 900px;
  margin: 0 auto;
}

.auth-benefits h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 3rem;
  letter-spacing: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--cream), var(--white));
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 26, 0, 0.1);
  border-color: var(--gold);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 26, 0, 0.05);
  color: var(--gold);
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
}

.benefit-item h4 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-family: 'Cinzel', sans-serif;
  letter-spacing: 1px;
}

.benefit-item p {
  color: var(--green-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* USER WELCOME */
.user-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--cream), var(--white));
  border-radius: 20px;
  border: 2px solid var(--gold);
  flex-wrap: wrap;
}

.welcome-left {
  flex: 1;
  min-width: 200px;
}

.welcome-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-welcome h3 {
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: 1px;
  margin: 0;
}

.user-welcome span {
  color: var(--gold);
}

/* PROFILE PICTURE UPLOAD */
.profile-picture-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 26, 0, 0.2);
  position: relative;
}

.profile-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.profile-initials {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-logout {
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 30px;
  font-family: 'Cinzel', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: var(--green);
  color: var(--white);
}

.btn-dashboard {
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--green);
  border: none;
  border-radius: 30px;
  font-family: 'Cinzel', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
  background: var(--gold-light);
}

.btn-start-application {
  padding: 1.3rem 4rem;
  background: linear-gradient(135deg, var(--gold), #e6c64d);
  color: var(--green);
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-start-application:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

/* REQUIREMENTS SECTION */
.requirements-section {
  padding: 8rem 2rem;
  background: var(--white);
  position: relative;
}

.requirements-pattern {
  position: absolute;
  inset: 0;
  background-size: 300px;
  background-repeat: repeat;
  opacity: 0.03;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--green);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  color: var(--green-medium);
  line-height: 1.7;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.requirement-card {
  background: linear-gradient(135deg, var(--cream), var(--white));
  padding: 3rem 2rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 26, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.requirement-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  transition: transform 0.6s ease;
}

.requirement-card:hover::before {
  transform: translate(-25%, -25%);
}

.requirement-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 26, 0, 0.15);
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--white), var(--cream));
}

.req-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: 20px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.req-icon svg {
  width: 40px;
  height: 40px;
}

.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.upload-icon svg {
  width: 48px;
  height: 48px;
}

.requirement-card h3 {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.requirement-card p {
  color: var(--green-medium);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* APPLICATION FORM SECTION */
.application-form-section {
  padding: 8rem 2rem;
  background: linear-gradient(to bottom, var(--cream), var(--white));
  position: relative;
}

.form-pattern {
  position: absolute;
  inset: 0;
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.03;
}

.form-section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--green);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.form-section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto 0;
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 4rem 3.5rem;
  border-radius: 30px;
  box-shadow: 0 20px 80px rgba(0, 26, 0, 0.12);
  position: relative;
  border: 2px solid var(--cream);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.step-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* FORM NAVIGATION */
.form-navigation {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.btn-back,
.btn-next,
.btn-submit {
  padding: 1.1rem 3.5rem;
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-back {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-back::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-back:hover::before {
  width: 400px;
  height: 400px;
}

.btn-back:hover {
  color: var(--white);
}

.btn-back span,
.btn-next span,
.btn-submit span {
  position: relative;
  z-index: 1;
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, var(--gold), #e6c64d);
  color: var(--green);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* PROGRESS INDICATOR */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3.5rem;
  gap: 1rem;
  padding: 2rem 0;
}

.progress-step {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #e0e0e0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-medium);
  transition: all 0.4s ease;
  position: relative;
}

.progress-step::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.progress-step.active {
  background: linear-gradient(135deg, var(--gold), #e6c64d);
  border-color: var(--gold);
  color: var(--green);
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.progress-step.active::before {
  opacity: 0.3;
}

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

.progress-line {
  width: 70px;
  height: 4px;
  background: #e0e0e0;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.progress-line.completed {
  background: linear-gradient(90deg, var(--green), var(--gold));
}

/* FILE UPLOAD ZONE */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 2rem;
  border: 2px dashed #c8c8c8;
  border-radius: 14px;
  background: #fafaf8;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: center;
  user-select: none;
}

.upload-zone:hover {
  border-color: var(--gold);
  background: #fffef5;
  transform: translateY(-2px);
}

.upload-zone .upload-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.upload-zone .upload-text {
  font-weight: 700;
  color: var(--green);
  font-size: 1.05rem;
}

.upload-zone .upload-hint {
  font-size: 0.82rem;
  color: #888;
}

/* Upload preview card that REPLACES the zone */
.upload-preview-card {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #D4AF37;
  background: #001a00;
}

.upload-preview-card .preview-video {
  display: block;
  width: 100%;
  max-height: 320px;
  background: #000;
}

.upload-preview-card .preview-doc-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 0.6rem;
  background: #0d2b0d;
}

.upload-preview-card .preview-doc-icon {
  font-size: 3.2rem;
  line-height: 1;
}

.upload-preview-card .preview-doc-name {
  font-weight: 700;
  color: #D4AF37;
  text-align: center;
  word-break: break-all;
  font-size: 1rem;
}

.upload-preview-card .preview-doc-meta {
  font-size: 0.82rem;
  color: #aaa;
}

.upload-preview-card .preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: #001a00;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upload-preview-card .preview-file-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.upload-preview-card .preview-file-info span:first-child {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.upload-preview-card .preview-file-name {
  font-weight: 600;
  color: #D4AF37;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.upload-preview-card .preview-file-size {
  font-size: 0.78rem;
  color: #aaa;
}

.upload-preview-card .remove-upload-btn {
  background: #c0392b;
  color: white;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.upload-preview-card .remove-upload-btn:hover {
  background: #922b21;
}

/* DOCUMENTS LIST */
.documents-list {
  margin-top: 1.5rem;
}

.document-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--cream);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.document-item:hover {
  border-color: var(--gold);
  transform: translateX(5px);
}

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

.document-icon {
  font-size: 1.8rem;
}

.document-details {
  flex: 1;
}

.document-name {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.document-size {
  font-size: 0.85rem;
  color: var(--green-medium);
}

.remove-document {
  background: none;
  border: none;
  color: #ff4444;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.remove-document:hover {
  color: #cc0000;
  transform: scale(1.2) rotate(90deg);
}

/* NEXT STEPS */
.next-steps {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  position: relative;
}

.next-steps-pattern {
  position: absolute;
  inset: 0;
  background-size: 350px;
  background-repeat: repeat;
  opacity: 0.05;
}

.next-steps .section-title {
  color: var(--white);
}

.timeline {
  max-width: 1000px;
  margin: 4rem auto 0;
  position: relative;
  z-index: 1;
}

.timeline-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 80px;
  width: 3px;
  height: calc(100% + 3.5rem);
  background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.3));
}

.timeline-marker {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e6c64d);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.18);
}

.timeline-content h3 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--cream);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ALREADY SUBMITTED SECTION */
.already-submitted-section {
  padding: 100px 0;
  background: var(--cream);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.progress-preview-card {
  background: var(--white);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 26, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 2rem;
}

.progress-flow {
  max-width: 800px;
  margin: 3rem auto;
}

.progress-flow .timeline-item {
  margin-bottom: 2.5rem;
}

.progress-flow .timeline-content {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  padding: 1.5rem 2rem;
}

.progress-flow .timeline-content h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.progress-flow .timeline-content p {
  color: var(--green-medium);
}

.progress-flow .timeline-marker {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  background: var(--gold-light);
  color: var(--green);
  box-shadow: none;
  border: 2px solid var(--gold);
}

.progress-flow .timeline-item.active .timeline-marker {
  background: var(--gold);
  color: var(--green);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.progress-flow .timeline-item.completed .timeline-marker {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.progress-flow .timeline-item:not(:last-child)::after {
  left: 23px;
  top: 60px;
  height: calc(100% + 1.5rem);
}

/* FOOTER */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-size: 250px;
  background-repeat: repeat;
  opacity: 0.05;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a img {
  width: 32px;
  height: 32px;
  filter: invert(1) brightness(0.9);
  transition: transform 0.3s ease;
}

.footer-socials a img:hover {
  transform: scale(1.3) rotate(5deg);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copy {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ANIMATIONS */
[data-animate] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .header {
    padding: 0 1.5rem;
    height: 80px;
  }

  .header-logo {
    height: 65px;
  }

  .nav-menu {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .form-container {
    padding: 2.5rem 2rem;
  }

  .user-welcome {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .welcome-left {
    width: 100%;
  }

  .welcome-right {
    width: 100%;
    justify-content: center;
  }

  .profile-circle {
    width: 70px;
    height: 70px;
  }

  .profile-initials {
    font-size: 1.5rem;
  }

  .user-welcome h3 {
    font-size: 1.2rem;
  }

  .btn-logout {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* Email and password must stay lowercase */
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"] {
  text-transform: none;
  letter-spacing: normal;
}

.form-group input[type="email"]::placeholder,
.form-group input[type="password"]::placeholder {
  text-transform: none;
  letter-spacing: normal;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD SECTION STYLES
   (profile card, summary grid, timeline, media previews)
═══════════════════════════════════════════════════════════════ */

.dashboard-section {
  padding: 40px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
}

/* Profile Card */
.profile-card {
  background: var(--white, #ffffff);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 26, 0, 0.08);
  border-left: 5px solid var(--gold, #D4AF37);
}

.profile-header {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--gold, #D4AF37), #f5e6b8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: var(--green, #001a00);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.profile-info h2 {
  color: var(--green, #001a00);
  margin-bottom: 10px;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.profile-info p {
  color: #666;
  margin: 5px 0;
  font-size: 14px;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 1px;
}

.status-badge.submitted {
  background: #e3f2fd;
  color: #1565c0;
}

.status-badge.under-review {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.selected {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.rejected {
  background: #ffebee;
  color: #c62828;
}

.status-badge.finalist {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Application summary grid */
.application-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.summary-item {
  background: var(--cream, #fafaf8);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(0, 26, 0, 0.06);
}

.summary-item label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.summary-item value {
  font-size: 16px;
  font-weight: 700;
  color: var(--green, #001a00);
  display: block;
  font-family: var(--font-heading, 'Cinzel', serif);
}

/* Alert messages */
.alert {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
  display: block;
}

.alert.info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
  display: block;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
  display: block;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #d32f2f;
  display: block;
}

/* Detail sections inside profile card */
.section {
  margin-bottom: 30px;
}

.section h3 {
  color: var(--green, #001a00);
  margin-bottom: 20px;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 1.1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 2px solid var(--gold, #D4AF37);
  padding-bottom: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.detail-item label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-item p {
  color: var(--green, #001a00);
  line-height: 1.6;
}

/* Media preview cards */
.media-preview-card {
  background: var(--white, #ffffff);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 2px solid #e8e8e8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 26, 0, 0.1);
}

.media-preview-card .media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--green, #001a00);
  color: var(--gold, #D4AF37);
}

.media-preview-card .media-header .media-title {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-preview-card .media-header .media-meta {
  font-size: 12px;
  opacity: 0.8;
}

.video-wrapper {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.video-wrapper video {
  width: 100%;
  max-height: 450px;
  display: block;
}

.doc-preview-wrapper {
  background: var(--white, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 15px;
  min-height: 150px;
}

.doc-preview-wrapper .doc-name {
  font-weight: 600;
  color: var(--green, #001a00);
  text-align: center;
  word-break: break-all;
  font-size: 16px;
}

.doc-preview-wrapper .doc-size {
  color: #888;
  font-size: 14px;
}

.media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--cream, #fafaf8);
  border-top: 1px solid #e8e8e8;
  flex-wrap: wrap;
  gap: 10px;
}

.media-footer .file-info-text {
  font-size: 13px;
  color: #555;
  word-break: break-all;
}

.preview-btn {
  background: var(--gold, #D4AF37);
  color: var(--green, #001a00);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-btn:hover {
  background: #f5e6b8;
  transform: scale(1.05);
}

/* Dashboard Timeline (scoped to avoid conflicting with next-steps timeline) */
.dashboard-section .timeline {
  position: relative;
  padding: 20px 0;
  max-width: none;
  margin: 0;
}

.dashboard-section .timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.dashboard-section .timeline-item {
  padding-left: 45px;
  margin-bottom: 30px;
  position: relative;
  display: block;
  gap: unset;
}

.dashboard-section .timeline-item:not(:last-child)::after {
  display: none;
}

.dashboard-section .timeline-marker {
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  background: var(--white, #ffffff);
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--gold, #D4AF37);
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: none;
}

.dashboard-section .timeline-item.active .timeline-marker {
  border-color: var(--gold, #D4AF37);
  background: var(--gold, #D4AF37);
  color: var(--green, #001a00);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.dashboard-section .timeline-item.completed .timeline-marker {
  border-color: #2e7d32;
  background: #2e7d32;
  color: #ffffff;
}

.dashboard-section .timeline-content {
  background: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  border: none;
  transition: none;
}

.dashboard-section .timeline-content:hover {
  transform: none;
  background: none;
}

.dashboard-section .timeline-content h4 {
  margin: 0;
  font-size: 16px;
  color: var(--green, #001a00);
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  text-transform: none;
  letter-spacing: normal;
}

.dashboard-section .timeline-content p {
  margin: 5px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Action buttons row */
.dashboard-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold, #D4AF37), #f5e6b8);
  color: var(--green, #001a00);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: #e0e0e0;
  color: var(--green, #001a00);
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #c62828;
  color: #ffffff;
}

.btn-danger:hover {
  opacity: 0.9;
}

/* No files message */
.no-files-msg {
  color: #999;
  font-style: italic;
  padding: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

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

  .dashboard-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
/* HERO FIX: Never hide hero content with data-animate */
.apply-hero [data-animate],
.apply-hero [data-animate].active {
  opacity: 1 !important;
  transform: none !important;
}

/* ─────────────────────────────────────────────────────────────
   SECTION VISIBILITY FIX
   These sections are shown/hidden by JS via display:none/block.
   data-animate must never make them invisible once they are
   displayed — display is the gate, not opacity.
───────────────────────────────────────────────────────────── */
#authSection [data-animate],
#authSection [data-animate].active,
#requirementsSection [data-animate],
#requirementsSection [data-animate].active,
#applicationSection [data-animate],
#applicationSection [data-animate].active,
#dashboardSection [data-animate],
#dashboardSection [data-animate].active,
#alreadySubmittedSection [data-animate],
#alreadySubmittedSection [data-animate].active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* Auth container is the very first thing the user sees — always visible */
.auth-container {
  opacity: 1 !important;
  transform: none !important;
}
