/* ===== VAULT INQUIRY FORM — STYLES ===== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f3f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ===== MAIN CONTAINER ===== */
.vault-inquiry {
  max-width: 640px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== HEADER ===== */
.vault-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.vault-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.vault-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.vault-header .subtitle {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

/* Connector line between steps */
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: #ddd;
}

.progress-step:not(:last-child).completed::after {
  background: #8b7355;
}

.progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #767676;
  position: relative;
  z-index: 1;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.progress-step.active .progress-dot {
  border-color: #8b7355;
  background: #8b7355;
  color: #fff;
}

.progress-step.completed .progress-dot {
  border-color: #8b7355;
  background: #8b7355;
  color: #fff;
}

.progress-label {
  font-size: 0.7rem;
  color: #767676;
  margin-top: 0.4rem;
  text-align: center;
  white-space: nowrap;
}

.progress-step.active .progress-label,
.progress-step.completed .progress-label {
  color: #8b7355;
  font-weight: 500;
}

/* ===== STEP CONTAINERS ===== */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #1a1a1a;
}

.step-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1.5rem 0;
}

/* ===== EVENT TYPE CARDS (Step 1) ===== */
.event-type-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.event-type-card {
  flex: 1;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}

.event-type-card:hover {
  border-color: #8b7355;
  transform: translateY(-2px);
}

.event-type-card:focus-visible {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.3);
}

.event-type-card.selected {
  border-color: #8b7355;
  background: #f9f7f5;
}

.event-type-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.event-type-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.event-type-card .card-desc {
  font-size: 0.8rem;
  color: #767676;
  margin-top: 0.25rem;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
}

.form-group label .required {
  color: #c53030;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #c53030;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-section-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #555;
  margin: 1.5rem 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e5e5e5;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.9rem;
}

.radio-option:hover {
  border-color: #8b7355;
}

.radio-option.selected {
  border-color: #8b7355;
  background: #f9f7f5;
}

.radio-option input[type="radio"] {
  accent-color: #8b7355;
}

/* ===== DAY SELECTOR ===== */
.day-selector {
  display: flex;
  gap: 0.5rem;
}

.day-selector select,
.day-selector input {
  flex: 1;
}

/* ===== GUEST ERROR ===== */
.guest-error {
  display: none;
  color: #c53030;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ===== SECTION TITLES (within steps) ===== */
.section-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.section-note {
  font-size: 0.85rem;
  color: #666;
  margin: -0.5rem 0 1rem 0;
}

/* ===== ADDON GRID (Tables, Chairs, Add-ons) ===== */
.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.addon-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.addon-item:focus-within {
  border-color: #8b7355;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.addon-item:hover {
  border-color: #8b7355;
}

.addon-item.selected {
  border-color: #8b7355;
  background: #f9f7f5;
}

.addon-item input[type="checkbox"],
.addon-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #8b7355;
  flex-shrink: 0;
}

.addon-item .addon-info {
  flex: 1;
  min-width: 0;
}

.addon-item .addon-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.addon-item .addon-price {
  font-size: 0.8rem;
  color: #666;
}

.qty-input {
  width: 60px !important;
  padding: 0.4rem !important;
  text-align: center;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* ===== TOOLTIPS ===== */
.addon-name {
  position: relative;
}

.info-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  border: none;
  border-radius: 50%;
  background: none;
  color: #8b7355;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}

.info-tip-btn:hover,
.info-tip-btn:focus-visible {
  color: #735f47;
}

.info-tip-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.4);
}

.info-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.info-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
}

.info-tip-btn:hover + .info-tip,
.info-tip-btn:focus + .info-tip,
.info-tip.active {
  display: block;
  pointer-events: auto;
}

/* ===== RECALCULATE BUTTON ===== */
.recalc-button {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #666;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.recalc-button:hover {
  background: #eee;
  border-color: #8b7355;
  color: #8b7355;
}

.recalc-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.2);
}

/* ===== RESULTS BOX ===== */
.results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #1a1a1a;
  border-radius: 10px;
  color: #fff;
}

.results h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ccc;
}

.line-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #333;
}

.line-item:last-of-type {
  border-bottom: none;
}

.line-item.subtotal {
  border-bottom: none;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.line-item.subtotal .item-name,
.line-item.subtotal .item-price {
  font-weight: 600;
  color: #ccc;
}

.line-item .item-name {
  color: #aaa;
}

.line-item .item-price {
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tax-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #767676;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #444;
}

.total-line .total-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.total-line .total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4af37;
  font-variant-numeric: tabular-nums;
}

.included-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #2a2a2a;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #999;
}

/* ===== REVIEW STEP ===== */
.review-section {
  margin-bottom: 1.5rem;
}

.review-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e5e5e5;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.review-row .review-label {
  color: #666;
}

.review-row .review-value {
  color: #1a1a1a;
  font-weight: 500;
  text-align: right;
}

/* ===== NAVIGATION ===== */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.btn {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #8b7355;
  color: #fff;
}

.btn-primary:hover {
  background: #735f47;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.4);
}

.btn-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
  color: #333;
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.3);
}

.btn-submit {
  background: #8b7355;
  color: #fff;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.step-nav .btn-submit {
  width: auto;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-submit:hover {
  background: #735f47;
}

.btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.4);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Spacer to push "Next" right when there's no "Back" */
.nav-spacer {
  flex: 1;
}

/* ===== VALIDATION ERRORS ===== */
.error-list {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.error-list p {
  margin: 0;
  color: #c53030;
  font-size: 0.85rem;
  padding: 0.15rem 0;
}

/* ===== SUCCESS STATE ===== */
.success-message {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-message .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.success-message h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.success-message p {
  color: #666;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.success-message .success-details {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9f7f5;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* ===== ESTIMATE RETRIEVAL LINK ===== */
.estimate-retrieval-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #767676;
}

.estimate-retrieval-link a {
  color: #8b7355;
  text-decoration: none;
}

.estimate-retrieval-link a:hover {
  text-decoration: underline;
}

/* ===== SUCCESS ACTIONS ===== */
.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #767676;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .vault-inquiry {
    margin: 0;
    padding: 1.25rem;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .event-type-cards {
    flex-direction: column;
  }

  .event-type-card {
    padding: 1.5rem 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .day-selector {
    flex-direction: column;
  }

  .addon-grid {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }

  .progress-label {
    font-size: 0.6rem;
  }

  .progress-dot {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .progress-step:not(:last-child)::after {
    top: 12px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
  }
}
