/* ==========================================================================
   CRITIUM - Formulário de Inscrição e Matrícula
   Styles & Multi-Step Flow
   ========================================================================== */

/* Layout & Container */
.enroll-page {
  min-height: 100vh;
  background-color: var(--bg-dark-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(21, 22, 42, 0.9) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(178, 143, 75, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(178, 143, 75, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 143, 75, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-light-gray);
  display: flex;
  flex-direction: column;
}

.enroll-header {
  border-bottom: 1px solid var(--border-glass);
  background: rgba(14, 16, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.enroll-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enroll-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.enroll-back-link:hover {
  color: var(--accent-gold-light);
  transform: translateX(-3px);
}

.enroll-support-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(178, 143, 75, 0.1);
  border: 1px solid var(--border-gold-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.enroll-support-badge:hover {
  background: rgba(178, 143, 75, 0.2);
  border-color: var(--accent-gold);
}

/* Main Form Wrapper */
.enroll-main {
  flex: 1;
  padding: 40px 0 80px 0;
}

.enroll-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Form Hero Intro */
.enroll-intro {
  text-align: center;
  margin-bottom: 36px;
}

.enroll-intro .section-tag {
  margin-bottom: 14px;
}

.enroll-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.enroll-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Stepper Bar */
.stepper-wrapper {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.stepper-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.stepper-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  width: 16.66%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(178, 143, 75, 0.6);
}

.stepper-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
  position: relative;
  cursor: default;
  transition: var(--transition-fast);
}

.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
  z-index: 2;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.step-indicator.active .step-bubble {
  background: var(--gold-gradient);
  border-color: var(--accent-gold-light);
  color: #0E101D;
  box-shadow: 0 0 16px rgba(178, 143, 75, 0.5);
  transform: scale(1.1);
}

.step-indicator.active .step-label {
  color: var(--accent-gold-light);
}

.step-indicator.completed .step-bubble {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  color: #2ecc71;
}

.step-indicator.completed .step-label {
  color: #2ecc71;
}

/* Card Step Box */
.enroll-card {
  background: var(--bg-dark-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card), 0 0 50px rgba(178, 143, 75, 0.12);
  position: relative;
}

.form-step {
  display: none;
  animation: fadeInStep 0.4s ease forwards;
}

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

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

.step-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.step-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(178, 143, 75, 0.15);
  border: 1px solid var(--border-gold-bright);
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  font-weight: 800;
}

.step-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Form Grid & Layout */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

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

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-label span.req {
  color: var(--accent-gold-light);
  margin-left: 3px;
}

.form-label span.opt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(178, 143, 75, 0.25);
}

.form-input.input-error, .form-select.input-error, .form-textarea.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.3) !important;
}

.error-message {
  color: #e74c3c;
  font-size: 0.78rem;
  margin-top: 5px;
  display: none;
  font-weight: 500;
}

.form-input.input-error + .error-message,
.form-select.input-error + .error-message {
  display: block;
}

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

/* Radio & Checkbox Card Selection */
.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice-card-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.choice-card-label:hover {
  background: rgba(178, 143, 75, 0.08);
  border-color: var(--border-gold-subtle);
  transform: translateY(-2px);
}

.choice-card-label input[type="radio"],
.choice-card-label input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.choice-card-label.selected {
  background: rgba(178, 143, 75, 0.15);
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(178, 143, 75, 0.2);
}

.choice-text {
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 500;
}

/* Interactive Slider 0 to 10 */
.confidence-slider-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 8px;
}

.slider-display-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.confidence-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(178, 143, 75, 0.15);
  border: 1px solid var(--border-gold-bright);
  padding: 6px 18px;
  border-radius: var(--radius-full);
}

.confidence-score-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.confidence-score-status {
  font-size: 0.9rem;
  color: var(--text-white);
  font-weight: 600;
}

.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #2ecc71 100%);
  outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text-white);
  border: 3px solid var(--accent-gold);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(178, 143, 75, 0.8);
  cursor: pointer;
  transition: transform 0.1s;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Scrub Size Selector Grid */
.scrub-sizes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.scrub-size-option {
  position: relative;
}

.scrub-size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.scrub-size-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  transition: var(--transition-normal);
}

.scrub-size-option input[type="radio"]:checked + .scrub-size-card {
  background: var(--gold-gradient);
  color: #0E101D;
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(178, 143, 75, 0.4);
  transform: translateY(-2px);
}

/* Scrub Embroidery Preview Card */
.scrub-preview-box {
  background: rgba(21, 22, 42, 0.8);
  border: 1px dashed var(--border-gold-bright);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.scrub-preview-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(178, 143, 75, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  flex-shrink: 0;
}

.scrub-preview-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.scrub-preview-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

/* Terms Acceptance Block */
.terms-agreement-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.term-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}

.term-checkbox-item:last-child {
  margin-bottom: 0;
}

.term-checkbox-item input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.term-text {
  font-size: 0.95rem;
  color: var(--text-light-gray);
  line-height: 1.5;
}

.term-link {
  color: var(--accent-gold-light);
  text-decoration: underline;
  cursor: pointer;
}

/* Step 6: Payment Screen Design */
.payment-summary-card {
  background: linear-gradient(145deg, rgba(23, 26, 48, 0.95) 0%, rgba(14, 16, 29, 0.98) 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.payment-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.payment-plan-info h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.payment-plan-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.payment-price-box {
  text-align: right;
}

.payment-price-box .price-installment {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.payment-price-box .price-total {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-methods-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.payment-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
}

.payment-tab-btn.active {
  background: rgba(178, 143, 75, 0.15);
  border-color: var(--accent-gold-light);
  color: var(--text-white);
  box-shadow: 0 0 20px rgba(178, 143, 75, 0.25);
}

.payment-tab-content {
  display: none;
}

.payment-tab-content.active {
  display: block;
  animation: fadeInStep 0.3s ease;
}

/* Pix Visual Box */
.pix-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.pix-qr-frame {
  width: 190px;
  height: 190px;
  margin: 0 auto 18px auto;
  background: #FFF;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr-frame svg {
  width: 100%;
  height: 100%;
}

.pix-copia-cola-box {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pix-key-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-light-gray);
  font-family: monospace;
  font-size: 0.85rem;
}

.btn-copy-pix {
  background: rgba(178, 143, 75, 0.15);
  border: 1px solid var(--border-gold-bright);
  color: var(--accent-gold-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-pix:hover {
  background: var(--gold-gradient);
  color: #0E101D;
}

/* Credit Card Input Preview */
.credit-card-preview {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 24px auto;
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(135deg, #242848 0%, #111326 100%);
  border: 1px solid var(--border-gold-bright);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(178, 143, 75, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37 0%, #8e6e30 100%);
  border-radius: 6px;
}

.card-preview-number {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: #FFF;
  margin: 14px 0;
}

.card-preview-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-preview-holder {
  color: #FFF;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Step 7: Confirmation Screen */
.confirmation-container {
  text-align: center;
  padding: 20px 0;
}

.success-animated-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.15);
  border: 2px solid #2ecc71;
  color: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 35px rgba(46, 204, 113, 0.4);
  animation: pulseSuccess 2s infinite ease-in-out;
}

@keyframes pulseSuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.confirmation-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.confirmation-subtitle {
  font-size: 1.25rem;
  color: var(--accent-gold-light);
  font-weight: 700;
  margin-bottom: 24px;
}

.confirmation-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 620px;
  margin: 0 auto 32px auto;
  text-align: left;
}

.confirm-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-glass);
}

.confirm-item:last-child {
  border-bottom: none;
}

.confirm-item .label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.confirm-item .val {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.critium-mantra-box {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  margin-top: 32px;
}

.critium-mantra-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-gold-light);
  margin-bottom: 6px;
}

.critium-mantra-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Nav Actions between Steps */
.form-navigation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.btn-form-prev {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-form-prev:hover {
  color: var(--text-white);
  border-color: var(--border-gold-subtle);
  background: rgba(255, 255, 255, 0.05);
}

.btn-form-next, .btn-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Terms Modal */
.terms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 10, 19, 0.88);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.terms-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.terms-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.terms-modal-body {
  overflow-y: auto;
  padding-right: 12px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light-gray);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .enroll-title {
    font-size: 2rem;
  }

  .enroll-card {
    padding: 28px 18px;
  }

  .stepper-nav .step-label {
    display: none;
  }

  .stepper-wrapper {
    padding: 16px;
  }

  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .choice-cards-grid {
    grid-template-columns: 1fr;
  }

  .scrub-sizes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .payment-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .payment-price-box {
    text-align: left;
  }

  .payment-methods-selector {
    grid-template-columns: 1fr;
  }

  .form-navigation-actions {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .form-navigation-actions button {
    width: 100%;
    justify-content: center;
  }
}
