/* ═══════════════════════════════════════════════════════════
   CTC to In-Hand Salary Calculator — CSS
   Prefix: ctc- (structural), sc- (JS-referenced — unchanged)
   Site Design System: Dark #0A0F1C | Green Silo #10B981
   Font: DM Sans
   ═══════════════════════════════════════════════════════════ */
/* Rank Math Breadcrumb Styling */
.rank-math-breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.rank-math-breadcrumb a {
  color: #5A7090;
  text-decoration: none;
}
.rank-math-breadcrumb a:hover {
  color: #10B981;
}
.rank-math-breadcrumb .separator {
  color: #374B64;
  margin: 0 8px;
}
.rank-math-breadcrumb .last {
  color: #8899AA;
}

/* ── HERO ── */
.ctc-hero {
  text-align: center;
  padding: 48px 20px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.ctc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  color: #10B981;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ctc-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
  line-height: 1.2;
}

.ctc-hero-title span {
  color: #10B981;
}

.ctc-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.ctc-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ctc-htag {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #10B981;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 6px 14px;
}

/* ── CALCULATOR SECTION WRAPPER ── */
.ctc-calc-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

/* ═══════════════════════════════════════════════════════════
   .sc-wrapper — JS entry point & card container.
   All JS-referenced classes live inside this scope.
   ═══════════════════════════════════════════════════════════ */
.sc-wrapper {
  font-family: 'DM Sans', sans-serif;
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  color: #C8D8E8;
}

.sc-wrapper * {
  box-sizing: border-box;
}

/* Green top accent bar */
.sc-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #34D399, #059669);
  z-index: 1;
}

/* ── CARD HEADER ── */
.ctc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(55,75,100,0.2);
}

.ctc-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16,185,129,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.ctc-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ctc-card-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
}

/* ── FORM BODY ── */
.sc-form {
  padding: 28px 32px 32px;
}

@media (max-width: 600px) {
  .sc-form { padding: 20px 18px 24px; }
  .ctc-card-header { padding: 20px 18px 16px; }
}

/* ── GRID ── */
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .sc-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── INPUT GROUPS ── */
.sc-input-group {
  display: flex;
  flex-direction: column;
}

.sc-input-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #C8D8E8;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  display: block;
}

/* Inputs & Selects */
.sc-input-group input[type="number"],
.sc-input-group input[type="text"],
.sc-input-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10,15,28,0.6);
  border: 1px solid rgba(55,75,100,0.4);
  border-radius: 10px;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.sc-input-group input[type="number"]::placeholder,
.sc-input-group input[type="text"]::placeholder {
  color: #374B64;
}

.sc-input-group input[type="number"]:focus,
.sc-input-group input[type="text"]:focus,
.sc-input-group select:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
  background: rgba(16,185,129,0.04);
}

/* Hide number spinners */
.sc-input-group input[type="number"]::-webkit-outer-spin-button,
.sc-input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sc-input-group input[type="number"] {
  -moz-appearance: textfield;
}

/* Select custom arrow */
.sc-input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.sc-input-group select option {
  background: #111B2E;
  color: #FFFFFF;
}

/* ── INPUT HELP ── */
.sc-input-help {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #5A7090;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── RADIO GROUP ── */
.sc-radio-group {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.sc-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(10,15,28,0.5);
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  flex: 1;
  min-width: 140px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #C8D8E8;
}

.sc-radio-option:hover {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.05);
}

.sc-radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #10B981;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* Highlight the selected regime option */
.sc-radio-option:has(input[type="radio"]:checked) {
  border-color: rgba(16,185,129,0.5);
  background: rgba(16,185,129,0.08);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.2);
  color: #FFFFFF;
}

/* ── BUTTON CONTAINER ── */
.sc-btn-container {
  text-align: center;
  margin-top: 8px;
}

/* ── CALCULATE BUTTON — JS targets .sc-calculate-btn ── */
.sc-calculate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.1s;
  width: 100%;
  max-width: 340px;
}

.sc-calculate-btn:hover {
  background-color: #0EA573;
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
  transform: translateY(-1px);
}

.sc-calculate-btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.sc-calculate-btn:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* ── ERROR — JS adds/removes .sc-visible ── */
.sc-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FCA5A5;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  margin-top: 16px;
  display: none;
  transition: opacity 0.3s;
}

.sc-error.sc-visible {
  display: block;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   RESULTS — JS adds .sc-visible to .sc-results
   ═══════════════════════════════════════════════════════════ */
.sc-results {
  display: none;
  padding: 0 32px 32px;
  border-top: 1px solid rgba(55,75,100,0.2);
}

.sc-results.sc-visible {
  display: block;
  animation: ctc-fade-up 0.5s ease-out;
}

@keyframes ctc-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .sc-results { padding: 0 18px 24px; }
}

/* ── MAIN RESULT BANNER ── */
.sc-main-result {
  background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.05) 100%);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin: 28px 0 24px;
}

.sc-main-result h3 {
  margin: 0 0 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5A7090;
}

/* JS writes value to .sc-monthly-value.sc-res-monthly-inhand */
.sc-monthly-value {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #10B981;
  line-height: 1;
  letter-spacing: -1px;
}

/* JS writes to .sc-annual-value.sc-res-annual-inhand */
.sc-annual-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
  margin-top: 8px;
}

/* ── TABLES ── */
.sc-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(55,75,100,0.3);
  margin-bottom: 20px;
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
}

.sc-table th {
  background: rgba(10,15,28,0.6);
  color: #8899AA;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(55,75,100,0.3);
}

.sc-table td {
  padding: 13px 16px;
  color: #C8D8E8;
  border-bottom: 1px solid rgba(55,75,100,0.15);
  vertical-align: middle;
}

.sc-table tbody tr:last-child td {
  border-bottom: none;
}

.sc-table tbody tr:hover td {
  background: rgba(55,75,100,0.1);
}

/* Right-align amount columns */
.sc-table .sc-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Total row */
.sc-table .sc-row-total td {
  background: rgba(245,158,11,0.06);
  font-weight: 700;
  border-top: 1px solid rgba(245,158,11,0.2);
  border-bottom: none;
}

/* Deduction cell colour */
.sc-table .sc-row-deduction {
  color: #F87171;
}

/* .sc-mb-20 utility */
.sc-mb-20 {
  margin-bottom: 20px;
}

/* ── EXPLANATION BOX ──
   JS injects full HTML into .sc-explanation-text,
   including .sc-recommendation.sc-rec-new/old/neutral
*/
.sc-explanation {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-left: 4px solid #10B981;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #8899AA;
  margin-top: 4px;
}

.sc-explanation-text {
  color: #8899AA;
}

.sc-explanation-text strong {
  color: #C8D8E8;
}

/* Recommendation boxes — built dynamically by JS */
.sc-recommendation {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.sc-rec-new {
  background: rgba(16,185,129,0.1);
  border-left: 4px solid #10B981;
  color: #6EE7B7;
}

.sc-rec-new strong { color: #6EE7B7; }

.sc-rec-old {
  background: rgba(59,130,246,0.1);
  border-left: 4px solid #3B82F6;
  color: #93C5FD;
}

.sc-rec-old strong { color: #93C5FD; }

.sc-rec-neutral {
  background: rgba(245,158,11,0.08);
  border-left: 4px solid #F59E0B;
  color: #FCD34D;
}

.sc-rec-neutral strong { color: #FCD34D; }

/* ── SHARED SECTION HEADER ── */
.ctc-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.ctc-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ctc-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.ctc-section-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.ctc-hiw-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

.ctc-hiw-card {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.ctc-hiw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #3B82F6, #8B5CF6, #F59E0B);
}

.ctc-hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .ctc-hiw-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ctc-hiw-card  { padding: 28px 20px; }
}

@media (max-width: 400px) {
  .ctc-hiw-steps { grid-template-columns: 1fr; }
}

.ctc-hiw-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.ctc-s1 { background: rgba(16,185,129,0.15); color: #10B981; }
.ctc-s2 { background: rgba(59,130,246,0.15); color: #3B82F6; }
.ctc-s3 { background: rgba(139,92,246,0.15); color: #8B5CF6; }
.ctc-s4 { background: rgba(245,158,11,0.15); color: #F59E0B; }

.ctc-hiw-stepname {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.ctc-hiw-stepdesc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  line-height: 1.65;
}

/* ── INFO SECTIONS ── */
.ctc-info-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ctc-info-block {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 16px;
  padding: 32px;
}

@media (max-width: 600px) {
  .ctc-info-block { padding: 24px 20px; }
}

.ctc-info-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #10B981;
  margin: 0 0 16px;
}

.ctc-info-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  line-height: 1.8;
  margin: 0 0 12px;
}

.ctc-info-text:last-child { margin-bottom: 0; }

.ctc-info-note {
  color: #5A7090;
  font-style: italic;
  margin-top: 16px;
}

/* Info Cards (3-up grid) */
.ctc-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .ctc-info-cards { grid-template-columns: 1fr; }
}

.ctc-info-card {
  background: rgba(10,15,28,0.5);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(55,75,100,0.2);
}

.ctc-card-g { border-color: rgba(16,185,129,0.2); }
.ctc-card-b { border-color: rgba(59,130,246,0.2); }
.ctc-card-y { border-color: rgba(245,158,11,0.2); }

.ctc-icard-icon   { font-size: 28px; margin-bottom: 10px; }
.ctc-icard-label  { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; margin-bottom: 8px; }
.ctc-icard-desc   { font-family: 'DM Sans', sans-serif; font-size: 15px; color: #8899AA; line-height: 1.65; }

/* Regime Compare */
.ctc-regime-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 580px) {
  .ctc-regime-compare { grid-template-columns: 1fr; }
}

.ctc-rc-col {
  background: rgba(10,15,28,0.5);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(55,75,100,0.2);
}

.ctc-rc-head {
  padding: 12px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.ctc-rc-head-new { background: rgba(16,185,129,0.12); border-bottom: 1px solid rgba(16,185,129,0.2); }
.ctc-rc-head-old { background: rgba(59,130,246,0.12); border-bottom: 1px solid rgba(59,130,246,0.2); }

.ctc-rc-list {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctc-rc-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #8899AA;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.ctc-rc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #10B981;
}

/* ── RELATED TOOLS + QUICK FACTS ── */
.ctc-related-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.ctc-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .ctc-related-grid { grid-template-columns: 1fr; }
}

.ctc-related-block {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 16px;
  overflow: hidden;
}

.ctc-related-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(16,185,129,0.1);
  border-bottom: 1px solid rgba(16,185,129,0.2);
}

.ctc-related-tools {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.ctc-rtool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(55,75,100,0.12);
  transition: background 0.2s;
  cursor: pointer;
}

.ctc-rtool-item:last-child { border-bottom: none; }

.ctc-rtool-item:hover { background: rgba(16,185,129,0.05); }
.ctc-rtool-item:hover .ctc-rtool-arrow { color: #10B981; transform: translateX(3px); }

.ctc-rtool-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.ctc-rtool-text { flex: 1; min-width: 0; }

.ctc-rtool-text strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #C8D8E8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctc-rtool-text small {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
  line-height: 1.5;
}

.ctc-rtool-arrow {
  font-size: 14px;
  color: #374B64;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.ctc-rtool-viewall { background: rgba(16,185,129,0.04); }
.ctc-rtool-viewall .ctc-rtool-text strong { color: #10B981; }

/* Quick Facts */
.ctc-facts-list {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.ctc-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(55,75,100,0.12);
  transition: background 0.2s;
}

.ctc-fact-item:last-child { border-bottom: none; }
.ctc-fact-item:hover { background: rgba(55,75,100,0.08); }

.ctc-fact-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.ctc-fact-body { flex: 1; }

.ctc-fact-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #C8D8E8;
  margin-bottom: 3px;
  line-height: 1.3;
}

.ctc-fact-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
  line-height: 1.65;
}

/* ── FAQ ── */
.ctc-faq-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.ctc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctc-faq-item {
  background: #111B2E;
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.ctc-faq-item:hover { border-color: rgba(16,185,129,0.3); }
.ctc-faq-item.ctc-faq-open { border-color: rgba(16,185,129,0.4); }

.ctc-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.ctc-faq-q::after {
  content: '+';
  font-size: 22px;
  color: #10B981;
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.3s;
  line-height: 1;
}

.ctc-faq-item.ctc-faq-open .ctc-faq-q::after { transform: rotate(45deg); }

.ctc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  line-height: 1.7;
}

.ctc-faq-item.ctc-faq-open .ctc-faq-a { padding: 0 20px 18px; }

/* ── CTA ── */
.ctc-cta-section {
  text-align: center;
  padding: 60px 20px 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(16,185,129,0.03) 100%);
}

.ctc-cta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.ctc-cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #8899AA;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.ctc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10B981;
  color: #FFFFFF !important;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
}

.ctc-cta-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.25);
  color: #FFFFFF !important;
}

/* ── PRINT ── */
@media print {
  .sc-calculate-btn { display: none !important; }
  .sc-results       { display: block !important; }
  .sc-wrapper       { box-shadow: none; }
}

/* ═══════════════════════════════════════════════════════════
   Widget 2 Extended Styles — Calculator Card Components
   (regime card toggle, result banner, table decorators, etc.)
   ═══════════════════════════════════════════════════════════ */

/* ── Card Header (widget2 naming) ── */
.ctc-calc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(55,75,100,0.2);
}

.ctc-calc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(16,185,129,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.ctc-calc-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ctc-calc-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
}

@media (max-width: 600px) {
  .ctc-calc-header { padding: 20px 18px 16px; }
}

/* ── Input icon wrappers ── */
.ctc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ctc-input-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: #5A7090;
  pointer-events: none;
  z-index: 1;
}

/* When icon present, add left padding to the actual input/select */
.ctc-input-wrap .sc-ctc,
.ctc-input-wrap .sc-pt-state,
.ctc-input-wrap .sc-basic-percent,
.ctc-input-wrap .sc-pf-employee,
.ctc-input-wrap .sc-pf-employer {
  padding-left: 38px;
}

/* ── Percent suffix ── */
.ctc-pct-wrap .sc-basic-percent,
.ctc-pct-wrap .sc-pf-employee,
.ctc-pct-wrap .sc-pf-employer {
  padding-right: 40px;
}

.ctc-pct-suffix {
  position: absolute;
  right: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #5A7090;
  pointer-events: none;
}

/* ── Label units ── */
.ctc-label-unit {
  color: #5A7090;
  font-weight: 400;
}

/* ── Grid half (single column on all sizes) ── */
.ctc-grid-half {
  grid-template-columns: 1fr !important;
}

/* ── Regime Card Toggle ── */
.ctc-regime-group {
  margin-bottom: 24px;
}

.ctc-regime-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .ctc-regime-toggle { grid-template-columns: 1fr; }
}

.ctc-regime-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(10,15,28,0.5);
  border: 1px solid rgba(55,75,100,0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.ctc-regime-option input[type="radio"] {
  display: none;
}

.ctc-regime-option:hover {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.04);
}

.ctc-regime-active {
  border-color: rgba(16,185,129,0.5) !important;
  background: rgba(16,185,129,0.08) !important;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.2);
}

.ctc-regime-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ctc-regime-text strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.ctc-regime-text small {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #5A7090;
}

/* ── Button row ── */
.ctc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ctc-btn-icon {
  font-size: 16px;
}

.ctc-btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(55,75,100,0.4);
  color: #8899AA;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.ctc-btn-clear:hover {
  border-color: rgba(239,68,68,0.4);
  color: #F87171;
  background: rgba(239,68,68,0.06);
}

/* Disclaimer text inside form */
.ctc-disclaimer {
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* ── Result Banner ── */
.ctc-result-banner {
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.05) 100%);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 16px;
  margin: 28px 0 24px;
  overflow: hidden;
}

.ctc-result-main {
  padding: 28px 32px;
  text-align: center;
  flex-shrink: 0;
}

.ctc-result-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5A7090;
  margin-bottom: 8px;
}

.ctc-result-value {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #10B981;
  line-height: 1;
  letter-spacing: -1px;
}

.ctc-result-annual {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5A7090;
  margin-top: 6px;
}

.ctc-result-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(55,75,100,0.3);
}

.ctc-result-meta {
  display: flex;
  flex: 1;
  padding: 20px 28px;
  gap: 0;
}

.ctc-meta-item {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid rgba(55,75,100,0.2);
}

.ctc-meta-item:last-child { border-right: none; }

.ctc-meta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #5A7090;
  margin-bottom: 6px;
}

.ctc-meta-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #C8D8E8;
}

.ctc-meta-deduct { color: #F87171; }

@media (max-width: 860px) {
  .ctc-result-banner { flex-direction: column; }
  .ctc-result-divider { width: 100%; height: 1px; }
  .ctc-result-main { padding: 24px 20px 16px; }
  .ctc-result-meta { padding: 16px 20px 20px; flex-wrap: wrap; }
  .ctc-meta-item { min-width: 33%; border-right: none; }
}

/* ── Table Sections ── */
.ctc-table-section {
  margin-bottom: 20px;
}

.ctc-table-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #C8D8E8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctc-table-note {
  font-size: 13px;
  color: #5A7090;
  margin-top: 6px;
  padding: 0 2px;
  font-family: 'DM Sans', sans-serif;
}

.ctc-table-note-inline {
  font-size: 14px;
  font-weight: 400;
  color: #5A7090;
}

/* ── Row dots ── */
.ctc-row-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.ctc-dot-green  { background: #10B981; }
.ctc-dot-red    { background: #F87171; }
.ctc-dot-orange { background: #F59E0B; }
.ctc-dot-blue   { background: #3B82F6; }

/* ── Earnings row ── */
.ctc-row-earnings td { color: #10B981; }

/* ── Clear Results button ── */
.ctc-clear-results-wrap {
  text-align: center;
  margin-top: 8px;
}

.ctc-btn-clear-results {
  background: transparent;
  border: 1px solid rgba(55,75,100,0.4);
  color: #5A7090;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
}

.ctc-btn-clear-results:hover {
  border-color: rgba(239,68,68,0.4);
  color: #F87171;
  background: rgba(239,68,68,0.06);
}
