/* RD Stolarija — quote form (/zahtev-za-ponudu) only.
 *
 * Split out of main.css so the other 17 pages do not download 8.7 KB of CSS
 * they never use. Before that it was a 494-line <style> block inside
 * zahtev-za-ponudu.php, re-sent uncached with every view of the page.
 * Design tokens, buttons, sections and typography all come from main.css;
 * only this page's own components live here.
 */

/* Text selection is themed globally in main.css (::selection) — no
   page-local override needed here. */

/* Step Headers — layout only. Heading colour/size/weight/margin all come
   from main.css's h2 + .section-title; this page only adds the badge row. */
.step-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form Styles */
.form-grid {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.form-section {
  display: grid;
  gap: 24px;
}

/* .form-group, .form-control and the select/textarea variants moved to
   main.css when /kontakt gained a message form — two pages use them now. */

/* Dimensions Group */
.dimensions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dimension-input {
  flex: 1;
}

.dimension-separator {
  color: var(--c-aluminium);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Buttons: main.css's .btn / .btn--primary / .btn--ghost / .btn--lg /
   .btn--sm apply directly — no page-local override. */

/* Cart Empty State */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--c-bg);
  border-radius: var(--radius);
  border: 1px dashed var(--c-aluminium);
  margin: 40px 0;
}

.cart-empty-icon {
  margin-bottom: 24px;
}

.cart-empty-icon .icon {
  width: 56px;
  height: 56px;
  color: var(--c-aluminium);
}

.cart-empty-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.cart-empty-description {
  color: var(--c-ink-soft);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Table Styles */
.cart-table {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}

.table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.table th {
  background: var(--c-bg);
  padding: 20px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink);
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--c-bg);
}

/* .status-message and its success/error/toast variants moved to main.css —
   /kontakt's form reports with the same component. */

.btn-remove {
  background: none;
  border: none;
  color: var(--c-ink-soft);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color 0.15s ease;
}

.btn-remove .icon {
  width: 18px;
  height: 18px;
}

.btn-remove:hover,
.btn-remove:focus-visible {
  color: var(--c-accent);
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .step-heading {
    flex-direction: column;
    gap: 12px;
  }

  .step-badge {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .form-card {
    padding: 30px 24px;
    margin: 0 20px;
  }

  .dimensions-group {
    flex-direction: column;
    gap: 16px;
  }

  .dimension-separator {
    display: none;
  }

  .cart-empty {
    padding: 60px 20px;
    margin: 20px;
  }

  .cart-empty-icon {
    font-size: 3rem;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 24px 20px;
    margin: 0 16px;
  }

  /* Scoped to this page's body class, same convention as main.css's
     `.site-nav__bottom .btn` — not a bare `.btn` override. */
  body.zahtevZaPonudu .btn {
    width: 100%;
  }

  .cart-empty {
    padding: 40px 16px;
    margin: 16px;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  margin-top: 40px;
}

.info-card {
  background: var(--c-surface);
  padding: 30px;
  position: relative;
}

.info-card h3 {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 5px;
}

.info-card p {
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin-bottom: 15px;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.info-card ul li {
  padding: 5px 0;
  color: var(--c-ink-soft);
  position: relative;
  padding-left: 20px;
}

.info-card ul li::before {
  content: '\2013';
  color: var(--c-ink);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.info-card a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-line);
  font-weight: 500;
  transition: color 0.15s ease;
}

.info-card a:hover {
  color: var(--c-accent-dark);
  text-decoration-color: currentColor;
}

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

  .info-card {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .info-card {
    padding: 20px 15px;
  }

  .info-card h3 {
    font-size: 1.15rem;
  }
}
