/* ── SDF LEASE CALCULATOR ── */
.sdf-calc-wrap *, .sdf-calc-wrap *::before, .sdf-calc-wrap *::after { box-sizing: border-box; }

.sdf-calc-wrap {
  --gold: #be9f55;
  --gold-light: #c39d59;
  --gold-glow: rgba(195, 157, 89, .18);
  --navy: #0c3d60;
  --navy-light: #144d78;
  --blue-border: #d1e7fc;
  --blue-bg: #edf4fb;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --shadow-md: 0 4px 16px rgba(12,61,96,.08);
  --radius: 14px;
  --radius-sm: 10px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sdf-calc-header {
  max-width: 1000px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
}
.sdf-calc-header img { height: 52px; width: auto; }

.sdf-calculator-inner {
  display: flex;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.sdf-panel {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.sdf-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.sdf-panel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sdf-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sdf-icon svg { width: 16px; height: 16px; fill: var(--white); }

/* Fields */
.sdf-field { margin-bottom: 20px; }
.sdf-field:last-child { margin-bottom: 0; }
.sdf-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sdf-select-wrap { position: relative; }
.sdf-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gold-light);
  pointer-events: none;
}

.sdf-calc-wrap .sdf-field select,
.sdf-calc-wrap .sdf-field input[type="text"],
.sdf-calc-wrap .sdf-field input[type="email"],
.sdf-calc-wrap .sdf-field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: all .2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.sdf-calc-wrap .sdf-field select { padding-right: 38px; cursor: pointer; }
.sdf-calc-wrap .sdf-field select:focus,
.sdf-calc-wrap .sdf-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.sdf-field-hint { font-size: 11px; color: var(--gray-400); margin-top: 5px; font-style: italic; }
.sdf-field-error { font-size: 11px; color: #dc2626; margin-top: 5px; display: none; font-weight: 500; }

/* Slider */
.sdf-slider-container {
  background: var(--gray-50);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px 14px;
}
.sdf-slider-value-display {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 14px;
}
.sdf-slider-value-display span { font-size: 14px; font-weight: 600; color: var(--gray-400); margin-left: 2px; }
.sdf-slider-track { position: relative; height: 6px; margin: 0 4px; }

.sdf-calc-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 2;
  margin: 0;
}
.sdf-slider-bg {
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px; background: var(--blue-border); border-radius: 3px; z-index: 0;
}
.sdf-slider-fill {
  position: absolute; top: 0; left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px; z-index: 1; transition: width .1s ease;
}
.sdf-calc-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--white);
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(195,157,89,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sdf-calc-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 3px 12px rgba(195,157,89,.4);
}
.sdf-calc-wrap input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--white);
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(195,157,89,.3);
}
.sdf-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px; font-weight: 600; color: var(--gray-400);
  margin-top: 10px; padding: 0 2px;
}

/* Overview */
.sdf-overview-placeholder {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
}
.sdf-overview-placeholder svg { width: 48px; height: 48px; fill: var(--blue-border); margin-bottom: 14px; }
.sdf-overview-placeholder p { font-size: 13.5px; line-height: 1.5; }

.sdf-overview-rows { flex: 1; }
.sdf-overview-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px;
}
.sdf-overview-row:last-of-type { border-bottom: none; }
.sdf-overview-row .sdf-lbl { color: var(--gray-500); font-weight: 500; flex: 1; }
.sdf-overview-row .sdf-val { font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }

.sdf-result-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.sdf-lbl-main { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; line-height: 1.3; }
.sdf-lbl-sub  { color: rgba(255,255,255,.45); font-size: 11px; font-weight: 600; }
.sdf-val-wrap { text-align: right; flex-shrink: 0; }
.sdf-val-amount { font-size: 26px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; line-height: 1.1; }
.sdf-val-period { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.5); margin-top: 2px; }
.sdf-disclaimer { font-size: 10.5px; color: var(--gray-400); margin-top: 12px; text-align: center; font-style: italic; }

/* Request form */
.sdf-request-section { margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--gold); }
.sdf-request-section h3 {
  font-size: 15px; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sdf-request-section h3 .sdf-icon { width: 28px; height: 28px; border-radius: 7px; }
.sdf-request-section h3 .sdf-icon svg { width: 14px; height: 14px; }

.sdf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sdf-full { grid-column: 1 / -1; }

.sdf-calc-wrap .sdf-request-section input,
.sdf-calc-wrap .sdf-request-section textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: inherit; font-weight: 500;
  color: var(--navy); outline: none; transition: all .2s ease;
}
.sdf-calc-wrap .sdf-request-section input:focus,
.sdf-calc-wrap .sdf-request-section textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.sdf-calc-wrap .sdf-request-section textarea { resize: vertical; min-height: 60px; }

.sdf-btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white); font-size: 14px; font-weight: 700; font-family: inherit;
  border: none; border-radius: var(--radius-sm);
  padding: 13px 32px; cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(195,157,89,.25);
  margin-top: 6px;
}
.sdf-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(195,157,89,.35); }
.sdf-btn-submit:active { transform: translateY(0); }
.sdf-btn-submit svg { width: 16px; height: 16px; fill: var(--white); }

.sdf-form-msg { margin-top: 10px; font-size: 12.5px; font-weight: 600; }
.sdf-form-msg.sdf-success { color: #16a34a; }
.sdf-form-msg.sdf-error   { color: #dc2626; }

/* File upload */
.sdf-file-upload-area {
  border: 1.5px dashed var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 16px; text-align: center;
  cursor: pointer; transition: all .2s ease;
  background: var(--gray-50);
}
.sdf-file-upload-area:hover, .sdf-file-upload-area:focus {
  border-color: var(--gold);
  background: rgba(195,157,89,.04);
  outline: none;
}
.sdf-file-upload-area.sdf-dragover { border-color: var(--gold); background: rgba(195,157,89,.08); }
.sdf-file-upload-area input[type="file"] { display: none; }
.sdf-file-upload-icon { width: 36px; height: 36px; margin: 0 auto 8px; fill: var(--gray-400); display: block; }
.sdf-file-upload-area:hover .sdf-file-upload-icon { fill: var(--gold-light); }
.sdf-file-upload-text { font-size: 13px; font-weight: 600; color: var(--navy); }
.sdf-file-upload-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; font-style: italic; }

.sdf-file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.sdf-file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; background: var(--white);
  border: 1px solid var(--blue-border); border-radius: 6px;
  font-size: 12px; font-weight: 500;
}
.sdf-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.sdf-file-size { color: var(--gray-400); margin-left: 8px; flex-shrink: 0; }
.sdf-file-remove {
  margin-left: 8px; background: none; border: none;
  color: var(--gray-400); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; flex-shrink: 0;
}
.sdf-file-remove:hover { color: #dc2626; }

/* Machine confirmation block */
.machine-confirm {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--blue-bg);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.machine-confirm.show { display: block; }
.machine-confirm .label {
  color: var(--gray-400);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.machine-confirm .name {
  color: var(--navy);
  font-weight: 700;
  margin-top: 2px;
}

/* Price wrap with lock icon */
.sdf-price-wrap { position: relative; }
.sdf-price-wrap .price-lock {
  display: none;
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--gray-400);
  pointer-events: none;
}
.sdf-price-wrap.locked .price-lock { display: block; }
.sdf-price-wrap.locked input {
  background: var(--gray-100);
  cursor: not-allowed;
  color: var(--gray-500);
  padding-right: 42px;
}

/* Responsive */
@media (max-width: 720px) {
  .sdf-calculator-inner { flex-direction: column; gap: 16px; }
  .sdf-form-grid { grid-template-columns: 1fr; }
  .sdf-result-box { flex-direction: column; text-align: center; gap: 8px; }
  .sdf-lbl-wrap, .sdf-val-wrap { text-align: center; }
}
