/* Reference: Neolis-style quote — single page, Inter, Tailwind-like tokens */
:root {
  --green: #28a745;
  --green-hover: #218838;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --text: #1a202c;
  --text-muted: #718096;
  --text-secondary: #4a5568;
  --border: #e2e8f0;
  --border-input: #d1d5db;
  --bg: #eef1f4;
  --bg-quote: #f3f4f6;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 0.5rem;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.04);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ring: rgba(40, 167, 69, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

/* Form + quote column — reference max-width 42rem */
.content-shell {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

.content-shell--quote {
  margin-top: 1.5rem;
  padding: 1.5rem 1rem 2rem;
  background: var(--bg-quote);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header--center {
  text-align: center;
}

.page-header--center h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.page-header--center p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

/* Panels — single white card for entire form */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.75rem 2rem;
  margin-bottom: 0;
  border: 1px solid var(--border);
}

.panel--single {
  padding: 2rem 1.75rem 2rem;
}

.hardware-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.numbers-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.name-row .form-row {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .name-row {
    grid-template-columns: 1fr;
  }
}

label.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
}

.input-block {
  display: block;
  width: 100%;
  max-width: 100%;
}

.input-sites {
  width: 100%;
  max-width: 120px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"]:not(.qty-input--corner) {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--ring);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-row label {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 400;
}

.checkbox-row input[type="checkbox"]:not(.checkbox--blue) {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
  flex-shrink: 0;
}

.checkbox--blue {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
  flex-shrink: 0;
}

/* Section: types of positions */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.total-badge {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Types of positions — one vertical card per product */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .position-grid {
    grid-template-columns: 1fr;
  }
}

.position-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.15rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.position-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.position-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.position-card .model {
  font-size: 0.8125rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.qty-input--corner {
  width: 3rem;
  min-width: 3rem;
  padding: 0.35rem 0.4rem;
  text-align: center;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
}

.qty-input--corner:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--ring);
}

.position-card__price {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1.4;
}

.position-card__price .price-eur {
  font-weight: 700;
  font-size: 1rem;
}

.position-card__img {
  margin-top: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 400 / 220;
}

.position-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bullets-green {
  margin: 0;
  padding: 0 0 0 1.1rem;
  text-align: left;
  width: 100%;
  font-size: 0.8125rem;
  color: var(--text-muted);
  list-style: none;
}

.bullets-green li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 0.5rem;
}

.bullets-green li::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.45rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Numbers row */
.numbers-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .numbers-row {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  width: 100%;
  background: var(--green);
  color: var(--white);
  margin-top: 0.25rem;
}

.btn--primary:hover {
  background: var(--green-hover);
}

.btn--outline {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  background: var(--green-soft);
}

/* Quote — grey strip, single white card inside */
.quote-outer {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  border: none;
}

.quote-outer__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.65rem;
  border: 1px solid var(--border);
}

.quote-card--stacked {
  padding: 1.5rem 1.5rem 1.75rem;
}

.quote-block:first-child .quote-card__label {
  margin-top: 0;
}

.quote-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
  border: 0;
}

.quote-block .quote-total {
  margin-bottom: 0.85rem;
}

.quote-card__label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.quote-total {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.quote-total small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.quote-total--monthly {
  margin: 0 0 0.35rem;
}

.monthly-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.per-position {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.quote-list--bullets li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.45;
  border: none;
  display: block;
}

.quote-list--bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.quote-list--bullets .sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.95;
}

.plan-options {
  margin: 1.35rem 0 1rem;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.radio-line input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.radio-line label {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 400;
  cursor: pointer;
}

.nested-options {
  margin: 0.5rem 0 0 1.65rem;
  padding: 0;
  border-left: 0;
}

.nested-options .select-input {
  max-width: 100%;
}

.nested-options .field-label {
  font-size: 0.875rem;
}

/* Select — reference Tailwind-like */
.select-input,
.textarea-input {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-input);
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--ring);
}

.select-input:disabled {
  cursor: not-allowed;
  background: #f9fafb;
  color: #6b7280;
}

.textarea-input {
  min-height: 120px;
  resize: vertical;
  max-width: 100%;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: help;
  flex-shrink: 0;
}

.terms-row {
  margin: 1.35rem 0 1.1rem;
}

.terms-row label {
  font-size: 0.9375rem;
  color: var(--text);
}

.actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .actions-row {
    flex-direction: row;
  }

  .actions-row .btn {
    flex: 1;
  }
}

.order-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.order-feedback.hidden {
  display: none;
}

.order-feedback--success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.order-feedback--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.order-feedback__title {
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.order-feedback p {
  margin: 0;
}

.order-feedback__list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

#btn-order.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal__header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.modal__body {
  padding: 1.5rem;
}

.modal__body .select-input,
.modal__body .textarea-input {
  max-width: 100%;
}

.modal__footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal__footer .btn {
  width: auto;
  min-width: 100px;
  border-radius: var(--radius-lg);
}

.hidden {
  display: none !important;
}
