/* ===== Pupillary Distance (PD) ===== */
.pd-section {
  display: grid;
  gap: clamp(12px, 2.2vw, 18px);
}

.pd-title {
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 clamp(8px, 1.6vw, 12px) 0;
  color: #111;
  font-family: "Montserrat", sans-serif;
}

.pd-card {
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #f6f7f9;
  padding: clamp(16px, 3vw, 24px);
  display: grid;
  gap: clamp(16px, 2.4vw, 20px);
}

.pd-illustration {
  display: grid;
  place-items: center;
}

.pd-illustration img {
  max-width: 360px;
  width: min(50vw, 360px);
  height: auto;
  display: block;
}

.pd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: clamp(12px, 2vw, 16px);
}

.pd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-label {
  font-size: .95rem;
  color: #333;
}

.pd-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.2;
  background: #fff;
  border: 1px solid #d8dbe0;
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.pd-input:focus {
  border-color: #b7d7dd;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.12);
}

.pd-select { cursor: pointer; }

/* Responsive: stack fields under each other */
@media (max-width: 800px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-illustration img { width: min(70vw, 360px); }
}
