/* CritBook enquiry wizard */

.mlb-enquiry-wrap {
  max-width: 720px;
}

.mlb-enquiry-progress {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}

.mlb-enquiry-progress span {
  flex: 1;
  min-width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.2);
  transition: background 0.2s;
}

.mlb-enquiry-progress span.is-done {
  background: #c8f135;
}

.mlb-enquiry-progress span.is-current {
  background: #e91e8c;
}

.mlb-enquiry-step-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8f135;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.mlb-enquiry-edu {
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  background: #f7f4ef;
  border-left: 4px solid #e91e8c;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mlb-enquiry-edu h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #1f4d3a;
}

.mlb-enquiry-edu p {
  margin: 0 0 0.75rem;
}

.mlb-enquiry-edu p:last-child {
  margin-bottom: 0;
}

.mlb-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 540px) {
  .mlb-choice-grid {
    grid-template-columns: 1fr;
  }
}

.mlb-choice {
  display: block;
  cursor: pointer;
}

.mlb-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mlb-choice-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 100%;
}

.mlb-choice input:checked + .mlb-choice-card,
.mlb-choice-card.is-selected {
  border-color: #e91e8c;
  box-shadow: 0 0 0 1px #e91e8c;
}

.mlb-choice-card strong {
  display: block;
  color: #1f4d3a;
  margin-bottom: 0.25rem;
}

.mlb-choice-card span {
  font-size: 0.9rem;
  color: #5c6b66;
  line-height: 1.45;
}

.mlb-enquiry-field {
  margin-bottom: 1rem;
}

.mlb-enquiry-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1e3a2f;
}

.mlb-enquiry-field input[type="text"],
.mlb-enquiry-field input[type="email"],
.mlb-enquiry-field input[type="tel"],
.mlb-enquiry-field select,
.mlb-enquiry-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}

.mlb-enquiry-field textarea {
  min-height: 120px;
  resize: vertical;
}

.mlb-enquiry-field .mlb-hint {
  font-size: 0.85rem;
  color: #5c6b66;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.mlb-enquiry-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.mlb-enquiry-actions .btn {
  cursor: pointer;
  border: none;
  font: inherit;
}

.mlb-enquiry-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mlb-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 540px) {
  .mlb-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mlb-photo-slot {
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: #faf9f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  color: #5c6b66;
  padding: 0.5rem;
}

.mlb-photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlb-photo-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mlb-photo-slot.is-uploading::after {
  content: 'Uploading…';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1f4d3a;
}

.mlb-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(31, 53, 48, 0.85);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.mlb-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mlb-review-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.5;
}

.mlb-review-list li:last-child {
  border-bottom: none;
}

.mlb-review-list strong {
  color: #1f4d3a;
}

.mlb-enquiry-success {
  text-align: center;
}

.mlb-enquiry-success .mlb-ref {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f7f4ef;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1rem;
  color: #1f4d3a;
}

.mlb-enquiry-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fff5f5;
  border-left: 4px solid #e91e8c;
  border-radius: 0 6px 6px 0;
  color: #1e3a2f;
}

.mlb-enquiry-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
