
    :root {
      --primary: #0047AB;
      --primary-dark: #002f7a;
      --accent: #00C2A8;
      --accent-light: #e0faf6;
      --text: #1a1f36;
      --text-muted: #5a6278;
      --bg: #f4f6fb;
      --white: #ffffff;
      --border: #e2e6f0;
      --radius: 14px;
      --radius-sm: 8px;
      --shadow-sm: 0 2px 8px rgba(0,71,171,0.07);
      --shadow-md: 0 8px 32px rgba(0,71,171,0.12);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      font-family: "Plus Jakarta Sans", sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
    }

    /* ===== LAYOUT ===== */
    .page-wrap {
      display: flex;
      flex: 1;
      min-height: 100vh;
    }

    /* ===== SIDE PANEL ===== */
    .side-panel {
      width: 380px;
      flex-shrink: 0;
      background: linear-gradient(160deg, #001a5c 0%, #0047AB 60%, #006fd6 100%);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding: 2.5rem 2rem;
    }
    .side-panel::before {
      content: "";
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size: 32px 32px;
    }
    .side-panel::after {
      content: "";
      position: absolute;
      bottom: -80px; right: -80px;
      width: 320px; height: 320px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0,194,168,0.2) 0%, transparent 70%);
    }
    .side-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }

    .side-logo img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 2.5rem; }

    .side-heading {
      font-family: "Fraunces", serif;
      font-size: 1.65rem;
      font-weight: 700;
      color: white;
      line-height: 1.25;
      margin-bottom: 0.75rem;
    }
    .side-heading em { font-style: italic; color: var(--accent); }
    .side-sub {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.65);
      line-height: 1.65;
      margin-bottom: 2rem;
    }

    .side-benefits { margin-top: auto; }
    .benefit-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1.1rem;
    }
    .benefit-dot {
      width: 32px; height: 32px;
      border-radius: 8px;
      background: rgba(0,194,168,0.2);
      border: 1px solid rgba(0,194,168,0.3);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent);
      font-size: 0.85rem;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .benefit-text strong {
      display: block;
      font-size: 0.82rem;
      color: rgba(255,255,255,0.9);
      font-weight: 600;
      line-height: 1.3;
    }
    .benefit-text span {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.5);
    }

    /* ===== MAIN FORM AREA ===== */
    .form-area {
      flex: 1;
      overflow-y: auto;
      padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
      display: flex;
      flex-direction: column;
    }

    .form-header {
      margin-bottom: 2rem;
    }
    .form-header h1 {
      font-family: "Fraunces", serif;
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.3rem;
    }
    .form-header p {
      font-size: 0.88rem;
      color: var(--text-muted);
      margin: 0;
    }

    /* ===== STEPPER ===== */
    .stepper {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 2.5rem;
    }
    .step-item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      position: relative;
    }
    .step-item + .step-item::before {
      content: "";
      width: 40px;
      height: 2px;
      background: var(--border);
      margin: 0 0.5rem;
      flex-shrink: 0;
      transition: background 0.3s;
    }
    .step-item.done + .step-item::before,
    .step-item.active + .step-item::before {
      background: var(--accent);
    }
    .step-circle {
      width: 32px; height: 32px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.78rem;
      font-weight: 700;
      border: 2px solid var(--border);
      background: white;
      color: var(--text-muted);
      transition: all 0.3s;
      flex-shrink: 0;
    }
    .step-item.active .step-circle {
      background: var(--primary);
      border-color: var(--primary);
      color: white;
      box-shadow: 0 0 0 4px rgba(0,71,171,0.15);
    }
    .step-item.done .step-circle {
      background: var(--accent);
      border-color: var(--accent);
      color: #002f2b;
    }
    .step-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .step-item.active .step-label { color: var(--primary); }
    .step-item.done .step-label { color: var(--accent); }

    /* ===== FORM STEPS ===== */
    .form-step { display: none; }
    .form-step.active { display: block; }

    /* ===== SECTION DIVIDER ===== */
    .section-divider {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin: 0 0 1.5rem;
    }
    .section-divider-icon {
      width: 34px; height: 34px;
      border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.9rem;
      flex-shrink: 0;
    }
    .section-divider-text {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }

    /* ===== FORM CONTROLS ===== */
    .form-group { margin-bottom: 0; }

    label.form-label {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.35rem;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    label.form-label .req { color: #e53935; font-size: 0.7rem; }

    .form-control, .form-select {
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 0.6rem 0.85rem;
      font-size: 0.875rem;
      color: var(--text);
      background: white;
      transition: border-color 0.2s, box-shadow 0.2s;
      font-family: inherit;
      width: 100%;
    }
    .form-control:focus, .form-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0,71,171,0.1);
      outline: none;
    }
    .form-control.is-valid { border-color: var(--accent); }
    .form-control.is-invalid { border-color: #e53935; }
    .form-control[readonly] {
      background: #f8f9fc;
      color: var(--text-muted);
    }
    .input-icon-wrap {
      position: relative;
    }
    .input-icon-wrap .input-icon {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 0.9rem;
      pointer-events: none;
    }
    .input-icon-wrap .form-control {
      padding-left: 2.2rem;
    }
    .input-icon-wrap .cep-spinner {
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      display: none;
    }
    .input-icon-wrap .cep-spinner.show { display: block; }

    /* ===== ALERT ===== */
    .alert-inline {
      border-radius: var(--radius-sm);
      padding: 0.65rem 0.9rem;
      font-size: 0.82rem;
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }
    .alert-inline i { margin-top: 1px; flex-shrink: 0; }

    /* ===== BUTTONS ===== */
    .btn-prev {
      background: white;
      border: 1.5px solid var(--border);
      color: var(--text-muted);
      font-weight: 600;
      font-size: 0.875rem;
      padding: 0.65rem 1.4rem;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex; align-items: center; gap: 0.4rem;
    }
    .btn-prev:hover {
      border-color: var(--primary);
      color: var(--primary);
    }
    .btn-next {
      background: var(--primary);
      border: none;
      color: white;
      font-weight: 700;
      font-size: 0.875rem;
      padding: 0.65rem 1.6rem;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex; align-items: center; gap: 0.4rem;
      box-shadow: 0 4px 14px rgba(0,71,171,0.28);
    }
    .btn-next:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(0,71,171,0.36);
    }
    .btn-submit-final {
      background: var(--accent);
      color: #002f2b;
      font-weight: 700;
      font-size: 0.875rem;
      padding: 0.65rem 1.6rem;
      border-radius: 50px;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex; align-items: center; gap: 0.4rem;
      box-shadow: 0 4px 14px rgba(0,194,168,0.35);
    }
    .btn-submit-final:hover {
      background: #00d9bc;
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(0,194,168,0.45);
    }

    /* ===== REVIEW CARD ===== */
    .review-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin-bottom: 1rem;
    }
    .review-card-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .review-card-title a {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--primary);
      text-decoration: none;
      text-transform: none;
      letter-spacing: 0;
    }
    .review-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem 1.5rem;
    }
    .review-field { }
    .review-field .rf-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-bottom: 0.1rem;
    }
    .review-field .rf-val {
      font-size: 0.83rem;
      font-weight: 600;
      color: var(--text);
    }

    /* ===== LOGIN LINK ===== */
    .login-link {
      margin-top: 1.5rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      text-align: center;
    }
    .login-link a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    .login-link a:hover { text-decoration: underline; }

    /* ===== MODAL SUCCESS ===== */
    .modal-confirm .modal-header {
      border-bottom: none;
      position: relative;
      background: linear-gradient(135deg, var(--primary), #006fd6);
      border-radius: 16px 16px 0 0;
      padding: 2rem;
      text-align: center;
      display: block;
    }
    .modal-confirm .icon-box {
      width: 72px; height: 72px;
      border-radius: 50%;
      background: var(--accent);
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem;
      color: #002f2b;
      margin: 0 auto 1rem;
    }
    .modal-confirm .modal-title {
      color: white;
      font-family: "Fraunces", serif;
      font-size: 1.4rem;
      font-weight: 700;
    }
    .modal-confirm .modal-body { padding: 1.5rem 2rem; }
    .modal-confirm .modal-body p {
      color: var(--text-muted);
      font-size: 0.9rem;
      text-align: center;
      margin: 0;
    }
    .modal-confirm .modal-footer {
      border-top: none;
      padding: 0 2rem 2rem;
    }
    .modal-confirm .btn-ok {
      background: var(--primary);
      color: white;
      border: none;
      font-weight: 700;
      padding: 0.7rem 2rem;
      border-radius: 50px;
      width: 100%;
      font-size: 0.9rem;
      cursor: pointer;
      transition: background 0.2s;
      font-family: inherit;
    }
    .modal-confirm .btn-ok:hover { background: var(--primary-dark); }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) {
      .side-panel { display: none; }
      .form-area { padding: 2rem 1.25rem; }
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .form-step.active { animation: fadeIn 0.3s ease; }

    /* ===== INLINE FIELD ERRORS ===== */
    .form-control.is-invalid,
    .form-select.is-invalid {
      border-color: #e53935;
      background-image: none;
      box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
    }
    .form-control.is-invalid:focus,
    .form-select.is-invalid:focus {
      border-color: #e53935;
      box-shadow: 0 0 0 3px rgba(229,57,53,0.15);
    }
    .field-error-msg {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.74rem;
      color: #e53935;
      font-weight: 500;
      margin-top: 0.3rem;
      animation: errFadeIn 0.2s ease;
    }
    .field-error-msg i { font-size: 0.78rem; flex-shrink: 0; }
    @keyframes errFadeIn {
      from { opacity: 0; transform: translateY(-4px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Spinner */
    .spinner-border-sm {
      width: 1rem; height: 1rem;
      border-width: 0.15em;
    }

    /* Aceite de termos */
    .aceite-termos-wrap {
      background: #f8f9ff;
      border: 1px solid #d0d8f5;
      border-radius: 0.75rem;
      padding: 0.9rem 1.1rem;
    }
    .aceite-termos-wrap p {
      margin: 0;
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
    }
    .aceite-termos-wrap a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .aceite-termos-wrap a:hover {
      color: var(--primary-dark);
    }