/* ============================================================
   FONTS & BASE
============================================================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --color-gold: #d97706;
  --border-color: #c46201;
}

/* ============================================================
   RESET
============================================================= */
* {
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================================
   INPUTS (TEXT / EMAIL / DATE)
============================================================= */
.input-gold {
  padding: 8px 0;
  border: none;
  border-bottom: 2px solid var(--border-color);
  background: transparent;
  outline: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.input-gold:valid {
  border-bottom-color: var(--border-color);
}

/* ============================================================
   RADIO BUTTONS
============================================================= */
.input-radio,
.cra-radio {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #333 !important;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.input-radio:checked,
.cra-radio:checked {
  background: var(--border-color) !important;
  border-color: var(--border-color) !important;
  box-shadow: inset 0 0 0 3px white;
}

.input-radio.error {
  border-color: red !important;
}

/* ============================================================
   VALIDATION STATES
============================================================= */

/* ============================================================
   ERROR MESSAGES
============================================================= */
.error-msg {
  margin-top: 4px;
}

/* ============================================================
   CARD & STEP VISIBILITY
============================================================= */
.card {
  display: none;
  transition: all 0.3s ease;
}

.card.active {
  display: block;
}

[data-step] {
  display: none;
}

[data-step].active {
  display: block;
}

.hidden-btn {
  display: none;
}

/* ============================================================
   ERROR MESSAGES
============================================================= */
.error-msg {
  display: none;
  margin-top: 4px;
}

/* ============================================================
   FORM SECTIONS
============================================================= */
.form-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #dde0e4;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.income-section {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #dde0e4;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.section-title {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: white;
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.section-subtitle {
  font-size: 0.875rem;
  opacity: 0.95;
  margin-top: 0.25rem;
  font-weight: 400;
}

.field-group {
  padding: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.field-group:last-child {
  border-bottom: none;
}

.field-label {
  display: block;
  font-size: 12pt;
  font-weight: 800;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* ============================================================
   RADIO / CHECKBOX CARDS
============================================================= */
.radio-card,
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card:has(input:checked),
.checkbox-card:has(input:checked) {
  border-color: var(--color-gold);
}

/* ============================================================
   PROVINCE GRID
============================================================= */
.province-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.province-option:hover {
  background: #fef3c7;
  border-color: var(--color-gold);
}

/* ==============================
   Next Button (FIXED)
================================ */
.btn-next {
  background-image: linear-gradient(to bottom right, #d97706, #f59e0b);
  background-color: #d97706; /* fallback */
  color: #ffffff;
  padding: 10px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.btn-next:hover,
.btn-next:focus,
.btn-next:active {
  background: linear-gradient(to bottom right, #d97706, #f59e0b) !important;
  color: #ffffff !important;
  transform: translateY(0px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}
/* ==============================
   Back Button (FIXED)
================================ */
.btn-back {
  background-color: #ffffff;
  color: #4b5563;
  padding: 10px 30px;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #3c3d3d;
  cursor: pointer;
}

.btn-back:hover,
.btn-back:focus {
  background-color: transparent !important;
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(34, 34, 33, 0.3);
}

/* ==============================
   Footer
================================ */
.footer-flex {
  display: flex;
  justify-content: center;
}
