/* ================================================================
   NC Property Transfer Fee Calculator – Stylesheet
   Author: Devolper | Version: 1.0.0
   Theme: Crisp White + Deep Teal/Navy Accents
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── VARIABLES ── */
:root {
  --tc-teal:        #0d7377;
  --tc-teal-dark:   #095e62;
  --tc-teal-light:  #e6f4f4;
  --tc-teal-mid:    #b8e0e1;
  --tc-navy:        #0f2b4a;
  --tc-navy2:       #1a3c5e;
  --tc-orange:      #f97316;
  --tc-orange-bg:   #fff7ed;
  --tc-green:       #059669;
  --tc-green-bg:    #ecfdf5;
  --tc-green-bdr:   #a7f3d0;
  --tc-red:         #dc2626;
  --tc-red-bg:      #fef2f2;
  --tc-text:        #0f1a2e;
  --tc-text2:       #4b5e73;
  --tc-text3:       #8fa3b8;
  --tc-bg:          #f0f4f8;
  --tc-white:       #ffffff;
  --tc-border:      #dde8f0;
  --tc-border2:     #c5d5e4;
  --tc-radius:      18px;
  --tc-radius-sm:   10px;
  --tc-radius-xs:   7px;
  --tc-shadow:      0 2px 16px rgba(13,115,119,0.10), 0 1px 3px rgba(0,0,0,0.05);
  --tc-shadow-lg:   0 8px 48px rgba(15,43,74,0.13), 0 2px 8px rgba(0,0,0,0.06);
  --tc-font:        'Outfit', sans-serif;
  --tc-mono:        'JetBrains Mono', monospace;
  --tc-ease:        0.22s ease;
}

/* ── RESET ── */
#nctfc-wrap, #nctfc-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#nctfc-wrap {
  font-family: var(--tc-font);
  background: var(--tc-bg);
  border-radius: var(--tc-radius);
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--tc-shadow-lg);
  border: 1px solid var(--tc-border);
}

/* ── HEADER ── */
.nctfc-header {
  background: linear-gradient(135deg, #0f2b4a 0%, #0d5c6b 55%, #0d7377 100%);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.nctfc-header::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.nctfc-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.nctfc-header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1;
}

.nctfc-logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}

.nctfc-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.nctfc-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 400;
}

.nctfc-badge {
  z-index: 1;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── INFO BAR ── */
.nctfc-infobar {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 10px 30px;
  font-size: 12.5px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.nctfc-infobar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nctfc-infobar svg { flex-shrink: 0; color: #d97706; }
.nctfc-infobar strong { color: #78350f; }

/* ── CARD ── */
.nctfc-card {
  background: var(--tc-white);
  padding: 30px 30px 28px;
}

/* ── STEP INDICATORS ── */
.nctfc-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.nctfc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nctfc-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tc-teal-light);
  border: 2px solid var(--tc-teal-mid);
  color: var(--tc-teal);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tc-ease);
}

.nctfc-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tc-text3);
  white-space: nowrap;
}

.nctfc-step-line {
  flex: 1;
  height: 2px;
  background: var(--tc-border);
  margin: 0 8px;
  margin-bottom: 18px;
}

/* ── FORM ── */
.nctfc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.nctfc-field-full { grid-column: 1 / -1; }

/* ── LABELS ── */
.nctfc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tc-text2);
  margin-bottom: 7px;
}

.nctfc-label svg { color: var(--tc-teal); flex-shrink: 0; }
.nctfc-req { color: var(--tc-red); margin-left: 1px; }

.nctfc-tip {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--tc-teal);
  background: var(--tc-teal-light);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: auto;
}

/* ── SELECT ── */
.nctfc-select-wrap {
  position: relative;
}

.nctfc-select-wrap select {
  width: 100%;
  background: var(--tc-white);
  border: 1.5px solid var(--tc-border);
  color: var(--tc-text);
  font-family: var(--tc-font);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 40px 11px 14px;
  border-radius: var(--tc-radius-sm);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border var(--tc-ease), box-shadow var(--tc-ease);
}

.nctfc-select-wrap select option { background: #fff; }

.nctfc-select-wrap select:focus {
  border-color: var(--tc-teal);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.12);
}

.nctfc-chevron {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--tc-text3);
  pointer-events: none;
  display: flex;
}

/* ── COUNTY INFO ── */
.nctfc-county-info {
  font-size: 12px;
  font-weight: 500;
  color: var(--tc-teal);
  margin-top: 6px;
  min-height: 16px;
  padding-left: 2px;
  line-height: 1.5;
}

/* ── INPUTS ── */
.nctfc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nctfc-input-wrap input {
  width: 100%;
  background: var(--tc-white);
  border: 1.5px solid var(--tc-border);
  color: var(--tc-text);
  font-family: var(--tc-font);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: var(--tc-radius-sm);
  outline: none;
  transition: border var(--tc-ease), box-shadow var(--tc-ease);
}

.nctfc-input-wrap input:focus {
  border-color: var(--tc-teal);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.12);
}

.nctfc-input-wrap input::placeholder { color: var(--tc-text3); font-weight: 400; }

.nctfc-prefix, .nctfc-suffix {
  position: absolute;
  font-size: 15px;
  color: var(--tc-text3);
  font-weight: 600;
  pointer-events: none;
}

.nctfc-prefix { left: 13px; }
.nctfc-suffix { right: 13px; }
#nctfc-price { padding-left: 28px; }
#nctfc-rate  { padding-right: 30px; }

/* ── BUTTON ── */
.nctfc-btn {
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--tc-teal) 0%, #0a9499 100%);
  color: #fff;
  font-family: var(--tc-font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--tc-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all var(--tc-ease);
  box-shadow: 0 4px 18px rgba(13,115,119,0.30);
  letter-spacing: 0.1px;
}

.nctfc-btn:hover {
  background: linear-gradient(135deg, var(--tc-teal-dark) 0%, var(--tc-teal) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(13,115,119,0.40);
}

.nctfc-btn:active { transform: translateY(0); }

.nctfc-btn-ghost {
  padding: 10px 18px;
  background: transparent;
  color: var(--tc-text2);
  font-family: var(--tc-font);
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  transition: all var(--tc-ease);
}

.nctfc-btn-ghost:hover {
  border-color: var(--tc-teal);
  color: var(--tc-teal);
  background: var(--tc-teal-light);
}

/* ── ERROR ── */
.nctfc-error {
  margin-top: 14px;
  padding: 11px 15px;
  background: var(--tc-red-bg);
  border: 1.5px solid #fecaca;
  border-radius: var(--tc-radius-sm);
  font-size: 13.5px;
  color: var(--tc-red);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tcFadeIn 0.25s ease;
}

/* ── RESULTS ── */
.nctfc-results {
  margin-top: 26px;
  border-top: 1.5px dashed var(--tc-border);
  padding-top: 26px;
  animation: tcFadeIn 0.35s ease;
}

.nctfc-results-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 20px;
}

.nctfc-results-title svg { color: var(--tc-green); }

/* ── SUMMARY ROW ── */
.nctfc-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.nctfc-summary-item {
  background: #f8fafc;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  padding: 12px 14px;
}

.nctfc-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tc-text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.nctfc-summary-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--tc-text);
  word-break: break-word;
}

/* ── BIG NUMBERS ── */
.nctfc-big-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.nctfc-big-card {
  border-radius: var(--tc-radius-sm);
  padding: 22px 20px;
  text-align: center;
  border: 1.5px solid var(--tc-border);
  transition: box-shadow var(--tc-ease);
  position: relative;
  overflow: hidden;
}

.nctfc-big-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.nctfc-big-fee { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border-color: var(--tc-green-bdr); }
.nctfc-big-fee::before { background: linear-gradient(90deg, var(--tc-green), #34d399); }

.nctfc-big-total { background: linear-gradient(135deg, #e6f4f4 0%, #ccebec 100%); border-color: var(--tc-teal-mid); }
.nctfc-big-total::before { background: linear-gradient(90deg, var(--tc-teal), #0a9499); }

.nctfc-big-card:hover { box-shadow: var(--tc-shadow); }

.nctfc-big-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.nctfc-big-fee .nctfc-big-label   { color: var(--tc-green); }
.nctfc-big-total .nctfc-big-label { color: var(--tc-teal); }

.nctfc-big-val {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}

.nctfc-big-fee .nctfc-big-val   { color: var(--tc-green); }
.nctfc-big-total .nctfc-big-val { color: var(--tc-teal); }

.nctfc-big-sub {
  font-size: 11.5px;
  color: var(--tc-text3);
  font-weight: 400;
}

/* ── BREAKDOWN ── */
.nctfc-breakdown {
  background: #f8fafc;
  border: 1px solid var(--tc-border);
  border-left: 3px solid var(--tc-teal);
  border-radius: var(--tc-radius-xs);
  padding: 14px 18px;
}

.nctfc-breakdown-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tc-text3);
  margin-bottom: 10px;
}

.nctfc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--tc-text2);
  border-bottom: 1px dashed var(--tc-border);
}

.nctfc-breakdown-row:last-child { border-bottom: none; }

.nctfc-breakdown-row code {
  font-family: var(--tc-mono);
  font-size: 12px;
  color: var(--tc-teal-dark);
  background: var(--tc-teal-light);
  padding: 3px 8px;
  border-radius: 4px;
  max-width: 60%;
  text-align: right;
  word-break: break-all;
}

.nctfc-breakdown-row strong { color: var(--tc-text); font-weight: 700; }

/* ── FOOTER ── */
.nctfc-footer {
  background: #f8fafc;
  border-top: 1px solid var(--tc-border);
  padding: 12px 30px;
  font-size: 11.5px;
  color: var(--tc-text3);
  line-height: 1.6;
}

.nctfc-footer strong { color: var(--tc-text2); }

/* ── ANIMATION ── */
@keyframes tcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nctfc-header { padding: 18px 18px; flex-wrap: wrap; gap: 10px; }
  .nctfc-badge { display: none; }
  .nctfc-infobar { padding: 9px 18px; font-size: 11.5px; }
  .nctfc-card { padding: 20px 18px 22px; }
  .nctfc-footer { padding: 10px 18px; }

  .nctfc-form { grid-template-columns: 1fr; gap: 16px; }
  .nctfc-field-full { grid-column: 1; }

  .nctfc-steps { gap: 0; }
  .nctfc-step-label { font-size: 10px; }
  .nctfc-step-num { width: 28px; height: 28px; font-size: 12px; }

  .nctfc-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nctfc-summary-item:last-child { grid-column: 1 / -1; }

  .nctfc-big-nums { grid-template-columns: 1fr; gap: 12px; }
  .nctfc-big-val { font-size: 28px; }

  .nctfc-title { font-size: 15px; }
  .nctfc-subtitle { font-size: 11px; }
  .nctfc-logo { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
  .nctfc-big-val { font-size: 24px; }
  .nctfc-summary { grid-template-columns: 1fr; }
  .nctfc-summary-item:last-child { grid-column: 1; }
  .nctfc-btn { font-size: 14px; }
  .nctfc-steps { display: none; }
}

@media print {
  #nctfc-wrap { box-shadow: none; border: 1px solid #ccc; }
  .nctfc-header { background: #0f2b4a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nctfc-btn, .nctfc-btn-ghost { display: none; }
}
