/* ============================================================
   ICT Audit — pages.css
   Page-specific styles: price · plans · register · contact
   ============================================================ */

/* --- Start: Price configurator --- */
.configurator {
  padding: 8px 0 100px;
}

.config-card {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

/* Two pill-shaped sliders side by side. */
.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.asset {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.asset:hover,
.asset:focus-within {
  border-color: var(--brand);
  box-shadow: 0 8px 24px -16px rgba(12, 20, 23, .25);
}

.asset-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  min-width: 130px;
}

.asset-count {
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.asset-label {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
}

/* Custom slider: chunky track, big tappable thumb, focus halo. */
.asset input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}

.asset input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right,
    var(--brand) 0 var(--pct, 0%),
    var(--line) var(--pct, 0%) 100%);
}

.asset input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.asset input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--brand);
}

.asset input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 4px 10px -2px rgba(12, 20, 23, .25);
  margin-top: -10px;
  transition: box-shadow .15s, transform .1s;
}

.asset input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 4px 10px -2px rgba(12, 20, 23, .25);
}

.asset input[type="range"]:focus { outline: none; }

.asset input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(62, 104, 120, .18);
}
.asset input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 0 0 0 6px rgba(62, 104, 120, .18);
}

.asset input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }

/* Total + CTA */
.price-total {
  margin: 48px 0 24px;
  text-align: center;
}

.price-total p {
  font-size: var(--fs-sm);
  color: var(--ink);
  margin-top: 8px;
}

.price-total output {
  font-size: var(--fs-2xl);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.05em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.price-total span:not(.eyebrow) {
  font-size: var(--fs-lg);
  color: var(--ink);
}

.price-actions,
.price-contact {
  text-align: center;
}

.price-contact {
  display: none;
  margin-top: 24px;
}

.price-contact h2 {
  font-size: var(--fs-lg);
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--ink);
}

.price-contact p {
  font-size: var(--fs-sm);
  color: var(--mute);
  margin-bottom: 18px;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 900px) {
  .asset-grid { grid-template-columns: 1fr; gap: 14px; }
  .asset { padding: 18px 22px; gap: 16px; border-radius: 28px; }
  .asset-meta { min-width: 100px; }
  .asset-count { font-size: 32px; }
  .price-total output { font-size: var(--fs-xl); }
}
/* --- End: Price configurator --- */


/* --- Start: Register / contact form --- */
.form-section {
  padding: 24px 0 110px;
}

.register-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 30px 70px -50px rgba(12, 20, 23, .28);
}

.form-intro {
  margin-bottom: 36px;
}

.form-intro h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.form-intro p {
  font-size: var(--fs-base);
  color: var(--mute);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.field > span {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf5;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(62, 104, 120, .12);
}

/* Validation states */
.field input.is-error,
.field select.is-error,
.field textarea.is-error {
  border-color: var(--risk);
  box-shadow: 0 0 0 4px rgba(200, 80, 59, .10);
}

.field .error-msg {
  display: none;
  font-size: var(--fs-xs);
  color: var(--risk);
  font-weight: 500;
}

.field.has-error .error-msg {
  display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--risk);
  box-shadow: 0 0 0 4px rgba(200, 80, 59, .10);
}

.submit-btn {
  height: 54px;
  margin-top: 36px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
}

.terms {
  max-width: 900px;
  margin-top: 22px;
  color: var(--mute);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.form-success h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  color: var(--ok);
}

.form-success p {
  color: var(--mute);
  font-size: var(--fs-lg);
}

@media (max-width: 900px) {
  .register-panel { padding: 30px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 34px; }
}
/* --- End: Register / contact form --- */

/* --- Start: Lead viewer --- */
.leads-section {
  padding: 40px 0 80px;
}

.leads-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.leads-table thead {
  background: var(--paper-2);
}

.leads-table th,
.leads-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.leads-table td.lead-num {
  font-family: var(--ff-mono);
  font-weight: 600;
  color: var(--ink);
  max-width: none;
}

.leads-table th {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mute);
  font-weight: 500;
}

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

.leads-table tbody tr:hover {
  background: var(--paper-2);
}

.leads-table time {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--mute);
  white-space: nowrap;
}

.leads-table a {
  color: var(--brand-deep);
}

.lead-phone {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--mute);
  transition: color .15s;
}

.lead-phone:hover {
  color: var(--brand);
}

.lead-role {
  display: inline-block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--mute);
}

.lead-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--mute);
}

.lead-id {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--mute);
}

.lead-phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lead-icon-cell {
  text-align: center;
  color: var(--mute);
}

.lead-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.lead-icon:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lead-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* Modal */
.lead-modal[hidden] { display: none; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 23, .55);
}

.lead-modal-card {
  position: relative;
  width: min(600px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px -20px rgba(12, 20, 23, .4);
  padding: 20px 24px 24px;
}

.lead-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lead-modal-head h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.lead-modal-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.lead-modal-x:hover {
  border-color: var(--brand);
  color: var(--brand);
}

#lead-modal-text {
  width: 100%;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
  white-space: pre-wrap;
}


.leads-empty {
  text-align: center;
  color: var(--mute);
  font-style: italic;
}

.leads-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
}

.leads-pagination a {
  color: var(--brand-deep);
  text-decoration: none;
}

.leads-pagination a:hover {
  text-decoration: underline;
}

.leads-pag-disabled {
  color: var(--mute);
  opacity: .55;
}

.leads-pag-info {
  color: var(--mute);
}
/* --- End: Lead viewer --- */
