/* Services Page Styles */
:root {
  --bg: #050608;
  --panel: #11131d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #f472b6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.services-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.services-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.services-header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.services-header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.services-header__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.services-header__nav a:hover,
.services-header__nav a.active {
  color: var(--accent);
}

/* Hero */
.services-hero {
  background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(244, 114, 182, 0.16), transparent 35%),
    var(--bg);
  padding: 64px 0;
  text-align: center;
}

.services-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.services-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.services-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-section {
  padding: 64px 0;
}

.services-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.services-section__header h2 {
  font-size: 1.75rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card__image {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.service-card__body {
  padding: 20px;
}

.service-card__vendor {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.service-card__location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card__description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service-card__price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn--solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050608;
}

.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Status Messages */
.panel__status {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.panel__status[data-type="info"] {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}

.panel__status[data-type="error"] {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  grid-column: 1 / -1;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  color: var(--muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
}

/* Footer */
.services-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
}

/* ==================== BOOKING MODAL ==================== */
.booking-modal,
.login-prompt-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  border: none;
}

.booking-modal[hidden],
.login-prompt-modal[hidden],
.booking-modal:not([open]),
.login-prompt-modal:not([open]) {
  display: none !important;
}

.booking-modal::backdrop,
.login-prompt-modal::backdrop {
  background: transparent;
}

.booking-modal__content,
.login-prompt-modal__content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-modal__header,
.login-prompt-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-modal__header h3,
.login-prompt-modal__header h3 {
  font-size: 1.25rem;
}

.booking-modal__close,
.login-prompt-modal__close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.booking-modal__close:hover,
.login-prompt-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.booking-modal__close svg,
.login-prompt-modal__close svg {
  width: 18px;
  height: 18px;
}

.booking-modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.booking-modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.service-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.service-preview__image {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.service-preview__content {
  flex: 1;
  min-width: 0;
}

.service-preview__vendor {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.service-preview__title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.service-preview__location {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.service-preview__price {
  font-weight: 700;
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.booking-summary {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-summary__row:last-child {
  border-bottom: none;
}

.booking-summary__row--total {
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-summary__row--total span:last-child {
  color: var(--accent);
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.form-status[data-type="success"] {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.form-status[data-type="error"] {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.login-prompt-modal__body {
  padding: 24px;
  text-align: center;
}

.login-prompt-modal__body p {
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.login-prompt-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .services-header__nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-preview {
    flex-direction: column;
  }

  .service-preview__image {
    width: 100%;
    height: 120px;
  }

  .booking-modal__content,
  .login-prompt-modal__content {
    max-width: 100%;
    margin: 16px;
    max-height: calc(100vh - 32px);
  }

  .booking-modal,
  .login-prompt-modal {
    padding: 0;
  }
}