/* ---------- Design Tokens ---------- */
:root {
  --primary: #0a5fe6;
  --primary-dark: #084bb8;
  --primary-light: #e8f1ff;
  --accent-green: #1dbf73;
  --accent-orange: #f59e0b;
  --error: #dc2626;
  --text-dark: #1a1a1a;
  --muted: #6b7280;
  --border: #d1d5db;
  --card: #f9fafb;
  --white: #ffffff;
  --radius-input: 8px;
  --radius-btn: 10px;
  --shadow-soft: 0 6px 18px rgba(10, 94, 230, 0.06);
  --max-width: 760px;
  --gap: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

/* ---------- Page ---------- */
.estimation-page {
  margin: 0;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 16px 16px;
  display: flex;
  justify-content: center;
  font-size: 16px;
  line-height: 1.4;
  max-width: 100% !important;
}
.wrap {
  width: 100%;
  max-width: var(--max-width);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
header p {
  margin: 8px 0 20px;
  color: var(--muted);
}

/* ---------- Progress ---------- */
.progress {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  background: transparent;
}
.step {
  flex: 1;
  background: var(--border);
  height: 8px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.step.active {
  background: var(--primary-light);
}
.step .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--primary);
  width: 0%;
  transition: width 0.45s ease;
}

.step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 12px;
}

/* ---------- Form Layout ---------- */
form {
  display: block;
}
.section {
  margin-bottom: 22px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  width: fit-content;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  outline: none;
  font-size: 15px;
  background: #fff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  outline: none;
  font-size: 15px;
  background: #fff;
}
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(10, 95, 230, 0.08);
  border-color: var(--primary);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #f0f4f9;
  margin-bottom: 12px;
}

/* ---------- Controls ---------- */
.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(10, 94, 230, 0.08);
}
.btn:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Inline helpers ---------- */
.es-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.radio,
.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  accent-color: var(--primary);
}
.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
}
.error-wpser {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
}

/* ---------- Success ---------- */
.success {
  text-align: center;
  padding: 28px 10px;
}
.success h2 {
  color: var(--accent-green);
  margin: 10px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.ser_list {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ser_link {
  margin: 0px 0px 8px 8px;
}
