/* ============================================================
   MODAL DE INSCRIÇÃO — Hackathon App BiT
   Adicione este CSS ao final do styles.css ou importe separado
   Utiliza as variáveis já definidas no projeto:
   --navy: #181057; --blue: #155cf4; --yellow: #ffbb00;
   --text: #2a273b; --white: #fff;
   Fonts: Outfit (headings), Lato (body), Space Mono (buttons)
   ============================================================ */

/* ---- Screen reader only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Overlay ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  height: 100vh; /* fallback */
  height: 100dvh;
  z-index: 10000;
  background: var(--white, #fff);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  animation: modalFadeIn 0.3s ease forwards;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay[hidden] {
  display: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Modal container ---- */
.modal {
  background: var(--white, #fff);
  width: 100%;
  max-width: 860px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
}

/* ---- Close button ---- */
.modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: #f0f0f0;
  font-size: 28px;
  color: var(--text, #2a273b);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  background: #e0e0e0;
  color: var(--navy, #181057);
}
.modal-close:focus-visible {
  outline: 2px solid var(--blue, #155cf4);
  outline-offset: 2px;
}

/* ---- Header (stepper — floating left of form) ---- */
.form-stepper-wrap {
  position: absolute;
  left: -220px;
  top: 120px;
  padding: 0;
  z-index: 3;
}

.modal-title {
  display: none;
}
.stepper-label {
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: #636363;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px 12px;
}

.form-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 32px 0 40px;
}
.form-section-subtitle {
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy, #181057);
  margin: 0 0 24px;
}

/* ---- Stepper (vertical in left column) ---- */
.stepper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 16px;
  position: sticky;
  top: 24px;
}

.step-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .2s;
}

.step-indicator span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d0d0d0;
  color: #555;
  font-family: var(--f-mono, 'Space Mono', monospace);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.step-indicator small {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 14px;
  color: #636363;
  white-space: nowrap;
  transition: color 0.3s;
  text-align: left;
}

.step-indicator.active {
  background: var(--white, #fff);
}
.step-indicator.active span {
  background: var(--blue, #155cf4);
  color: var(--white, #fff);
}

.step-indicator.active small {
  color: var(--navy, #181057);
  font-weight: 700;
}

.step-indicator.completed span {
  background: #16a34a;
  color: var(--white, #fff);
}

.step-indicator.completed small {
  color: var(--navy, #181057);
}

.step-indicator.clickable {
  cursor: pointer;
}
.step-indicator.clickable:hover {
  background: rgba(21, 92, 244, 0.08);
}
.step-indicator.locked {
  cursor: not-allowed;
}

.step-connector {
  display: none;
  transition: background 0.3s;
}

.step-connector.completed {
  background: var(--navy, #181057);
}

/* ---- Form container ---- */
.modal-form {
  padding: 0 40px 40px;
  overflow-y: visible;
  flex: 1;
  position: relative;
}
.modal-form::before {
  content: 'Inscrição — Hackathon App BiT';
  display: block;
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 900;
  font-size: 32px;
  color: var(--navy, #181057);
  padding: 48px 0 32px;
  line-height: 1.2;
}

.form-required-note {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

/* ---- Form step (wizard pages) ---- */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepFadeIn 0.3s ease;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 40px 40px 8px;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-step-title {
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy, #181057);
  margin: 0 0 20px;
}

.form-step-desc {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 17px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 40px;
}

/* ---- Fieldset reset (for radio/checkbox groups) ---- */
fieldset.form-group {
  border: none;
  padding: 0;
  margin: 0 0 32px;
  display: block;
}
fieldset.form-group legend.form-label {
  display: block;
  width: 100%;
}

/* ---- Form groups ---- */
.form-group {
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--text, #2a273b);
  margin-bottom: 8px;
  line-height: 1.4;
}

.form-label small {
  font-weight: 400;
  color: #636363;
}

.req {
  color: #c62828;
}

/* ---- Inputs & Selects ---- */
.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #949494;
  border-radius: 12px;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 17px;
  color: var(--text, #2a273b);
  background: var(--white, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #767676;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--blue, #155cf4);
  box-shadow: 0 0 0 3px rgba(21, 92, 244, 0.12);
  outline: 2px solid var(--blue, #155cf4);
  outline-offset: 2px;
}
.form-input:focus:not(:focus-visible),
.form-select:focus:not(:focus-visible) {
  outline: none;
}

.form-input.error,
.form-select.error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23636363' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ---- Hint text ---- */
.form-hint {
  display: block;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 14px;
  color: #636363;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ---- Error text ---- */
.form-error {
  display: block;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 14px;
  color: #c62828;
  margin-top: 6px;
}

.form-error[hidden] {
  display: none;
}

/* ---- Radio groups ---- */
.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-direction: column;
}

.form-radio-label,
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 16px;
  color: var(--text, #2a273b);
  transition: background 0.15s;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.form-radio-label:hover,
.form-checkbox-label:hover {
  background: #f5f5f5;
}

.form-radio-label input[type="radio"],
.form-checkbox-label input[type="checkbox"] {
  accent-color: var(--blue, #155cf4);
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ---- Conditional "Outro" input ---- */
.form-other-input {
  margin-top: 8px;
}

.form-other-input[hidden] {
  display: none;
}

/* ---- Conditional field (LinkedIn) ---- */
.form-conditional[hidden] {
  display: none;
}

/* ---- LGPD box ---- */
.form-lgpd-box {
  background: #f8f8fa;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.form-lgpd-box h4 {
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy, #181057);
  margin: 0 0 12px;
}

.form-lgpd-box p {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 10px;
}

.form-lgpd-box ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 10px;
}

.form-lgpd-box li {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 4px;
}

.form-lgpd-check {
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.form-lgpd-check:hover {
  border-color: var(--blue, #155cf4);
}

.form-lgpd-check.error {
  border-color: #c62828;
}

/* ---- Form navigation buttons ---- */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.form-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono, 'Space Mono', monospace);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.form-btn:hover {
  transform: translateY(-2px);
}

.form-btn:active {
  transform: translateY(0);
}
.form-btn:focus-visible {
  outline: 2px solid var(--blue, #155cf4);
  outline-offset: 2px;
}

.form-btn[hidden] {
  display: none;
}

.form-btn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.form-btn span {
  position: relative;
  z-index: 1;
}

.form-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

/* Previous/Voltar button — outline style */
.form-btn-prev {
  width: 186px;
  height: 56px;
  color: var(--text, #2a273b);
}
.form-btn-prev:hover {
  color: var(--white, #fff);
}
.form-btn-prev:hover .form-btn-bg path {
  fill: #2a273b;
}
.form-btn-prev .form-btn-bg path {
  transition: fill .3s ease;
}

/* Next button — yellow fill */
.form-btn-next {
  width: 276px;
  height: 56px;
  color: var(--navy, #181057);
  margin-left: auto;
}
.form-btn-next:hover {
  filter: brightness(1.05);
}

/* Submit button — yellow fill */
.form-btn-submit {
  width: 276px;
  height: 56px;
  color: var(--navy, #181057);
  margin-left: auto;
}
.form-btn-submit:hover {
  filter: brightness(1.05);
}

.form-btn-submit.is-loading {
  pointer-events: none;
}

.form-btn-submit.is-loading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-btn-submit.is-loading span::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--navy, #181057);
  border-top-color: transparent;
  border-radius: 50%;
  animation: formSpinner .8s linear infinite;
}

@keyframes formSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Success state ---- */
.modal-success {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.modal-success[hidden] {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
}

.success-checkmark circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkCircle 0.6s 0.1s ease forwards;
}

.success-checkmark path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkPath 0.4s 0.5s ease forwards;
}

@keyframes checkCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes checkPath {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 900;
  font-size: 24px;
  color: var(--navy, #181057);
  margin: 0 0 16px;
}

.success-text {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 440px;
}
.success-text strong {
  font-size: 18px;
  color: #2a273b;
}

.success-actions {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.success-whatsapp-link {
  text-decoration: none;
  margin-left: 0;
}

.success-actions .form-btn-next,
.success-actions .form-btn-prev,
.success-actions .form-btn-submit {
  margin-left: 0;
}

.success-actions .success-text {
  margin: 0;
}

/* ---- Custom confirm dialog ---- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease forwards;
}
.confirm-box {
  background: var(--white, #fff);
  border-radius: 24px;
  padding: 48px;
  max-width: 580px;
  position: relative;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}
.confirm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.confirm-close:hover {
  background: #e0e0e0;
  color: #333;
}
.confirm-title {
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-weight: 900;
  font-size: 28px;
  color: var(--navy, #181057);
  margin: 0 0 16px;
}
.confirm-message {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 20px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 40px;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.confirm-btn {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.confirm-btn:hover {
  transform: translateY(-1px);
}

/* ---- Processing overlay (submit loading) ---- */
.modal-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(24, 16, 87, 0.25);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-processing-overlay[hidden] {
  display: none !important;
}

.modal-processing-box {
  min-width: 280px;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-processing-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(21, 92, 244, 0.2);
  border-top-color: var(--blue, #155cf4);
  margin: 0 auto 14px;
  animation: modalProcessingSpin 0.9s linear infinite;
}

.modal-processing-text {
  margin: 0;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #181057);
}

@keyframes modalProcessingSpin {
  to {
    transform: rotate(360deg);
  }
}
.confirm-btn:focus-visible,
.confirm-close:focus-visible {
  outline: 2px solid var(--blue, #155cf4);
  outline-offset: 2px;
}
.confirm-btn-ok {
  background: var(--yellow, #ffbb00);
  color: var(--navy, #181057);
}
.confirm-btn-ok:hover {
  background: #ffc61a;
}
.confirm-btn-cancel {
  background: #f0f0f0;
  color: var(--text, #2a273b);
}
.confirm-btn-cancel:hover {
  background: #e4e4e4;
}

/* ---- Feedback popup ---- */
.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 26000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.2s ease forwards;
}

.feedback-box {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(24, 16, 87, 0.12);
  position: relative;
}

.feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #f2f3f5;
  color: #636363;
  font-size: 22px;
  line-height: 1;
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono, 'Space Mono', monospace);
  font-weight: 700;
  font-size: 14px;
}

.feedback-error .feedback-badge {
  background: #ffe4e6;
  color: #b91c1c;
}

.feedback-title {
  margin: 0;
  font-family: var(--f-head, 'Outfit', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy, #181057);
  line-height: 1.2;
}

.feedback-message {
  margin: 0;
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 17px;
  line-height: 1.55;
  color: #404040;
  white-space: normal;
}

.feedback-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-list li {
  font-family: var(--f-body, 'Lato', sans-serif);
  font-size: 17px;
  line-height: 1.45;
  color: #2a273b;
  font-weight: 600;
}

.feedback-message-footer {
  margin-top: 2px;
}

.feedback-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.feedback-btn {
  min-width: 120px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--blue, #155cf4);
  color: #ffffff;
  font-family: var(--f-mono, 'Space Mono', monospace);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.feedback-btn:hover {
  filter: brightness(1.06);
}

.feedback-btn:focus-visible,
.feedback-close:focus-visible {
  outline: 2px solid var(--blue, #155cf4);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- ≤1280px: pull stepper closer ---- */
@media (max-width: 1280px) {
  .modal-overlay {
    justify-content: flex-end;
  }
  .modal {
    max-width: calc(100vw - 210px);
  }
  .form-stepper-wrap {
    left: -200px;
  }
}

/* ---- ≤960px: stepper horizontal below title ---- */
@media (max-width: 960px) {
  .modal {
    max-width: 100%;
  }
  .modal-overlay {
    justify-content: center;
  }

  .form-stepper-wrap {
    position: relative;
    left: auto;
    top: auto;
    padding: 0;
    margin-bottom: 20px;
  }

  .stepper {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 8px;
    border-radius: 12px;
    width: 100%;
    position: static;
  }

  .step-indicator {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    gap: 8px;
  }

  .step-connector {
    display: none;
  }

  .form-step.active {
    padding: 32px;
  }
}

/* ---- ≤720px: stepper compact, only active label visible ---- */
@media (max-width: 720px) {
  .step-indicator small {
    display: none;
  }
  .step-indicator {
    flex: 1;
    padding: 8px;
    gap: 0;
  }
  .step-indicator span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .stepper {
    gap: 4px;
    padding: 8px 12px;
  }
}

/* ---- ≤768px: tighter mobile layout ---- */
@media (max-width: 768px) {
  .modal-form {
    padding: 0 20px 28px;
  }

  .modal-form::before {
    font-size: 26px;
    padding: 32px 60px 24px 0;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }

  .form-step.active {
    padding: 24px;
  }

  /* Form row stacks */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-label {
    font-size: 16px;
  }

  .form-input,
  .form-select {
    font-size: 16px;
    padding: 12px 14px;
  }

  .form-radio-label,
  .form-checkbox-label {
    font-size: 15px;
    padding: 8px 12px;
  }

  .form-btn {
    font-size: 14px;
  }

  .form-nav {
    margin-top: 24px;
  }

  .form-lgpd-box {
    padding: 16px;
  }

  .form-lgpd-box h4 {
    font-size: 16px;
  }

  .form-lgpd-box p,
  .form-lgpd-box li {
    font-size: 14px;
  }

  .modal-success {
    padding: 40px 20px;
  }

  .success-title {
    font-size: 20px;
  }

  .success-text {
    font-size: 15px;
  }

  /* Confirm dialog */
  .confirm-box {
    padding: 32px 24px;
  }
  .confirm-title {
    font-size: 22px;
  }
  .confirm-message {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .confirm-btn {
    font-size: 16px;
  }
}

/* ---- ≤600px: form buttons stacked ---- */
@media (max-width: 600px) {
  /* Form buttons: full width, rectangular, stacked */
  .form-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .form-btn {
    width: 100%;
    height: 56px;
  }
  .form-btn-prev,
  .form-btn-next,
  .form-btn-submit {
    width: 100%;
    margin-left: 0;
  }
  .form-btn .form-btn-bg {
    display: none;
  }
  .form-btn-next,
  .form-btn-submit {
    background: var(--yellow, #ffbb00);
    color: var(--navy, #181057);
  }
  .form-btn-prev {
    background: transparent;
    border: 2px solid var(--text, #2a273b);
    color: var(--text, #2a273b);
  }
}

/* ---- ≤480px: confirm dialog buttons stacked ---- */
@media (max-width: 480px) {
  .confirm-actions {
    flex-direction: column;
  }
  .confirm-btn {
    width: 100%;
  }
}

/* ---- Scrollbar styling inside modal ---- */
.modal-form::-webkit-scrollbar {
  width: 6px;
}

.modal-form::-webkit-scrollbar-track {
  background: transparent;
}

.modal-form::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.modal-form::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* ---- Body scroll lock ---- */
body.modal-open {
  overflow: hidden;
}
