/* =====================================================
   PSICOCOMPANY - CADASTRO DE PSICÓLOGO
   Arquivo: cadastro-psicologo.css
   ===================================================== */

.cadastro-main {
  min-height: 100vh;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #f4f2fa 0%, #e8e4f7 50%, #ddd8f0 100%);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
  max-width: 900px;
  margin: 0 auto 50px;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.progress-step.active .step-circle {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(124, 101, 181, 0.3);
}

.progress-step.completed .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.progress-step.active .step-label {
  color: var(--primary);
}

.progress-line {
  flex: 1;
  height: 3px;
  background: #d1d5db;
  margin: 0 -10px;
  position: relative;
  top: -30px;
  z-index: 1;
}

/* ===== FORM CONTAINER ===== */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 10px 50px rgba(124, 101, 181, 0.1);
  padding: 50px;
  position: relative;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 16px;
  color: var(--gray);
}

/* ===== FORM STEPS ===== */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FORM GRID ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 101, 181, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 13px;
  color: var(--gray-light);
}

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--dark);
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  border-color: var(--primary-light);
  background: rgba(124, 101, 181, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(124, 101, 181, 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* ===== PLANS SELECTION ===== */
.plans-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.plan-option {
  cursor: pointer;
  display: block;
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-card-select {
  padding: 32px 24px;
  border: 3px solid #e5e7eb;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  background: var(--bg-light);
  height: 100%;
}

.plan-option input:checked + .plan-card-select {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(124, 101, 181, 0.15);
  transform: translateY(-4px);
}

.plan-badge-popular,
.plan-badge-recommended {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge-recommended {
  background: var(--accent);
}

.plan-card-select.featured {
  border-color: var(--primary);
}

.plan-card-select h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  text-align: center;
}

.plan-price-select {
  text-align: center;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  vertical-align: super;
}

.price-big {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.price-label {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.plan-features-select {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features-select li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--dark);
  border-bottom: 1px solid rgba(124, 101, 181, 0.08);
}

.plan-features-select li:last-child {
  border-bottom: none;
}

/* ===== TERMS ===== */
.terms-group {
  margin-top: 32px;
}

.terms-checkbox {
  border: none !important;
  padding: 0 !important;
}

.terms-checkbox span {
  font-size: 14px;
  line-height: 1.6;
}

.terms-checkbox a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 2px solid var(--bg-light);
}

.btn-prev,
.btn-next,
.btn-submit {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-next,
.btn-submit {
  margin-left: auto;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  z-index: 100;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(124, 101, 181, 0.3);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-message h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
}

.success-message p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.success-message .btn {
  margin-top: 32px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 968px) {
  .form-container {
    padding: 40px 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .plans-selection {
    grid-template-columns: 1fr;
  }

  .progress-bar {
    flex-direction: column;
    gap: 20px;
  }

  .progress-line {
    display: none;
  }

  .step-label {
    display: none;
  }
}

@media (max-width: 640px) {
  .cadastro-main {
    padding: 100px 16px 60px;
  }

  .form-container {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .form-header p {
    font-size: 14px;
  }

  .form-grid {
    gap: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }

  .checkbox-label {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-next,
  .btn-submit {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .btn-prev {
    width: 100%;
    justify-content: center;
  }

  .price-big {
    font-size: 40px;
  }

  .success-message {
    padding: 40px 20px;
  }

  .success-message h2 {
    font-size: 22px;
  }
}