/**
 * Hizmet sayfası şablonu (page-hizmet.php)
 */

/* ── Hero ── */
.lux-hizmet-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--lux-dark);
}

.lux-hizmet-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.lux-hizmet-hero:hover .lux-hizmet-hero__bg {
  transform: scale(1);
}

.lux-hizmet-hero__bg--dark {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1500 100%);
}

.lux-hizmet-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.45) 0%,
    rgba(8, 8, 8, 0.8) 100%
  );
}

.lux-hizmet-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 720px;
}

.lux-hizmet-hero__label {
  font-family: var(--lux-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-gold);
  margin: 0 0 1rem;
}

.lux-hizmet-hero__title {
  font-family: var(--lux-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--lux-cream);
  margin: 0 0 1rem;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.lux-hizmet-hero__desc {
  font-size: 1.0625rem;
  color: var(--lux-text);
  margin: 0 0 2rem;
  max-width: 55ch;
  line-height: 1.65;
}

.lux-hizmet-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Hero + form overlay (ana sayfa lux-hero-stage ile aynı davranış) ── */
.lux-hizmet-hero-stage {
  position: relative;
  --lux-hero-offset: calc(36px + 68px);
  min-height: calc(100vh - var(--lux-hero-offset));
  min-height: calc(100svh - var(--lux-hero-offset));
  overflow: visible;
  background: var(--lux-dark);
}

.lux-hizmet-hero-stage .lux-hizmet-hero {
  position: absolute;
  inset: 0;
  display: block;
  min-height: inherit;
  overflow: hidden;
}

.lux-hizmet-hero-stage .lux-hizmet-hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(2rem, 4vh, 3rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: min(580px, 52vw);
  max-width: 100%;
}

@media (min-width: 1024px) {
  .lux-hizmet-hero-stage {
    --lux-hero-offset: calc(36px + 72px);
  }

  .lux-hizmet-hero-stage .lux-hizmet-hero__overlay {
    background:
      linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.25) 38%, rgba(8, 8, 8, 0.55) 62%, rgba(8, 8, 8, 0.92) 100%),
      linear-gradient(0deg, rgba(8, 8, 8, 0.88) 0%, transparent 42%);
  }

  .lux-hizmet-hero-stage .lux-hizmet-hero__title {
    max-width: min(12em, calc(100vw - min(620px, 54vw)));
  }
}

/* ── Content ── */
.lux-hizmet-content {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--lux-surface);
}

.lux-hizmet-content .lux-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--lux-text);
}

.lux-hizmet-content .lux-prose h2,
.lux-hizmet-content .lux-prose h3 {
  color: var(--lux-cream);
  font-family: var(--lux-font-display);
  margin-top: 2rem;
}

.lux-hizmet-content .lux-prose p {
  margin-bottom: 1.15rem;
}

.lux-hizmet-content .lux-prose a {
  color: var(--lux-gold);
}

.lux-hizmet-content__grid {
  align-items: flex-start;
}

/* ── Badges ── */
.lux-hizmet-badges {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(12, 12, 12, 0.75);
  border: 1px solid var(--lux-border-gold);
  border-radius: var(--lux-radius-md);
  overflow: visible;
  --lux-angle: 0deg;
}

.lux-hizmet-badges::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--lux-angle),
    rgba(201, 168, 76, 0) 0%,
    rgba(201, 168, 76, 0.7) 15%,
    rgba(242, 208, 112, 0.95) 22%,
    rgba(201, 168, 76, 0.7) 30%,
    rgba(201, 168, 76, 0) 42%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  animation: lux-hizmet-border-spin 4s linear infinite;
}

@keyframes lux-hizmet-border-spin {
  from { --lux-angle: 0deg; }
  to { --lux-angle: 360deg; }
}

.lux-hizmet-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--lux-border);
}

.lux-hizmet-badge:last-child {
  border-bottom: none;
}

.lux-hizmet-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--lux-gold-light, #f2d070);
  background: linear-gradient(
    145deg,
    rgba(201, 168, 76, 0.22) 0%,
    rgba(201, 168, 76, 0.08) 100%
  );
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-radius: 0.625rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.22);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.lux-hizmet-badge__icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.lux-hizmet-badge:hover .lux-hizmet-badge__icon {
  color: var(--lux-gold);
  border-color: var(--lux-border-gold);
  background: linear-gradient(
    145deg,
    rgba(201, 168, 76, 0.32) 0%,
    rgba(201, 168, 76, 0.12) 100%
  );
  transform: translateY(-1px);
}

.lux-hizmet-badge__label {
  color: var(--lux-text);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Booking form section ── */
.lux-hizmet-form {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--lux-dark);
  border-top: 1px solid var(--lux-border-gold);
}

.lux-hizmet-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 75%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.35) 30%,
    rgba(201, 168, 76, 0.55) 50%,
    rgba(201, 168, 76, 0.35) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.lux-hizmet-form__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lux-hizmet-form__title {
  font-family: var(--lux-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--lux-cream);
  margin: 0 0 0.75rem;
}

.lux-hizmet-form__subtitle {
  font-size: 0.9375rem;
  color: var(--lux-muted);
  margin: 0;
  max-width: 48ch;
  margin-inline: auto;
}

.lux-hizmet-form .lux-figma-booking.lux-booking-form,
.lux-hizmet-form .lux-booking-form.lux-figma-booking {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: visible;
  --lux-angle: 0deg;
}

.lux-hizmet-form .lux-figma-booking.lux-booking-form::before,
.lux-hizmet-form .lux-booking-form.lux-figma-booking::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--lux-angle),
    rgba(201, 168, 76, 0) 0%,
    rgba(201, 168, 76, 0.75) 12%,
    rgba(242, 208, 112, 1) 18%,
    rgba(201, 168, 76, 0.75) 24%,
    rgba(201, 168, 76, 0) 36%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  animation: lux-hizmet-border-spin 3.5s linear infinite;
}

.lux-hizmet-form .lux-figma-booking .rezinner .input-group .form-control {
  background: rgba(6, 6, 6, 0.85);
  border-color: var(--lux-border-gold);
  color: var(--lux-cream);
}

.lux-hizmet-form .lux-figma-booking .rezinner .input-group-addon {
  background: rgba(6, 6, 6, 0.85);
  border-color: var(--lux-border-gold);
}

.lux-hizmet-form .btn.yellow.rezbig,
.lux-hizmet-form .lux-figma-booking .rezbig,
.lux-figma-booking .btn.yellow.rezbig {
  width: 100%;
  min-height: 52px;
  font-family: var(--lux-font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--lux-gold) 0%, #d4b45a 100%) !important;
  border: 1px solid rgba(201, 168, 76, 0.55) !important;
  color: var(--lux-dark) !important;
  border-radius: var(--lux-radius-md);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.22);
  transition: transform 0.18s, box-shadow 0.2s, filter 0.2s;
}

.lux-hizmet-form .btn.yellow.rezbig:hover,
.lux-hizmet-form .lux-figma-booking .rezbig:hover,
.lux-figma-booking .btn.yellow.rezbig:hover {
  filter: brightness(1.06);
  color: var(--lux-dark) !important;
}

.lux-hizmet-form .lux-figma-booking .rezbig.is-error,
.lux-figma-booking .btn.yellow.rezbig.is-error {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #fff !important;
}

/* Şoförlü kiralama — İstanbul/Bodrum rezervasyon cam paneli */
.lux-hizmet-form .lux-driver-rental-form.lux-booking-checkout {
  position: relative;
  overflow: visible;
  --lux-angle: 0deg;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--lux-radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2rem);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lux-hizmet-form .lux-driver-rental-form.lux-booking-checkout::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--lux-angle),
    rgba(201, 168, 76, 0) 0%,
    rgba(201, 168, 76, 0.75) 12%,
    rgba(242, 208, 112, 1) 18%,
    rgba(201, 168, 76, 0.75) 24%,
    rgba(201, 168, 76, 0) 36%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  animation: lux-hizmet-border-spin 3.5s linear infinite;
}

.lux-hizmet-form .lux-driver-rental-form .lux-booking-checkout__actions {
  justify-content: stretch;
}

.lux-hizmet-form .lux-driver-rental-form .lux-driver-rental__submit {
  width: 100%;
}

/* ── Fleet CTA ── */
.lux-hizmet-fleet {
  padding: 3.5rem 0;
  background: var(--lux-surface);
  border-top: 1px solid var(--lux-border);
}

.lux-hizmet-fleet__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.lux-hizmet-fleet__title {
  font-family: var(--lux-font-display);
  font-size: 1.375rem;
  color: var(--lux-cream);
  margin: 0 0 0.5rem;
}

.lux-hizmet-fleet__desc {
  font-size: 0.9rem;
  color: var(--lux-muted);
  margin: 0;
}

.lux-hizmet-fleet__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lux-hizmet-fleet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lux-hizmet-badges::before,
  .lux-hizmet-form .lux-figma-booking.lux-booking-form::before,
  .lux-hizmet-form .lux-booking-form.lux-figma-booking::before,
  .lux-hizmet-form .lux-driver-rental-form.lux-booking-checkout::before {
    animation: none;
    opacity: 0.45;
  }

  .lux-hizmet-badge:hover .lux-hizmet-badge__icon {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .lux-hizmet-hero-stage {
    display: flex;
    flex-direction: column;
    min-height: auto;
    overflow: visible;
  }

  .lux-hizmet-hero-stage .lux-hizmet-hero {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    min-height: min(52vh, 420px);
    max-height: none;
  }

  .lux-hizmet-hero-stage .lux-hizmet-hero__content {
    padding: clamp(1.25rem, 4vw, 1.75rem);
    padding-right: 1.25rem;
    max-width: none;
  }

  .lux-hizmet-hero-stage .lux-hizmet-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.45) 0%,
      rgba(8, 8, 8, 0.8) 100%
    );
  }

  .lux-hizmet-hero {
    min-height: min(52vh, 420px);
  }

  .lux-hizmet-content {
    padding: 3rem 0;
  }

  .lux-hizmet-fleet__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
