/* ---- reserve.css: Reservation form styles ---- */

/* ---- Hero ---- */
.form-hero h1,
.admin-login h1,
.dashboard-head h1 {
  display: block;
  color: var(--strong);
  background: transparent;
  padding: 0;
  clip-path: none;
}

.form-hero h1,
.dashboard-head h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.form-hero {
  max-width: 1180px;
  margin: 0 auto;
}

.form-hero p {
  max-width: 700px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

/* ---- Layout ---- */
.form-shell {
  max-width: 1180px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---- Steps sidebar ---- */
.steps-panel {
  position: sticky;
  top: 104px;
  padding: 28px;
  background: white;
  border-radius: var(--box-radius);
  border: 1.5px solid var(--mid-grey);
}

.steps-panel h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--strong);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--mid-grey);
}

.steps-panel ol {
  display: grid;
  gap: 20px;
  padding-left: 24px;
  margin: 0;
}

.steps-panel li {
  color: var(--strong);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.steps-panel li span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
}

/* ---- Main form ---- */
.waitlist-form {
  background: white;
  border-radius: var(--box-radius);
  border: 1.5px solid var(--mid-grey);
  padding: clamp(24px, 4vw, 44px);
}

.waitlist-form h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  color: var(--strong);
  margin-bottom: 20px;
}

.form-step {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1.5px solid var(--mid-grey);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 28px;
}

.form-section.compact {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  align-items: end;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ---- Inputs ---- */
.waitlist-form input:not([type="checkbox"]):not([type="file"]),
.waitlist-form select,
.waitlist-form textarea {
  background: white;
  border: 1.5px solid var(--mid-grey);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--strong);
  transition: border-color 0.15s;
}

.waitlist-form input:not([type="checkbox"]):not([type="file"]):focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.waitlist-form label {
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Product card ---- */
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  margin-top: 16px;
  background: var(--soft-grey);
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--box-radius);
}

/* Inputs inside grey product card get white background */
.product-card input:not([type="checkbox"]):not([type="file"]),
.product-card select {
  background: white;
  border: 1.5px solid var(--mid-grey);
  border-radius: 8px;
}

.sets-label {
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
}

.product-price-note {
  margin: -8px 0 0;
  font-size: 14px;
  color: var(--ink);
}

/* ---- Personalization options ---- */
.card-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.card-options legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
}

.checkbox-row {
  cursor: pointer;
}

.object-personalization-option.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.object-personalization-option.disabled input {
  cursor: not-allowed;
}

.option-copy {
  display: grid;
  gap: 2px;
}

.object-minimum-note {
  display: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.object-personalization-option.disabled .object-minimum-note {
  display: block;
}

/* ---- Conditional / personalization detail ---- */
.conditional-fields {
  display: grid;
  gap: 14px;
}

.personalization-detail {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--box-radius);
}

.personalization-detail h4 {
  margin: 0;
  color: var(--strong);
  font-size: 17px;
  font-weight: 600;
}

.face-card-fields,
.object-card-fields {
  display: grid;
  gap: 14px;
}

/* ---- Suit (Farbe) selection per figure ---- */
.face-figure-block {
  margin-top: 14px;
  padding: 16px;
  background: var(--soft-grey);
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--box-radius);
}

.face-figure-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--strong);
}

.face-suit-options {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.face-same-photo-row {
  margin-bottom: 12px;
  background: white;
}

.face-suit-uploads {
  display: grid;
  gap: 12px;
}

/* ---- File upload ---- */
.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-upload-field-label {
  font-size: 14px;
  color: var(--strong);
  font-weight: 600;
}

/* Hide the native file input */
.file-upload-btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: white;
  border: 1.5px dashed var(--light-grey);
  border-radius: var(--button-radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
  align-self: flex-start;
  min-height: 42px;
  user-select: none;
}

.file-upload-btn:hover {
  background: var(--soft-grey);
  border-color: var(--ink);
}

.file-upload-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.15s;
}

.file-upload-btn:hover .file-upload-icon {
  color: var(--ink);
}

.file-upload-btn-text {
  white-space: nowrap;
}

/* Selected file display */
.file-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: white;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--button-radius);
  font-size: 13px;
  color: var(--ink);
  min-height: 40px;
}

.file-selected-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.file-clear-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  min-height: unset;
  background: var(--soft-grey);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.file-clear-btn:hover {
  background: var(--mid-grey);
  color: var(--red);
}

/* ---- Misc ---- */
.notes-label + .checkbox-row {
  margin-top: 16px;
}

.add-product-bottom {
  width: 100%;
  margin: -16px 0 36px;
}

.submit-button {
  width: 100%;
  background: var(--red);
  color: white;
  font-size: 17px;
  font-weight: 600;
  min-height: 54px;
  border: 0;
  box-shadow: none;
}

.submit-button:hover {
  background: var(--red-dark);
  box-shadow: none;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 500;
  color: var(--pure-green);
}

.field-error {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
  min-height: 18px;
}

/* ---- Order summary ---- */
.summary-section-block {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 24px;
}

.summary-group {
  margin-bottom: 24px;
}

.summary-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.summary-card {
  padding: 16px 18px;
  background: var(--soft-grey);
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--box-radius);
  margin-bottom: 10px;
}

.summary-card-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 10px;
}

.summary-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 16px;
  margin: 0;
}

.summary-dl dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding-top: 1px;
}

.summary-dl dd {
  margin: 0;
  color: var(--strong);
  font-size: 14px;
  line-height: 1.5;
}

.summary-dl dd em {
  font-style: normal;
  color: var(--ink);
}

.summary-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.summary-footer .submit-button {
  flex: 1;
  min-width: 160px;
}

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

  .steps-panel {
    position: static;
  }

  .form-section.compact,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-header {
    align-items: stretch;
    flex-direction: column;
  }

  .card-options {
    grid-template-columns: 1fr;
  }
}
