/* ============================================
   CONTACT PAGE
   Uses only var(--bs-*) tokens so light/dark
   theme switching works automatically.
   ============================================ */

.contact-page {
  padding: 4rem 0 6rem;
  min-height: 72vh;
}

.contact-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
  padding: 4px 14px;
  border-radius: var(--bs-border-radius-pill);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.4s ease both;
}

.contact-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bs-primary);
  flex-shrink: 0;
}

.contact-headline {
  font-family: 'DM Serif Display', 'Anta', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--bs-body-color);
  margin-bottom: 1rem;
  animation: fadeUp 0.4s 0.08s ease both;
}

.contact-headline em {
  font-style: italic;
  color: var(--bs-primary);
}

.contact-subline {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 3rem;
  animation: fadeUp 0.4s 0.14s ease both;
}

/* ---- Grid ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Form card ---- */

.contact-form-card {
  background: var(--bs-secondary-bg);
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 2.5rem;
  box-shadow: var(--bs-box-shadow);
  animation: fadeUp 0.45s 0.2s ease both;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

/* ---- Labels ---- */

.contact-form-card label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

/* ---- Inputs / Select / Textarea ---- */

.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  font-family: 'Anta', 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--bs-body-color);
  background: var(--bs-secondary-bg-subtle);
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  border-radius: var(--bs-border-radius-sm);
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none;
  -webkit-appearance: none;
}

.contact-form-card input::placeholder, .contact-form-card textarea::placeholder {
  color: var(--bs-tertiary-color);
}

.contact-form-card input:hover, .contact-form-card select:hover, .contact-form-card textarea:hover {
  border-color: var(--bs-primary-border-subtle);
}

.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus {
  border-color: var(--bs-primary);
  background: var(--bs-secondary-bg);
  box-shadow: var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.contact-form-card textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-form-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239F2C75' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* Order number pre-fill hint */

.order-prefill-hint {
  font-size: 0.8rem;
  color: var(--bs-primary);
  margin-top: -0.5rem;
  display: none;
}

.order-prefill-hint.show {
  display: block;
}

/* ---- Upload zone ---- */

.upload-zone {
  border: 2px dashed var(--bs-border-color);
  border-radius: var(--bs-border-radius-sm);
  background: var(--bs-secondary-bg-subtle);
  transition: border-color 0.18s, background 0.18s;
  overflow: hidden;
}

.upload-zone.drag-over, .upload-zone:hover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.4rem 1rem;
  cursor: pointer;
  text-align: center;
  color: var(--bs-secondary-color);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.upload-prompt:hover {
  color: var(--bs-body-color);
}

.upload-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--bs-tertiary-color);
}

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem;
}

.upload-previews:empty {
  display: none;
}

.preview-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--bs-border-radius-sm);
  overflow: hidden;
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  flex-shrink: 0;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.preview-remove:hover {
  background: var(--bs-danger);
}

.upload-error {
  font-size: 0.8rem;
  color: var(--bs-danger);
  padding: 0 0.75rem 0.6rem;
}

/* ---- Submit button ---- */

.contact-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-danger));
  color: var(--bs-light);
  border: none;
  border-radius: var(--bs-border-radius-sm);
  font-family: 'Anta', 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.35);
}

.contact-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(var(--bs-primary-rgb), 0.45);
}

.contact-submit:active:not(:disabled) {
  transform: translateY(0);
}

.contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.contact-submit.loading .btn-spinner {
  display: block;
}

.contact-submit.loading .btn-text {
  display: none;
}

/* ---- Feedback messages ---- */

.form-feedback {
  display: none;
  border-radius: var(--bs-border-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  line-height: 1.5;
}

.form-feedback.success {
  display: block;
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-success-border-subtle);
}

.form-feedback.error {
  display: block;
  background: var(--bs-danger-bg-subtle);
  color: var(--bs-danger-text-emphasis);
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-danger-border-subtle);
}

/* ---- Info panel ---- */

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.45s 0.28s ease both;
}

.info-card {
  background: var(--bs-secondary-bg-subtle);
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  box-shadow: var(--bs-box-shadow);
  border-color: var(--bs-primary-border-subtle);
  transform: translateY(-2px);
}

.info-icon {
  width: 42px;
  height: 42px;
  background: var(--bs-primary-bg-subtle);
  border-radius: var(--bs-border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  align-self: center;
}

.info-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.2rem;
}

.info-card-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--bs-body-color)!important;
}

.info-card-value a {
  color: var(--bs-info);
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.info-card-value a:hover {
  color: var(--bs-link-hover-color);
}

.info-card-sub {
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
  margin-top: 0.2rem;
}

/* ---- Hours grid ---- */

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.hours-day {
  color: var(--bs-secondary-color);
  font-weight: 500;
  white-space: nowrap;
}

.hours-time {
  color: var(--bs-body-color);
  font-weight: 400;
}

/* ---- Responsive ---- */

@media (max-width: 820px) {
  .contact-info-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .info-card {
    flex: 1 1 200px;
  }
}

@media (max-width: 480px) {
  .contact-info-panel {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .info-card {
    flex: unset;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 1.5rem;
  }
}

/* ---- Animations ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Focus visible (accessibility) ---- */

.contact-form-card input:focus-visible, .contact-form-card select:focus-visible, .contact-form-card textarea:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* ---- Selection ---- */

