/* RooferApp Order Map — uses the theme's own design tokens (--brand, --ink-*, --shadow-*) */

#rom-app { max-width: 640px; margin: 0 auto; }

.rom-card {
  background: #fff;
  border: 1px solid var(--line, rgba(15,20,36,.08));
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,20,36,.06));
}

.rom-step + .rom-step { margin-top: 1.5rem; }

.rom-step-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand, #0D00DD);
  margin-bottom: .5rem;
}

.rom-step-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-950, #0F1424);
  margin: 0 0 .35rem;
}

.rom-step-sub {
  color: var(--ink-500, #6B7280);
  font-size: .9375rem;
  margin: 0 0 1.5rem;
}

.rom-address-row {
  display: flex;
  gap: .5rem;
}

.rom-input, .rom-select, .rom-textarea {
  width: 100%;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: .7rem .9rem;
  font-size: .95rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--ink-950, #0F1424);
  box-sizing: border-box;
  background: #fff;
}
.rom-input:focus, .rom-select:focus, .rom-textarea:focus {
  outline: none;
  border-color: var(--brand, #0D00DD);
}

.rom-map-wrap { margin-top: 1.25rem; }
#rom-map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(15,20,36,.08));
}

.rom-confirm-bar {
  margin-top: .75rem;
  background: var(--brand-50, #EEEEFF);
  border: 1px solid rgba(13,0,221,.15);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.rom-confirm-text {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-700, #374151);
}
.rom-confirm-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.rom-confirm-bar[hidden] { display: none; }

.rom-field { margin-bottom: 1.25rem; }
.rom-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .rom-field-row { grid-template-columns: 1fr; }
}

.rom-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-700, #374151);
  margin-bottom: .4rem;
}

.rom-sample-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand, #0D00DD);
  text-decoration: none;
}
.rom-sample-link:hover { text-decoration: underline; }
.rom-sample-link[hidden] { display: none; }

.rom-checkbox-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.rom-checkbox {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700, #374151);
  cursor: pointer;
}
.rom-bundle-options { display: flex; flex-direction: column; gap: .5rem; }

.rom-textarea { resize: vertical; font-family: inherit; }

.rom-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  font-size: .875rem;
  padding: .65rem .9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.rom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body, 'Inter', sans-serif);
  transition: all .15s ease;
  white-space: nowrap;
}
.rom-btn--primary {
  background: var(--ink-950, #0F1424);
  color: #fff;
  padding: .75rem 1.5rem;
  font-size: .95rem;
}
.rom-btn--primary:hover { background: #000; }
.rom-btn--ghost {
  background: transparent;
  color: var(--ink-700, #374151);
  padding: .75rem 1rem;
  font-size: .875rem;
}
.rom-btn--ghost:hover { color: var(--ink-950, #0F1424); }
.rom-btn--sm { padding: .55rem 1rem; font-size: .8125rem; }
.rom-btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }
.rom-btn--full { width: 100%; margin-top: .5rem; }
.rom-btn:disabled { opacity: .6; cursor: wait; }

.rom-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: rom-spin .7s linear infinite;
}
.rom-spinner[hidden] { display: none; }
@keyframes rom-spin { to { transform: rotate(360deg); } }

#rom-back-to-map { margin-top: .75rem; }

.rom-checkout-wrap { margin-top: 1.5rem; }
.rom-checkout-wrap .rom-step-title { margin-bottom: 1rem; }

@media (max-width: 480px) {
  .rom-card { padding: 1.25rem; }
  .rom-address-row { flex-direction: column; }
}
