/* ═══════════════════════════════════════════════════════════════
   GT Legal Associates — Feature Overrides
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — COLOUR CONTRAST
   Restores original site colour palette with proper contrast
   ═══════════════════════════════════════════════════════════════ */

.dark {
  /* Backgrounds */
  --background:       oklch(0.13 0.032 265);   /* deep navy page bg   */
  --card:             oklch(0.19 0.038 265);   /* card sits above bg  */

  /* Text */
  --foreground:       oklch(0.97 0.005 90);    /* near-white body text */
  --card-foreground:  oklch(0.97 0.005 90);
  --muted-foreground: oklch(0.74 0.018 260);   /* readable muted text  */

  /* Borders & inputs */
  --border: oklch(1 0 0 / 0.14);              /* visible card borders */
  --input:  oklch(1 0 0 / 0.18);

  /* Accents (unchanged from Lovable original) */
  --primary:            oklch(0.74 0.13 82);   /* gold */
  --primary-foreground: oklch(0.16 0.035 265); /* navy on gold */

  /* Popover / dropdown */
  --popover:            oklch(0.19 0.038 265);
  --popover-foreground: oklch(0.97 0.005 90);

  /* Muted surfaces */
  --muted:   oklch(0.22 0.038 263);

  /* Colour-scheme hint */
  color-scheme: dark;
}

/* ═══════════════════════════════════════════════════════════════
   BOOKING MODAL
   ═══════════════════════════════════════════════════════════════ */


#gt-booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10,8,6,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: gt-overlay-in 0.25s ease;
}

#gt-booking-overlay.gt-open {
  display: flex;
}

@keyframes gt-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#gt-booking-panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1a1f35;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: gt-panel-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes gt-panel-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.gt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gt-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #f0ede8;
  line-height: 1.2;
}

.gt-modal-subtitle {
  font-size: 0.78rem;
  color: #8a8580;
  margin-top: 0.2rem;
}

.gt-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.gt-modal-close:hover {
  color: #C9A84C;
  border-color: rgba(201,168,76,0.4);
}

/* Step progress */
.gt-steps {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.75rem;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gt-step-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

.gt-step-wrap:last-child {
  flex: 0;
}

.gt-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
}

.gt-step-dot.gt-active {
  border-color: #C9A84C;
  color: #C9A84C;
  background: rgba(201,168,76,0.12);
}

.gt-step-dot.gt-done {
  border-color: #C9A84C;
  background: #C9A84C;
  color: #0a0806;
}

.gt-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 0.5rem;
  transition: background 0.3s;
}

.gt-step-line.gt-done {
  background: #C9A84C;
}

/* Body */
.gt-modal-body {
  padding: 1.5rem 1.75rem;
}

.gt-panel {
  display: none;
  animation: gt-fadein 0.3s ease;
}

.gt-panel.gt-active {
  display: block;
}

@keyframes gt-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gt-panel-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f0ede8;
  margin-bottom: 1.2rem;
}

/* Form elements */
.gt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

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

.gt-group {
  margin-bottom: 0.85rem;
}

.gt-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8580;
  margin-bottom: 0.35rem;
  font-family: 'Inter', sans-serif;
}

.gt-input,
.gt-select,
.gt-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0ede8;
  font-size: 0.87rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.gt-input:focus,
.gt-select:focus,
.gt-textarea:focus {
  border-color: rgba(201,168,76,0.6);
  background: rgba(201,168,76,0.04);
}

.gt-select option {
  background: #1a1f35;
  color: #f0ede8;
}

.gt-textarea {
  resize: vertical;
  min-height: 88px;
}

/* Navigation buttons */
.gt-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.gt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  border: none;
}

.gt-btn-primary {
  background: linear-gradient(135deg, #C9A84C, #e8c96a);
  color: #0a0806;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.gt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.45);
}

.gt-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.gt-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}

.gt-btn-ghost:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}

/* Summary (step 3) */
.gt-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.gt-summary-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
  font-size: 0.83rem;
}

.gt-summary-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gt-summary-value {
  color: #f0ede8;
  font-weight: 500;
}

/* Error / status */
.gt-error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 7px;
  background: rgba(220,50,50,0.1);
  border: 1px solid rgba(220,50,50,0.25);
  color: #ff8080;
  font-size: 0.82rem;
  display: none;
}

.gt-error.gt-visible {
  display: block;
}

.gt-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10,8,6,0.3);
  border-top-color: #0a0806;
  border-radius: 50%;
  animation: gt-spin 0.7s linear infinite;
  display: none;
}

.gt-btn-primary.gt-loading .gt-spinner {
  display: inline-block;
}

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

/* ═══════════════════════════════════════════════════════════════
   FORM NAV — step hint + back/next buttons
   ═══════════════════════════════════════════════════════════════ */

.gt-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.gt-step-hint {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}

.gt-btn-next,
.gt-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  border: none;
  white-space: nowrap;
}

.gt-btn-next {
  background: linear-gradient(135deg, #C9A84C, #e8c96a);
  color: #0a0806;
  box-shadow: 0 4px 14px rgba(201,168,76,0.3);
}

.gt-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,168,76,0.42);
}

.gt-btn-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.gt-btn-back {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}

.gt-btn-back:hover {
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.25);
}

/* Required asterisk */
.gt-req {
  color: #C9A84C;
}

/* ═══════════════════════════════════════════════════════════════
   MATTER CHIPS
   ═══════════════════════════════════════════════════════════════ */

.gt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.gt-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.18s;
}

.gt-chip:hover {
  border-color: rgba(201,168,76,0.4);
  color: rgba(255,255,255,0.88);
}

.gt-chip.gt-selected {
  background: rgba(201,168,76,0.15);
  border-color: #C9A84C;
  color: #e8c96a;
}

/* Disclaimer */
.gt-disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS STATE
   ═══════════════════════════════════════════════════════════════ */

.gt-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
}

.gt-success.gt-visible {
  display: flex;
}

.gt-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 2px solid #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #C9A84C;
  margin-bottom: 1.25rem;
}

.gt-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f0ede8;
  margin-bottom: 0.75rem;
}

.gt-success-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 1.75rem;
  font-family: 'Inter', sans-serif;
}

.gt-success-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}

.gt-success-close:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
