/*
Theme Name: Reservation Form Only
Theme URI: https://example.com/reservation-form-only
Author: Site Owner
Author URI: https://example.com
Description: Ultra-lightweight theme that renders only a Ninja Forms reservation form on the homepage.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reservation-form-only
*/

/* Minimal global styles */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --accent: #10b981;
  --text: #0f172a;
  --muted: #5b6473;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.08), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.08), transparent 36%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site-header,
.site-footer {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
}

.shell {
  /* header/footer shell */
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px clamp(18px, 2vw, 28px);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-main {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
}

.brand__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.site-logo {
  height: 70px;
  width: auto;
  display: block;
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

.site-nav .menu-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.12s ease, background 0.12s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item>a {
  color: var(--text);
  background: rgba(16, 185, 129, 0.12);
}

.rfo-hero {
  margin: 0;
  padding: 0;
  width: min(1440px, 100%);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.rfo-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  align-items: flex-start;
  background: var(--card);
}

.rfo-media {
  position: relative;
  overflow: hidden;
  height: 600px;
  max-height: 600px;
  background: #000;
}

.rfo-media__frame {
  width: 100%;
  height: 100%;
  position: relative;
}

.rfo-media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.05);
}

.rfo-media__glow,
.rfo-media__content,
.rfo-media__badge,
.rfo-media__title,
.rfo-media__sub {
  display: none;
}

.rfo-media__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
}

.rfo-media__sub {
  margin: 0;
  color: var(--muted);
}

.rfo-booking-engine {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
  max-height: 600px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.rfo-booking-engine__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.rfo-booking-engine__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.rfo-booking-engine__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rfo-booking-engine__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rfo-booking-engine__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.rfo-booking-engine__field input,
.rfo-booking-engine__field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rfo-booking-engine__field input[type="checkbox"] {
  width: auto;
  padding: 0;
  box-shadow: none !important;
  cursor: pointer;
}

.rfo-booking-engine__field input:focus,
.rfo-booking-engine__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.rfo-booking-engine__submit {
  margin-top: 8px;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rfo-booking-engine__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.3);
}

.rfo-booking-engine__submit:active {
  transform: translateY(0px);
}

.rfo-highlights {
  background: #eef3f8;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px);
  max-height: 200px;
  display: flex;
  align-items: center;
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
}

.rfo-highlights__inner {
  width: 100%;
  margin: 0 auto;
}

.rfo-highlights__title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.rfo-highlights__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  color: var(--text);
  font-weight: 600;
}

.rfo-highlights__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.rfo-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.rfo-cars {
  background: #ffffff;
  padding: clamp(24px, 4vw, 36px) clamp(18px, 4vw, 36px);
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
}

.rfo-cars__inner {
  width: 100%;
  margin: 0 auto;
}

/* Agency Intro */
.rfo-agency {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(18px, 4vw, 36px);
}

.rfo-agency__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.rfo-agency__media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rfo-agency__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.rfo-agency__content h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
}

.rfo-agency__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .rfo-agency__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.rfo-faq {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(18px, 4vw, 36px);
}

.rfo-faq__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rfo-faq h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.rfo-faq__intro {
  margin: 0 0 8px;
  color: var(--muted);
}

.rfo-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rfo-faq__item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  padding: 0;
  overflow: hidden;
}

.rfo-faq__item summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  color: var(--text);
}

.rfo-faq__item summary::-webkit-details-marker {
  display: none;
}

.rfo-faq__chevron {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.rfo-faq__item[open] .rfo-faq__chevron {
  transform: rotate(-135deg);
  border-color: var(--accent);
}

.rfo-faq__item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.5;
}

.rfo-faq__answer {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.5;
}

.rfo-cars__header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.rfo-cars__header p {
  margin: 4px 0 16px;
  color: var(--muted);
}

.rfo-cars__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.rfo-car-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 calc((100% - 256px) / 3);
  max-width: calc((100% - 256px) / 3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rfo-car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.rfo-car-card__thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.rfo-car-card__placeholder {
  height: 160px;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: var(--muted);
}

.rfo-car-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rfo-car-card__title {
  margin: 0 0 6px;
  font-size: 17px;
}

.rfo-car-card__features {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.rfo-car-card__features span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rfo-car-card__features svg {
  color: var(--accent);
}

.rfo-car-card__price {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
}

.rfo-car-card__price strong {
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

.rfo-car-card__btn {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 10px 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rfo-car-card__btn:hover {
  background: var(--accent);
  color: #fff;
}

.rfo-cars__empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .rfo-hero__inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .rfo-media__badge {
    top: 14px;
    left: 14px;
  }

  .rfo-booking-engine {
    padding: clamp(18px, 4vw, 28px);
  }

  .rfo-highlights {
    max-height: none;
  }

  .rfo-car-card {
    flex: 1 1 48%;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .rfo-car-card {
    flex: 1 1 100%;
    max-width: none;
  }
}

.rfo-heading {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 36px);
  letter-spacing: -0.015em;
}

.rfo-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
}

.nf-form-layout {
  --nf-input-bg: #ffffff;
  --nf-input-border: #d1d5db;
  --nf-input-radius: 10px;
}

.nf-form-fields-required,
.nf-field-container .nf-error-msg,
.nf-error-field-errors {
  color: #ef4444;
}

input,
select,
textarea {
  background: var(--nf-input-bg) !important;
  border-radius: var(--nf-input-radius) !important;
  border: 1px solid var(--nf-input-border) !important;
  color: var(--text) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.nf-form-content button,
.nf-element[type="button"],
.nf-element[type="submit"] {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.35);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.nf-form-content button:hover,
.nf-element[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.3);
}

.nf-form-content button:active,
.nf-element[type="submit"]:active {
  transform: translateY(0px);
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  color: var(--text);
  margin-top: 60px;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__logo img {
  height: 68px;
  width: auto;
  display: block;
}

.footer__col-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__socials a {
  color: var(--muted);
  display: inline-flex;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer__socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  text-align: center;
}

.footer__bottom .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.footer__payments {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.payment-icon {
  display: block;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.payment-icon:hover {
  opacity: 1;
}

.footer__copyright {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-nav .menu-list {
    gap: 10px;
  }

  .site-shell {
    margin: 32px auto;
  }
}

/* WhatsApp Floating Button */
.wa-floating-wrap {
  position: fixed;
  bottom: 24px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  max-width: calc(100vw - 24px);
  overflow: hidden;
}

.wa-bubble {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(20px);
  animation: waSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 3s;
  pointer-events: none;
  position: relative;
  max-width: calc(100vw - 100px);
  overflow: hidden;
}

/* Add a tiny triangle for the bubble tail */
.wa-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.wa-floating-btn {
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.wa-floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #ffffff;
}

@keyframes waSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .wa-floating-wrap {
    bottom: 16px;
    right: 16px;
  }

  .wa-floating-btn {
    width: 52px;
    height: 52px;
  }

  .wa-floating-btn svg {
    width: 28px;
    height: 28px;
  }

  .wa-bubble {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Single Car Layout */
.rfo-single-car {
  padding: 40px 0 80px;
  background-color: var(--bg);
  flex-grow: 1;
}

.rfo-single-car__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.rfo-single-car__sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.rfo-single-car__header {
  margin-bottom: 24px;
}

.rfo-single-car__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.rfo-single-car__content {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 32px;
}

/* Base styles for standard wordpress blocks inside content */
.rfo-single-car__content>* {
  margin: 0;
  /* Reset default margins since WP usually handles this, or just ensures crisp bounding boxes */
}

.rfo-single-car__content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.rfo-car-gallery {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rfo-car-gallery__main {
  position: relative;
  background: #0f172a;
}

.rfo-car-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  transition: opacity 0.3s ease;
}

.rfo-car-gallery__main img.is-fading {
  opacity: 0;
}

.rfo-car-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 12px 12px 16px;
  background: rgba(15, 23, 42, 0.02);
  overflow-x: auto;
}

.rfo-car-gallery__thumb {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  flex-direction: column;
}

.rfo-car-gallery__thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.rfo-car-gallery__thumb-label {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.rfo-car-gallery__thumb.is-active,
.rfo-car-gallery__thumb:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.rfo-car-gallery__thumb:hover {
  transform: translateY(-2px);
}

.rfo-car-gallery__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rfo-single-car__specs {
  background: var(--card);
  padding: 24px 24px 8px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rfo-single-car__specs-heading h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.rfo-single-car__specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.rfo-single-car__spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.02);
}

.rfo-single-car__spec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.rfo-single-car__spec-label svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.rfo-single-car__spec-value {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.rfo-single-car__details {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  /* Ensure tags wrap on smaller screens */
}

.rfo-single-car__details span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rfo-single-car__details svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.rfo-single-car__price {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  font-size: 18px;
  color: var(--text);
  border-left: 4px solid var(--accent);
}

.rfo-single-car__price strong {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}

.rfo-rental-conditions {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-top: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rfo-rental-conditions__header h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.rfo-rental-conditions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.rfo-rental-conditions__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.rfo-rental-conditions__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
}

.rfo-rental-conditions__icon svg {
  width: 22px;
  height: 22px;
}

.rfo-rental-conditions__content h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.rfo-rental-conditions__content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.rfo-included {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-top: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rfo-included__header h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.rfo-included__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.rfo-included__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.rfo-included__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.rfo-included__icon svg {
  width: 16px;
  height: 16px;
}

.rfo-included__label {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

.rfo-single-car__sidebar {
  position: static;
  top: auto;
  align-self: start;
  z-index: auto;
}

body.admin-bar .rfo-single-car__sidebar {
  top: auto;
}

.rfo-single-car__sticky {
  position: sticky;
  top: 96px;
  z-index: 6;
}

.rfo-single-car__sidebar .rfo-booking-engine {
  border-left: none;
  /* overriding the hero visual */
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  /* slightly heavier shadow to emphasize the form */
  max-height: none;
  overflow: visible;
}

@media (max-width: 960px) {
  .rfo-single-car__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rfo-single-car__sidebar {
    position: static;
    top: auto;
  }
  .rfo-single-car__sticky {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .rfo-single-car__sidebar {
    padding: 0;
  }
  .rfo-single-car__sidebar .rfo-booking-engine {
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    max-width: 100%;
  }
}

/* Final sticky enforcement for desktop */
@media (min-width: 961px) {
  .rfo-single-car__sidebar {
    position: sticky !important;
    top: 96px !important;
    align-self: start;
    z-index: 10;
  }
  .rfo-single-car__sticky {
    position: static !important;
    top: auto;
  }
}

@media (max-width: 640px) {
  .rfo-single-car__specs-grid {
    grid-template-columns: 1fr;
  }

  .rfo-rental-conditions__grid {
    grid-template-columns: 1fr;
  }

  .rfo-included__list {
    grid-template-columns: 1fr;
  }

  .rfo-car-gallery__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .rfo-car-gallery__thumb img {
    height: 72px;
  }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.rfo-cars__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.rfo-cars__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  background-color: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.rfo-cars__pagination .page-numbers:hover,
.rfo-cars__pagination .page-numbers:focus {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.rfo-cars__pagination .page-numbers.current {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  pointer-events: none;
}

.rfo-cars__pagination .prev.page-numbers,
.rfo-cars__pagination .next.page-numbers {
  padding: 0 20px;
  background-color: transparent;
  border: 1px solid #e5e7eb;
}

.rfo-cars__pagination .prev.page-numbers:hover,
.rfo-cars__pagination .next.page-numbers:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========================================================================== */
/* HEADER META (phone/email) */
/* ========================================================================== */

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1;
  flex-wrap: wrap;
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.contact-chip__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-chip--cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.contact-chip--ghost {
  background: transparent;
  border-color: rgba(16, 185, 129, 0.26);
  color: var(--text);
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

@media (max-width: 960px) {
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__right {
    width: 100%;
    justify-content: space-between;
  }

  .site-header__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header__right {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__meta {
    width: 100%;
    gap: 8px;
  }

  .contact-chip {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================================== */
/* CONTACT PAGE */
/* ========================================================================== */

.contact-hero {
  padding: clamp(40px, 6vw, 72px) 0;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.14));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-hero__content {
  max-width: 720px;
}

.contact-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
  font-size: 13px;
}

.contact-hero__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 42px);
  letter-spacing: -0.02em;
}

.contact-hero__subtitle {
  margin: 0 0 20px;
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
}

.contact-hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-section {
  padding: clamp(36px, 6vw, 64px) 0 clamp(52px, 7vw, 92px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.contact-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.10), transparent 35%),
              radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.10), transparent 32%);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card__header {
  margin-bottom: 16px;
}

.contact-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
  font-size: 12px;
}

.contact-card__title {
  margin: 0 0 8px;
  font-size: 24px;
}

.contact-card__lead {
  margin: 0;
  color: var(--muted);
}

.contact-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.contact-card__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-card__list li:first-child {
  border-top: none;
  padding-top: 6px;
}

.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18);
}

.contact-card__label {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--text);
}

.contact-card__meta {
  margin: 0;
  color: var(--muted);
}

.contact-card__list a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.contact-card__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.contact-card__list a:hover::after,
.contact-card__list a:focus-visible::after {
  opacity: 1;
}

.contact-card--form {
  position: relative;
}

.contact-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-alert--success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.contact-alert--error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fdfefe;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.contact-form__submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.24);
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.3);
}

.footer__contact {
  display: grid;
  gap: 6px;
}

.footer__contact a {
  font-weight: 600;
}

/* ========================================================================== */
/* LEGAL / CONDITIONS PAGE */
/* ========================================================================== */

.legal-page {
  padding: clamp(42px, 6vw, 72px) 0 clamp(70px, 8vw, 110px);
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.08), transparent 36%),
    #f5f6f8;
}

.legal-page__header {
  text-align: center;
  margin-bottom: 28px;
}

.legal-page__eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 12px;
}

.legal-page__title {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.6vw, 40px);
}

.legal-page__meta {
  margin: 0;
  color: var(--muted);
}

.legal-page__grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(18px, 4vw, 38px);
  align-items: start;
}

.legal-page__toc {
  position: sticky;
  top: 120px;
  background: linear-gradient(140deg, #ffffff 0%, #f8fbff 100%);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  padding: 18px 18px 20px;
  overflow: hidden;
}

.legal-page__toc-title {
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.legal-page__toc ol {
  counter-reset: legal-toc;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.legal-page__toc a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  width: 100%;
}

.legal-page__toc a:hover,
.legal-page__toc a:focus-visible {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateX(2px);
}


.legal-page__toc li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-page__toc li::before {
  counter-increment: legal-toc;
  content: counters(legal-toc, ".", decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
  font-weight: 800;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25);
  margin-left: 4px;
}

.legal-page__toc li a:hover::after,
.legal-page__toc li a:focus-visible::after,
.legal-page__toc li a:active::after {
  opacity: 1;
}

.legal-page__toc li a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.legal-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 22px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.legal-section p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.legal-contact {
  margin-top: 20px;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-contact__eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.legal-contact__title {
  margin: 0 0 6px;
  font-size: 20px;
}

.legal-contact__text {
  margin: 0;
  color: var(--muted);
}

.legal-contact__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .legal-page__grid {
    grid-template-columns: 1fr;
  }

  .legal-page__toc {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .legal-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
