/* ============================================================
   Inspection Calculator — LIGHT MODE with #2B6AA9
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,700;1,9..144,600&display=swap');

/* ---- TOKENS ---- */
.ic-wrap {
  --blue:       #2B6AA9;
  --blue-dk:    #1e4f80;
  --blue-lt:    #4a8bc4;
  --blue-pale:  #e8f1fa;
  --blue-faint: #f2f7fd;
  --white:      #ffffff;
  --grey-bg:    #f5f8fc;
  --grey-line:  #dde6f0;
  --text:       #0f2030;
  --text-mid:   #4a6278;
  --text-soft:  #7a93a8;
  --green:      #1a7a4a;
  --red:        #c0392b;
  --radius:     14px;
  --shadow:     0 2px 24px rgba(43,106,169,0.11), 0 1px 4px rgba(43,106,169,0.07);
  --ease:       cubic-bezier(0.4,0,0.2,1);
}

/* ---- WRAPPER ---- */
.ic-wrap {
  background: var(--white);
  border: 1.5px solid var(--grey-line);
  border-radius: 22px;
  padding: 48px 44px;
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* top-right blue blob */
.ic-wrap::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(43,106,169,0.07) 0%, transparent 68%);
  pointer-events: none;
}
/* bottom-left blob */
.ic-wrap::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(43,106,169,0.05) 0%, transparent 68%);
  pointer-events: none;
}

/* ---- HEADER ---- */
.ic-head { text-align: center; margin-bottom: 36px; }

.ic-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--blue);
  background: var(--blue-faint);
  border: 1.5px solid rgba(43,106,169,0.2);
  border-radius: 100px;
  padding: 5px 18px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.ic-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.15;
  color: var(--text);
}

.ic-title span {
  color: var(--blue);
}

.ic-sub {
  color: var(--text-mid);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* ---- TIER CARDS ---- */
.ic-tiers {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.ic-tier-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s var(--ease);
}

.ic-tier-card:hover {
  border-color: rgba(43,106,169,0.35);
  background: var(--blue-faint);
}

.ic-tier-card.is-active {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 0 0 3px rgba(43,106,169,0.12);
}

.ic-tier-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ic-dot-basic    { background: #1a9e5f; }
.ic-dot-standard { background: var(--blue); }
.ic-dot-premium  { background: #e05533; }

.ic-tier-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ic-tier-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.ic-tier-range {
  font-size: 10px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-tier-amt {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

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

.ic-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ic-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Select */
.ic-sel-wrap { position: relative; }

.ic-select {
  width: 100%;
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  padding: 13px 40px 13px 15px;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.22s var(--ease);
}

.ic-select:hover,
.ic-select:focus {
  border-color: var(--blue);
  background: var(--blue-faint);
  box-shadow: 0 0 0 3px rgba(43,106,169,0.12);
}

.ic-select option { background: #fff; color: #0f2030; }

.ic-arrow {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 13px;
  pointer-events: none;
}

/* Input */
.ic-inp-wrap { position: relative; }

.ic-input {
  width: 100%;
  background: var(--grey-bg);
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  padding: 13px 15px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.22s var(--ease);
}

.ic-input:hover,
.ic-input:focus {
  border-color: var(--blue);
  background: var(--blue-faint);
  box-shadow: 0 0 0 3px rgba(43,106,169,0.12);
}

.ic-input::placeholder { color: var(--text-soft); }

.ic-suffix {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 12px;
  pointer-events: none;
}

/* ---- BUTTON ---- */
.ic-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 11px;
  padding: 17px 32px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.ic-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-dk);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.ic-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(43,106,169,0.32); }
.ic-btn:hover::after { opacity: 1; }
.ic-btn:active { transform: translateY(0); }
.ic-btn > * { position: relative; z-index: 1; }

.ic-btn-arrow {
  font-size: 18px;
  transition: transform 0.25s var(--ease);
}
.ic-btn:hover .ic-btn-arrow { transform: translateX(4px); }

/* Loader */
.ic-loader { display: flex; gap: 5px; align-items: center; }
.ic-loader span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: ic-pulse 0.8s infinite ease-in-out;
}
.ic-loader span:nth-child(2) { animation-delay: 0.15s; }
.ic-loader span:nth-child(3) { animation-delay: 0.30s; }

@keyframes ic-pulse {
  0%,80%,100% { transform: scale(0.7); opacity: 0.5; }
  40%          { transform: scale(1.0); opacity: 1; }
}

.ic-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 12px;
  margin: 13px 0 0;
}

/* ---- ERROR ---- */
.ic-err {
  background: #fdf0ef;
  border: 1.5px solid rgba(192,57,43,0.28);
  color: #a02020;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 14px;
  margin-top: 16px;
  animation: ic-in 0.3s ease;
}

/* ---- RESULT ---- */
.ic-result {
  animation: ic-in 0.45s var(--ease);
}

.ic-result-box {
  background: linear-gradient(145deg, var(--blue-faint), var(--blue-pale));
  border: 1.5px solid rgba(43,106,169,0.22);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
}

.ic-check {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a7a4a, #22a86a);
  color: #fff;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 6px 24px rgba(26,122,74,0.28);
  animation: ic-pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.ic-res-tier {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.ic-res-price {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 12vw, 88px);
  font-weight: 700;
  color: var(--blue-dk);
  line-height: 1;
  margin-bottom: 16px;
}

.ic-res-desc {
  color: var(--text-mid);
  font-size: 14px;
  max-width: 380px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

.ic-res-msg {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 28px;
}

.ic-again {
  background: transparent;
  border: 1.5px solid var(--grey-line);
  color: var(--text-mid);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  padding: 9px 26px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.ic-again:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-faint);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 560px) {
  .ic-wrap  { padding: 30px 18px; }
  .ic-grid  { grid-template-columns: 1fr; }
  .ic-tiers { flex-direction: column; }
}

/* ---- ANIMATIONS ---- */
@keyframes ic-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ic-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
