.rg-travel-search {
  /* padding: 48px 20px;
  background: #F5F7FA;
  border-radius: 28px;
  font-family: Inter, Arial, sans-serif; */
}

.rg-travel-search__header {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.rg-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #0891B2;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rg-travel-search h2 {
  margin: 0 0 12px;
  color: #0E1B2D;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
}

.rg-travel-search p {
  color: #536173;
  font-size: 16px;
  line-height: 1.6;
}

.rg-travel-search__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.rg-travel-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(14, 27, 45, 0.06);
}

.rg-travel-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #E6F6F4;
  font-size: 22px;
  padding: 6px;
}

.rg-travel-card h3 {
  margin: 0 0 8px;
  color: #0E1B2D;
  font-size: 22px;
  font-weight: 800;
}

.rg-carhire-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.rg-carhire-form label {
  display: grid;
  gap: 6px;
  color: #0E1B2D;
  font-weight: 700;
  font-size: 13px;
}

.rg-carhire-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 14px;
  background: #F9FAFB;
  color: #111827;
  font-size: 14px;
}

.rg-carhire-form input:focus {
  outline: none;
  border-color: #0891B2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

.rg-carhire-form button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #0891B2;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.rg-carhire-form button:hover {
  background: #067A95;
}

.rg-small-note {
  margin-top: 10px;
  font-size: 12px !important;
  color: #6B7280 !important;
}

.rg-affiliate-note {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  background: #FFFBEB;
  color: #92400E !important;
  font-size: 13px !important;
  text-align: center;
}

@media (max-width: 900px) {
  .rg-travel-search {
    padding: 34px 16px;
    border-radius: 22px;
  }

  .rg-travel-search__grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Car hire widget — based on .rg-travel-search markup
   Matches screenshot / coderick car-hire look
   ========================================================= */

.rg-travel-search {
  --rg-purple: #9333ea;
  --rg-purple-hover: #7e22ce;
  --rg-text: #111827;
  --rg-muted: #9ca3af;
  --rg-border: #e5e7eb;
  --rg-input-bg: #f9fafb;
  --rg-radius: 12px;

  max-width: 1024px;
  margin: 0 auto;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--rg-text);
}

.rg-travel-search *,
.rg-travel-search *::before,
.rg-travel-search *::after {
  box-sizing: border-box;
}

.rg-travel-search__full {
  width: 100%;
}

/* ---- White card ---- */
.rg-travel-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  box-shadow:
    0 20px 40px -20px rgba(17, 24, 39, 0.12),
    0 8px 16px -8px rgba(17, 24, 39, 0.06);
}

/* Icon left of title/subtitle */
.rg-travel-card__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 12px;
  background: #ede9fe;
}

.rg-travel-card__icon img,
.rg-travel-card__icon .emoji {
  width: 20px;
  height: 20px;
  display: block;
}

.rg-travel-card > h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rg-text);
}

/* Card intro paragraph (not the small note) */
.rg-travel-card > p:not(.rg-small-note) {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--rg-muted);
}

/* ---- Form row ---- */
.rg-carhire-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
}

.rg-carhire-form > label {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
}

/* Hide field labels — placeholders carry the UI copy */
.rg-carhire-form > label > span {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rg-carhire-form input[type="text"],
.rg-carhire-form input[type="date"] {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  background-color: var(--rg-input-bg);
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 16px 16px;
  color: var(--rg-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rg-carhire-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.rg-carhire-form input:focus {
  outline: none;
  border-color: #c084fc;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.55);
}

.rg-carhire-form .rg-carhire-location {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.rg-carhire-form .rg-carhire-pickup,
.rg-carhire-form .rg-carhire-dropoff {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M8 2v4M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.rg-carhire-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}

.rg-carhire-form > button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  margin: 0;
  padding: 0 24px;
  border: none;
  border-radius: var(--rg-radius);
  background: var(--rg-purple);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 20px -8px rgba(147, 51, 234, 0.45);
  transition: background-color 0.15s ease;
}

.rg-carhire-form > button[type="submit"]::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.rg-carhire-form > button[type="submit"]:hover {
  background: var(--rg-purple-hover);
}

/* Footer note inside card */
.rg-small-note {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--rg-muted);
}

/* Affiliate / developer note under card */
.rg-affiliate-note {
  margin: 12px 4px 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .rg-carhire-form {
    grid-template-columns: 1fr 1fr;
  }

  .rg-carhire-form > label:first-of-type,
  .rg-carhire-form > button[type="submit"] {
    grid-column: 1 / -1;
  }

  .rg-carhire-form > button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .rg-travel-card {
    padding: 20px;
    border-radius: 20px;
  }

  .rg-carhire-form {
    grid-template-columns: 1fr;
  }
}