*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Weexy brand colors */
  --blue:       #107BE9;
  --blue-dark:  #18233F;
  --blue-light: #e8f2fd;
  --teal:       #6FE7DD;
  --yellow:     #FFC93C;
  --red:        #F73859;

  /* UI tokens */
  --bg:         #ffffff;
  --bg2:        #f4f7fb;
  --bg3:        #eef3fa;
  --text:       #18233F;
  --text2:      #4a5568;
  --text3:      #8898aa;
  --border:     rgba(16, 123, 233, 0.15);
  --border2:    rgba(16, 123, 233, 0.3);
  --accent:     #107BE9;
  --warn-bg:    #fff8e1;
  --warn-border:#FFC93C;
  --warn-text:  #7a5500;
  --info:       #107BE9;
  --danger:     #F73859;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-pill:30px;
}


.card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16,123,233,0.12);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(16,123,233,0.10);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--blue-light);
}

.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.3px;
}

.logo span { color: var(--blue); font-weight: 400; }

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.progress-label { font-size: 13px; color: var(--text3); white-space: nowrap; }

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.page { display: none; }
.page.active { display: block; }

h1 { font-size: 22px; font-weight: 600; margin-bottom: 0.25rem; }
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
}
.subtitle { font-size: 14px; color: var(--text3); margin-bottom: 1.5rem; }

.field { margin-bottom: 1rem; }

label.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text);
}

.req { color: var(--danger); }

input[type=text], input[type=email], input[type=tel],
input[type=date], input[type=number], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(16,123,233,0.2);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16,123,233,0.12);
}

textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

@media (max-width: 520px) {
  .cols2, .cols3 { grid-template-columns: 1fr; }
}

.radio-group, .check-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.radio-group.inline, .check-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-opt, .check-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid rgba(16,123,233,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  background: var(--bg);
  transition: all 0.15s;
  user-select: none;
}

.radio-opt:hover, .check-opt:hover { background: var(--blue-light); border-color: var(--blue); }

.radio-opt.selected, .check-opt.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 500;
}

.radio-opt input, .check-opt input { accent-color: var(--blue); }

.alert {
  background: #fff8e1;
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--warn-text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.info-box {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.section-toggle { display: none; }
.section-toggle.visible { display: block; }

.sub-card {
  background: var(--bg2);
  border: 1px solid rgba(16,123,233,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.sub-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  margin-bottom: 1rem;
}

.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 1.5rem 0;
}

.checkbox-single {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1.5px solid rgba(16,123,233,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg);
  transition: all 0.15s;
  line-height: 1.5;
}

.checkbox-single:hover { background: var(--blue-light); border-color: var(--blue); }
.checkbox-single input { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }

.terms-scroll {
  background: var(--bg2);
  border: 1px solid rgba(16,123,233,0.15);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text2);
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.terms-scroll p { margin-bottom: 0.75rem; }
.terms-scroll strong { color: var(--text); }

.btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.step-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Override Bootstrap pagination to sit inline in the btns row */
.step-navigation .pagination {
  margin: 0;
}

.step-navigation .page-link {
  font-size: 13px;
  font-weight: 500;
  min-width: 36px;
  text-align: center;
  color: var(--text3);
  border-color: rgba(16,123,233,0.2);
}

.step-navigation .page-item.active .page-link {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.step-navigation .page-item.disabled .page-link {
  color: #ccc;
  border-color: rgba(16,123,233,0.1);
  background: #f8f9fa;
  cursor: not-allowed;
}

.step-navigation .page-item:not(.active):not(.disabled) .page-link {
  cursor: pointer;
}

.step-navigation .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

.btn {
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border2);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  transition: background 0.12s, opacity 0.12s;
}

.btn:hover { background: var(--bg2); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.primary:hover { opacity: 0.82; }

.sig-pad {
  border: 1.5px dashed var(--blue);
  border-radius: var(--radius);
  height: 110px;
  cursor: crosshair;
  width: 100%;
  background: var(--blue-light);
  display: block;
}

.sig-actions { margin-top: 6px; display: flex; gap: 8px; }

.success-page {
  text-align: center;
  padding: 3.5rem 1rem;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(16,123,233,0.3);
}

.success-page h1 { margin-bottom: 0.5rem; }
.success-page p { color: var(--text2); font-size: 14px; line-height: 1.6; margin-top: 0.5rem; }
.success-page a { color: var(--info); }

.expense-table { border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.exp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
  gap: 12px;
}
.exp-row:last-child { border-bottom: none; }
.exp-row:nth-child(even) { background: var(--bg2); }
.exp-row span:first-child { flex: 1; color: var(--text2); }
.exp-input { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dollar { font-size: 13px; color: var(--text3); font-weight: 500; }
.exp-input input[type=number] {
  width: 120px;
  padding: 5px 8px;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius);
  font-size: 13px;
  text-align: right;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.exp-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  margin-top: 8px;
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
}

.sche-table { width:100%; border-collapse:collapse; font-size:13px; min-width:500px; }
.sche-table th { background:var(--bg2); padding:8px 10px; border:0.5px solid var(--border); color:var(--text3); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.4px; text-align:center; }
.sche-table th:first-child { text-align:left; }
.sche-table td { padding:7px 10px; border:0.5px solid var(--border); vertical-align:middle; color:var(--text2); }
.sche-table td:first-child { color:var(--text); }
.sche-table tr:nth-child(even) td { background:var(--bg2); }
.sche-table .income-row td { background:#e8f8f0; font-weight:500; color:var(--blue-dark); }
.sche-table .total-row td { background:var(--blue-light); font-weight:600; color:var(--blue); }
.sche-table .net-row td { background:#e8f8f0; font-weight:700; color:#1a5c3a; border-top:2px solid var(--teal); }
.sche-table .exp-input { justify-content:center; }
.sche-table .exp-input input { width:100px; }

.status-card { padding: 12px 14px !important; align-items: center !important; border-radius: var(--radius) !important; }
.status-card.selected { border-color: var(--blue) !important; background: var(--blue-light) !important; box-shadow: 0 0 0 3px rgba(16,123,233,0.12); }
.status-card-body { display:flex; align-items:center; gap: 12px; flex:1; pointer-events:none; }
.status-emoji { font-size: 22px; flex-shrink:0; line-height:1; }
.status-card-body div { flex:1; }
.status-card-body strong { font-size:14px; font-weight:600; color:var(--text); display:block; margin-bottom:2px; }
.status-card-body p { font-size:12px; color:var(--text3); margin:0; line-height:1.4; }
.status-result-badge {
  display:flex; align-items:flex-start; gap:10px;
  padding:12px 14px;
  border-radius:var(--radius-lg);
  font-size:13px; line-height:1.6;
}
.status-result-badge.resident { background:#eaf3de; border:0.5px solid #a8d47a; color:#2d6a1f; }
.status-result-badge.nonresident { background:#eef4fd; border:0.5px solid #b5d0f4; color:#1a4f8a; }
.status-result-badge.tourist { background:#fff8e1; border:0.5px solid #f5c842; color:#7a5c00; }
.spt-pass { background:#e8f8f0; border-left:3px solid #6FE7DD; border-radius:var(--radius-lg); padding:12px 14px; font-size:13px; color:#1a6f45; display:flex; align-items:flex-start; gap:10px; }
.spt-fail { background:var(--blue-light); border-left:3px solid var(--blue); border-radius:var(--radius-lg); padding:12px 14px; font-size:13px; color:var(--blue-dark); display:flex; align-items:flex-start; gap:10px; }
.spt-exempt { background:#fff8e1; border-left:3px solid var(--yellow); border-radius:var(--radius-lg); padding:12px 14px; font-size:13px; color:#7a5500; display:flex; align-items:flex-start; gap:10px; }

/* Report badges */
.form-badge { display:inline-flex; align-items:center; gap:10px; padding:12px 20px; border-radius:var(--radius-pill); font-weight:700; font-size:15px; margin-bottom:1rem; box-shadow:0 2px 10px rgba(0,0,0,0.08); }
.form-badge.f1040 { background:linear-gradient(135deg,#6FE7DD,#3dccc0); color:#fff; }
.form-badge.f1040nr { background:linear-gradient(135deg,var(--blue),#1a8fff); color:#fff; }
.form-badge.unknown { background:linear-gradient(135deg,var(--yellow),#ffb300); color:#18233F; }
.preparer-alert { background:#fff0f3; border-left:3px solid var(--red); border-radius:var(--radius); padding:12px 14px; font-size:13px; color:#a32d2d; margin-bottom:0.75rem; display:flex; align-items:flex-start; gap:10px; line-height:1.6; }
.preparer-note { background:var(--bg2); border:1px solid rgba(16,123,233,0.12); border-radius:var(--radius); padding:12px 14px; font-size:12px; color:var(--text3); margin-top:1rem; font-style:italic; }

.btn-add-new {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill);
  cursor: pointer; font-family: 'Work Sans', sans-serif;
  transition: all .15s;
}
.btn-add-new:hover { background: var(--blue); color: #fff; }
.add-new-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
}
.add-new-row:nth-child(even) { background: var(--bg2); }
.add-new-name {
  flex: 1; border: none; background: transparent;
  font-size: 13px; font-family: inherit; color: var(--text);
  min-width: 0;
}
.add-new-name:focus { outline: none; }
.btn-remove-row {
  background: none; border: none; cursor: pointer;
  color: var(--text3); font-size: 14px; line-height:1;
  padding: 2px 4px; flex-shrink: 0;
  transition: color .12s;
}
.btn-remove-row:hover { color: var(--danger); }
#sched-c-others {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

#drop-zone {
  border: 2px dashed rgba(16,123,233,0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--blue-light);
  margin-top: 6px;
}
#drop-zone.drag-over {
  background: #d0e8fa;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16,123,233,0.12);
}
.drop-icon { font-size: 28px; margin-bottom: 8px; color: var(--text3); }
.drop-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.drop-sub { font-size: 13px; color: var(--text3); }
#file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.file-item-name { display: flex; align-items: center; gap: 8px; color: var(--text2); }
.file-item-size { color: var(--text3); font-size: 12px; }
.file-remove { cursor: pointer; color: var(--text3); font-size: 16px; line-height:1; padding: 0 4px; border: none; background: none; }
.file-remove:hover { color: var(--danger); }
.doc-needed-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 13px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px; color: var(--text2); line-height: 1.5;
  margin-bottom: 6px;
}
.doc-needed-item .doc-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.doc-needed-item:nth-child(even) { background: var(--bg2); }

.report-list { display:flex; flex-direction:column; gap:6px; }
.report-item {
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 14px;
  background:var(--bg);
  border:1px solid rgba(16,123,233,0.1);
  border-left:3px solid var(--teal);
  border-radius:var(--radius);
  font-size:13px; color:var(--text2); line-height:1.5;
}
.report-item:nth-child(even) { background:var(--bg2); }
.report-icon { font-size:16px; flex-shrink:0; margin-top:1px; }

.dep-item {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.dep-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  margin-bottom: 1rem;
}
