

.apply-container {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.apply-card {
  background: rgba(8, 11, 17, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apply-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.apply-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: #d4af37;
  margin: 0 0 0.5rem;
  letter-spacing: 0.1em;
}

.apply-header p {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgba(245, 243, 238, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}


.apply-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.apply-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #080b11;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.progress-step.active {
  border-color: #d4af37;
  color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: scale(1.1);
}

.progress-step.completed {
  background: #d4af37;
  border-color: #d4af37;
  color: #080b11;
}


.form-step {
  display: none;
  animation: fadeInStep 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-step.active {
  display: block;
  position: relative;
  z-index: 10;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'Cinzel', serif;
  color: #f5f3ee;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
  padding-bottom: 0.5rem;
  letter-spacing: 0.05em;
}


.apply-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  color: #f5f3ee;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.apply-input:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.apply-input::placeholder {
  color: rgba(245, 243, 238, 0.4);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(245, 243, 238, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.input-group {
  margin-bottom: 0.8rem;
}


select.apply-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' 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: right 1.2rem center;
  background-size: 16px;
  padding-right: 3rem;
  cursor: pointer;
  border-radius: 0.5rem;
}

select.apply-input:focus {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

select.apply-input option {
  background: #080b11;
  color: #f5f3ee;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
}

.phone-input-container {
  display: flex;
  gap: 0.5rem;
}

.phone-code {
  width: auto;
}

.phone-number {
  flex: 1;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkbox-group input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #d4af37;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: rgba(245, 243, 238, 0.9);
  line-height: 1.6;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.cta-button:disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  background-image: none !important;
}


.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.payment-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.payment-modal-card {
  background: #0d111a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.2rem;
  width: 100%;
  max-width: 480px;
  padding: 3rem 2.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.4s ease;
  position: relative;
}

.payment-modal-overlay.active .payment-modal-card {
  transform: translateY(0);
}

.payment-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1.5rem;
}

.payment-header h3 {
  font-family: 'Cinzel', serif;
  color: #f5f3ee;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.payment-amount {
  font-size: 2rem;
  font-family: 'Cinzel', serif;
  color: #d4af37;
  font-weight: 700;
}

.stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(245, 243, 238, 0.5);
  font-size: 0.75rem;
  margin-top: 1.5rem;
}


.success-state {
  display: none;
  text-align: center;
  padding: 2rem 0;
  animation: fadeInStep 0.6s ease forwards;
}

.success-state.active {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid #d4af37;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}


.agreement-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.agreement-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.agreement-modal-card {
  background: #0d111a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.2rem;
  width: 100%;
  max-width: 800px;
  max-height: 70vh;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.agreement-modal-overlay.active .agreement-modal-card {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
}

.modal-header h3 {
  font-family: 'Cinzel', serif;
  color: #f5f3ee;
  font-size: 1.5rem;
  margin: 0;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  color: rgba(245, 243, 238, 0.9);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-content h4 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.modal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content li {
  margin-bottom: 0.5rem;
}

.modal-actions {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.agreements-section {
  margin-top: 1.5rem;
}

.agreement-group {
  margin-bottom: 0.8rem;
}

.agreement-link {
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
}

.agreement-link:hover {
  text-decoration: underline;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .apply-card {
    padding: 1.5rem 1.2rem;
  }
  .apply-header h1 {
    font-size: 1.6rem;
  }
  .input-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .verification-block {
    padding: 1.2rem !important;
  }
  .verification-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .verification-actions button {
    width: 100% !important;
    padding: 0.8rem 1rem !important;
  }
  .form-actions {
    flex-direction: column-reverse;
    gap: 0.8rem;
  }
  .form-actions button {
    width: 100% !important;
  }
  .payment-modal-card,
  .agreement-modal-card {
    padding: 2rem 1.2rem;
    width: calc(100% - 2rem);
    max-height: 85vh;
    margin: 1rem auto;
  }
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left center;
  }
}