/* KMD Stamp Duty Calculator v1.0 */
/* Matches KMD Borrowing Calculator styling */

body.page #main-container, body.page .ct-container-full,
body.page .entry-content, body.page article { background: #1a2332; }
.kmd-sdlt-bleed { display: block; width: 100%; margin: 0; padding: 0; }

#kmd-sdlt-wrap {
  font-family: 'DM Sans', sans-serif;
  background-color: #1a2332;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='%231a2332'/%3E%3Crect x='0' y='0' width='3' height='3' fill='%231d2737' opacity='0.6'/%3E%3Crect x='3' y='3' width='3' height='3' fill='%231d2737' opacity='0.6'/%3E%3C/svg%3E");
  color: #f0eee9;
  line-height: 1.6;
  width: 100%;
}

/* ── Title strip ── */
.ks-title-strip { border-bottom: 1px solid rgba(200,205,212,0.13); padding: 90px 32px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ks-pt-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #9fa8b2; font-weight: 500; }
.ks-header-cta { background: transparent; border: 1px solid rgba(200,205,212,0.28); color: #c8cdd4; padding: 0 18px; height: 44px; line-height: 44px; border-radius: 10px; font-size: 13px; font-family: 'DM Sans', sans-serif; font-weight: 500; text-decoration: none; letter-spacing: 0.03em; transition: background 0.2s, color 0.2s; white-space: nowrap; flex-shrink: 0; display: inline-block; }
.ks-header-cta:hover { background: #c8cdd4; color: #1a2332; }

/* ── Hero ── */
.ks-hero { text-align: center; padding: 40px 24px 36px; max-width: 660px; margin: 0 auto; }
.ks-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fa8b2; font-weight: 500; margin-bottom: 14px; }
.ks-hero h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 5vw, 44px); font-weight: 500; line-height: 1.15; color: #f0eee9; margin-bottom: 14px; border: none; padding: 0; background: none; text-align: center; }
.ks-hero p { font-size: 15px; color: #a8b4c0; font-weight: 300; max-width: 520px; margin: 0 auto; }

/* ── Container ── */
.ks-container { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Section label ── */
.ks-section-label { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: #9fa8b2; font-weight: 500; margin-bottom: 14px; }

/* ── Buyer type selector ── */
.ks-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.ks-type-btn { background: #243044; border: 1px solid rgba(200,205,212,0.13); border-radius: 14px; padding: 18px 16px; cursor: pointer; text-align: left; transition: all 0.2s; display: flex; flex-direction: column; gap: 4px; font-family: 'DM Sans', sans-serif; }
.ks-type-btn:hover { border-color: rgba(200,205,212,0.4); background: #2a3650; }
.ks-type-btn.ks-active { border-color: #c8cdd4; background: rgba(200,205,212,0.08); }
.ks-type-icon { font-size: 22px; margin-bottom: 4px; }
.ks-type-label { font-size: 15px; font-weight: 500; color: #e2e6eb; }
.ks-type-desc { font-size: 12px; color: #9fa8b2; }

/* ── Info box ── */
.ks-info-box { background: rgba(200,205,212,0.05); border: 1px solid rgba(200,205,212,0.13); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-size: 13px; color: #a8b4c0; line-height: 1.6; }
.ks-info-box strong { color: #e2e6eb; }
.ks-info-box a { color: #a8c4e0; text-decoration: none; display: inline-block; margin-top: 8px; font-size: 12px; }
.ks-info-box a:hover { color: #c8ddf0; text-decoration: underline; }

/* ── Two-column layout ── */
.ks-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ── Panels ── */
.ks-panel { background: #243044; border: 1px solid rgba(200,205,212,0.13); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.ks-panel-title { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: #9fa8b2; font-weight: 500; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.ks-panel-title::after { content: ''; flex: 1; height: 1px; background: rgba(200,205,212,0.13); }

/* ── Input ── */
.ks-input-wrap { display: flex; align-items: center; background: rgba(200,205,212,0.07); border: 1px solid rgba(200,205,212,0.2); border-radius: 10px; padding: 0 16px; margin-bottom: 16px; }
.ks-prefix { font-size: 20px; color: #9fa8b2; margin-right: 8px; font-weight: 300; }
#kmd-sdlt-wrap .ks-input,
#kmd-sdlt-wrap input.ks-input,
#kmd-sdlt-wrap input[type="text"].ks-input { background: none !important; border: none !important; outline: none !important; font-size: 24px !important; font-weight: 500 !important; color: #f0eee9 !important; -webkit-text-fill-color: #f0eee9 !important; font-family: 'DM Sans', sans-serif !important; padding: 14px 0 !important; width: 100% !important; letter-spacing: -0.3px !important; box-shadow: none !important; }
#kmd-sdlt-wrap .ks-input::placeholder { color: #4a5568 !important; -webkit-text-fill-color: #4a5568 !important; font-weight: 300 !important; }

/* ── Slider ── */
.ks-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: rgba(200,205,212,0.2); border-radius: 2px; outline: none; margin-bottom: 8px; }
.ks-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #c8cdd4; cursor: pointer; }
.ks-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #c8cdd4; cursor: pointer; border: none; }
.ks-slider-labels { display: flex; justify-content: space-between; font-size: 10px; color: #6b7a8a; margin-top: 2px; }

/* ── Rate table ── */
.ks-rate-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ks-rate-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #9fa8b2; font-weight: 500; padding: 0 0 10px; text-align: left; border-bottom: 1px solid rgba(200,205,212,0.13); }
.ks-rate-table td { padding: 9px 0; border-bottom: 1px solid rgba(200,205,212,0.07); color: #a8b4c0; font-size: 12px; }
.ks-rate-table .ks-active-band td { color: #e2e6eb; background: rgba(200,205,212,0.04); }
.ks-rate-table .ks-active-band td:last-child { color: #f0eee9; font-weight: 500; }
.ks-rate-table .ks-total-row td { border-top: 1px solid rgba(200,205,212,0.2); border-bottom: none; color: #f0eee9; font-weight: 600; padding-top: 12px; }

/* ── Result panel ── */
.ks-result-panel { background: linear-gradient(135deg, #1e3a5f 0%, #243044 100%); border: 1px solid rgba(200,205,212,0.2); border-radius: 16px; padding: 28px 24px; margin-bottom: 16px; }
.ks-result-eyebrow { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: #9fa8b2; margin-bottom: 10px; }
.ks-result-amount { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 6vw, 52px); font-weight: 500; color: #f0eee9; letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px; }
.ks-result-pct { font-size: 13px; color: #9fa8b2; margin-bottom: 0; }
.ks-result-divider { height: 1px; background: rgba(200,205,212,0.13); margin: 18px 0; }
.ks-result-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.ks-result-row span:first-child { color: #9fa8b2; }
.ks-result-row span:last-child { color: #e2e6eb; font-weight: 500; }

/* ── Warning ── */
.ks-warning { background: rgba(220,150,50,0.12); border: 1px solid rgba(220,150,50,0.3); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: #dca050; line-height: 1.5; margin-bottom: 16px; }

/* ── CTA button ── */
.ks-cta-btn { display: block; text-align: center; background: #c8cdd4; color: #1a2332; border-radius: 10px; padding: 14px 20px; font-size: 14px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em; transition: background 0.2s; margin-top: 4px; font-family: 'DM Sans', sans-serif; }
.ks-cta-btn:hover { background: #f0eee9; color: #1a2332; }

/* ── Breakdown panel ── */
.ks-breakdown-row { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px solid rgba(200,205,212,0.07); color: #a8b4c0; }
.ks-breakdown-row:last-child { border-bottom: none; }
.ks-breakdown-highlight { color: #e2e6eb; font-weight: 500; }
.ks-breakdown-total { color: #f0eee9; font-weight: 600; font-size: 14px; border-top: 1px solid rgba(200,205,212,0.2) !important; padding-top: 12px; }

/* ── Disclaimer ── */
.ks-disclaimer { background: rgba(200,205,212,0.04); border: 1px solid rgba(200,205,212,0.1); border-radius: 12px; padding: 20px 24px; margin-top: 8px; }
.ks-disclaimer-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #9fa8b2; font-weight: 500; margin-bottom: 10px; }
.ks-disclaimer p { font-size: 12px; color: #7a8694; line-height: 1.6; }
.ks-disclaimer a { color: #a8c4e0; text-decoration: none; }
.ks-disclaimer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .ks-type-grid { grid-template-columns: 1fr; }
  .ks-columns { grid-template-columns: 1fr; }
  .ks-title-strip { padding-top: 40px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Email section ── */
.ks-email-section { border-top: 1px solid rgba(200,205,212,0.13); padding-top: 16px; margin-top: 4px; }
.ks-email-title { font-size: 12px; color: #9fa8b2; margin-bottom: 8px; letter-spacing: 0.04em; }
.ks-email-intro { font-size: 12px; color: #7a8694; line-height: 1.5; margin-bottom: 12px; }
.ks-email-row { display: flex; gap: 8px; margin-bottom: 0; }
#kmd-sdlt-wrap .ks-email-input,
#kmd-sdlt-wrap input[type="email"].ks-email-input { flex: 1; min-width: 0; font-size: 14px !important; padding: 10px 12px !important; background: rgba(200,205,212,0.07) !important; border: 1px solid rgba(200,205,212,0.2) !important; border-radius: 8px !important; color: #f0eee9 !important; font-family: 'DM Sans', sans-serif !important; outline: none !important; box-shadow: none !important; }
#kmd-sdlt-wrap .ks-email-input::placeholder { color: #4a5568 !important; }
.ks-email-btn { background: #c8cdd4; color: #1a2332; border: none; border-radius: 8px; padding: 10px 18px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.ks-email-btn:hover { background: #e2e6eb; }
.ks-email-status { font-size: 12px; margin-top: 8px; min-height: 18px; }
.ks-email-status.ks-success { color: #7fcfb5; }
.ks-email-status.ks-error { color: #f08080; }
.ks-consent-row { margin-top: 12px; }
.ks-consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #a8b4c0; cursor: pointer; line-height: 1.5; }
.ks-consent-label input[type="checkbox"] { accent-color: #c8cdd4; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ks-name-row { margin-top: 12px; }
.ks-name-label { font-size: 12px; color: #9fa8b2; display: block; margin-bottom: 6px; }
#kmd-sdlt-wrap .ks-text-input,
#kmd-sdlt-wrap input[type="text"].ks-text-input { width: 100%; font-size: 14px !important; padding: 10px 12px !important; background: rgba(200,205,212,0.07) !important; border: 1px solid rgba(200,205,212,0.2) !important; border-radius: 8px !important; color: #f0eee9 !important; font-family: 'DM Sans', sans-serif !important; outline: none !important; box-shadow: none !important; }
#kmd-sdlt-wrap .ks-text-input::placeholder { color: #4a5568 !important; }
