.car-rent-form {
  background: transparent;
  border-radius: 20px;
  margin: 0 auto;
  padding: 0;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  box-sizing: border-box;
}

.car-rent-form-header {
  margin-bottom: 24px;
}

.car-rent-form-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.car-rent-form-caption {
  color: #000;
  font-size: 15px;
  font-weight: 400;
}

.car-rent-label {
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-size: 14px;
}

.car-rent-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #888;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  margin-left: 8px;
  cursor: pointer;
  border: 1px solid #ccc;
  position: relative;
  font-weight: bold;
  padding: 0;
  box-sizing: border-box;
}

.car-rent-tooltip:hover {
  background: #0033a1;
  color: white;
  border-color: #0033a1;
}

.insurance-tooltip-js {
  position: fixed;
  background: #0033a1;
  color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  width: 350px;
  max-width: calc(100vw - 40px);
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  font-weight: normal;
  text-align: left;
  border: 1px solid #0033a1;
  display: none;
}

.insurance-tooltip-js::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  border: 8px solid transparent;
  border-top-color: #0033a1;
}

.insurance-tooltip-js .insurance-item {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.insurance-tooltip-js .insurance-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.insurance-tooltip-js .insurance-title {
  font-weight: 700;
  color: white;
  font-size: 14px;
  margin-bottom: 4px;
}

.insurance-tooltip-js .insurance-desc {
  color: white;
  font-size: 12px;
  margin: 0;
}

.insurance-tooltip-js .insurance-desc strong {
  color: white;
  font-weight: 700;
}

.tariff-info-display {
  background: #f8f9ff;
  border: 2px solid #0033a1;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  font-family: 'DIN Pro', Arial, sans-serif;
}

.tariff-info-text {
  font-size: 14px;
  font-weight: 600;
  color: #0033a1;
  display: block;
}

.tariff-info-details {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  display: block;
}

.car-rent-form-group {
  margin-bottom: 24px;
}

.car-rent-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.car-rent-form-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.car-rent-form input[type="text"],
.car-rent-form input[type="tel"],
.car-rent-form select:not(.ap-select-input),
.car-rent-form input[type="email"],
.car-rent-form .ap-custom-date-input,
.car-rent-form .ap-custom-time-input,
.car-rent-form .ap-custom-input {
  width: 100%;
  background: #efefef;
  border: none;
  border-radius: 15px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-weight: 300;
  margin-bottom: 0;
  margin-top: 0;
  box-sizing: border-box;
  outline: none;
  color: #333;
  transition: background 0.2s;
}

.car-rent-form input[type="text"]:focus,
.car-rent-form input[type="tel"]:focus,
.car-rent-form select:not(.ap-select-input):focus,
.car-rent-form input[type="email"]:focus,
.car-rent-form .ap-custom-date-input:focus,
.car-rent-form .ap-custom-time-input:focus,
.car-rent-form .ap-custom-input:focus {
  background: #e5e5e5;
}

.car-rent-form select:not(.ap-select-input) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='4,7 9,12 14,7' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
  padding-right: 38px;
  cursor: pointer;
}

.car-rent-form .ap-date-time-group.select-group {
  position: relative;
  background: #efefef;
  border-radius: 15px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.car-rent-form .ap-date-time-group.select-group:hover {
  background: #e5e5e5;
}

.car-rent-form .ap-date-time-group.select-group .ap-select-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 16px;
}

.car-rent-form .ap-select-label {
  flex: 1;
  font-size: 16px;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-weight: 300;
  color: #333;
  pointer-events: none;
}

.car-rent-form .ap-date-time-group.select-group .ap-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.car-rent-form .ap-date-time-group.select-group .ap-select-arrow svg {
  width: 18px;
  height: 18px;
}

.car-rent-form .ap-date-time-group.select-group .ap-location-icon {
  margin-right: 10px;
  pointer-events: none;
  flex-shrink: 0;
}

.car-rent-form .ap-date-time-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #efefef;
  border-radius: 15px;
  padding: 14px 16px;
  transition: background 0.2s;
}

.car-rent-form .ap-date-time-group:hover {
  background: #e5e5e5;
}

.car-rent-form .ap-date-time-group.focus {
  box-shadow: 0 0 0 2px #0033a1;
}

.car-rent-form .ap-date-time-group .ap-calendar-icon {
  width: 16px;
  height: 16px;
  margin-right: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.car-rent-form .ap-date-time-group .ap-custom-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-weight: 300;
  color: #333;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 115px;
}

.car-rent-form .ap-date-time-group input.ap-custom-input,
.car-rent-form .ap-date-time-group input.ap-custom-time-input {
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.car-rent-form .ap-date-time-group .ap-custom-time-input {
  width: 65px;
  text-align: center;
}

.car-rent-form .ap-date-time-group .ap-divider {
  width: 1px;
  height: 24px;
  background: #ccc;
  margin: 0 12px;
}

.car-rent-form .ap-date-time-group .ap-time-arrow {
  background: #e0e0e0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
}

.car-rent-form .ap-custom-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 5px;
  max-height: 250px;
  overflow-y: auto;
}

.car-rent-form .ap-custom-dropdown.ap-custom-calendar {
  max-height: none;
  overflow: visible;
  width: 280px;
  padding: 16px;
}

.car-rent-form .ap-custom-dropdown.open {
  display: block;
}

.car-rent-form .ap-dropdown-content {
  padding: 8px 0;
}

.car-rent-form .ap-dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'DIN Pro', Arial, sans-serif;
  color: #333;
  cursor: pointer;
  transition: background-color 0.15s;
}

.car-rent-form .ap-dropdown-item:hover,
.car-rent-form .ap-dropdown-item.selected {
  background: #f3f3f3;
}

.car-rent-form .ap-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.car-rent-form .ap-custom-calendar .ap-calendar-nav {
  background: #0133a1 !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  border-radius: 50% !important;
  transition: all 0.2s;
  font-size: 18px !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-weight: bold !important;
  margin: 0 !important;
  gap: 0 !important;
}

.car-rent-form .ap-custom-calendar .ap-calendar-nav:hover {
  background: #0147c7 !important;
  transform: scale(1.05);
}

.car-rent-form .ap-custom-calendar .ap-calendar-nav:active {
  transform: scale(0.95);
}

.car-rent-form .ap-calendar-title {
  font-size: 16px;
  font-weight: 500;
}

.car-rent-form .ap-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.car-rent-form .ap-calendar-day-header {
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.car-rent-form .ap-calendar-day {
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
  font-size: 14px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-rent-form .ap-calendar-day:hover {
  background: #f3f3f3;
}

.car-rent-form .ap-calendar-day.selected {
  background: #e1251b;
  color: white;
}

.car-rent-form .ap-calendar-day.other-month:not(.disabled) {
  color: #333;
  opacity: 0.8;
}

.car-rent-form .ap-calendar-day.other-month.disabled,
.car-rent-form .ap-calendar-day.disabled {
  color: #ccc !important;
  cursor: not-allowed !important;
  background: #f8f8f8 !important;
  opacity: 0.5;
  pointer-events: none;
}

.car-rent-form .ap-calendar-day.disabled:hover {
  background: #f8f8f8 !important;
}

.car-rent-form .ap-calendar-day.today {
  background: #e3f2fd;
  font-weight: 500;
}

.car-rent-form .ap-calendar-day.today.selected {
  background: #e1251b;
  color: white;
}

.car-rent-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-btn {
  display: flex;
  align-items: center;
  border: 1.5px solid #d4d7e1;
  border-radius: 12px;
  padding: 5px 10px 5px 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  gap: 10px;
  user-select: none;
  font-weight: 500;
  color: #0033a1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  position: relative;
}

.option-btn input {
  display: none;
}

.option-btn:hover {
  border-color: #0033a1;
  background: #f8f9ff;
}

.option-btn:hover svg,
.option-btn:hover img {
  color: #0033a1;
  filter: brightness(0) saturate(100%) invert(13%) sepia(100%)
    saturate(3532%) hue-rotate(220deg) brightness(95%) contrast(101%);
}

.option-btn svg,
.option-btn img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: #0033a1;
  fill: none;
  transition: color 0.2s, filter 0.2s;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(13%) sepia(100%)
    saturate(3532%) hue-rotate(220deg) brightness(95%) contrast(101%);
}

.option-btn.active {
  background: #0033a1;
  color: #fff;
  border-color: #0033a1;
}

.option-btn.active svg,
.option-btn.active img {
  color: #fff;
  filter: brightness(0) invert(1) !important;
}

.option-btn.active:hover svg,
.option-btn.active:hover img {
  color: #fff;
  filter: brightness(0) invert(1) !important;
}

.option-btn:active {
  filter: brightness(0.96);
}

.car-rent-form-total {
  margin: 32px 0 20px 0;
}

.total-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.total-list {
  font-size: 16px;
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.departure-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.departure-field {
  flex: 1;
  transition: flex 0.3s ease;
}

.departure-field.with-return {
  flex: 0.5;
}

.add-return-btn-container {
  flex: 0.5;
  margin-top: 24px;
  transition: all 0.3s ease;
  opacity: 1;
}

.add-return-btn-container.hiding {
  opacity: 0;
  transform: scale(0.95);
}

.add-return-btn {
  background: #0033a1;
  border: none;
  border-radius: 15px;
  padding: 0;
  font-size: 16px;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-weight: 300;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

.add-return-btn:hover {
  background: #0147c7;
}

.add-return-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(1, 51, 161, 0.3);
}

.add-return-btn svg {
  color: white;
  stroke: white;
  margin-right: 8px;
}

.return-location-group {
  flex: 0.5;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  display: none;
}

.return-location-group.showing {
  opacity: 1;
  transform: scale(1);
  display: block;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #e5e5e5;
  padding: 6px 0;
}

.total-row:last-child {
  border-bottom: none;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.order-item:last-child {
  border-bottom: none;
}

.order-label {
  font-weight: 500;
  color: #666;
  flex: 0 0 auto;
  margin-right: 12px;
}

.order-value {
  font-weight: 600;
  color: #333;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.car-rent-form-footer {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}

.total-summary {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
}

.total-label {
  color: #333;
}

.total-amount {
  color: #000000;
  font-weight: 700;
}

.confirm-btn {
  flex: 1 1 0;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-btn {
  background: #e1251b !important;
  color: #fff !important;
}

.confirm-btn:hover {
  background: #c91e15 !important;
}

.confirm-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed;
}

.car-rent-form .confirm-btn,
.car-rent-form button.confirm-btn {
  background: #e1251b !important;
  color: #fff !important;
  border: none !important;
}

.car-rent-form .confirm-btn:hover,
.car-rent-form button.confirm-btn:hover {
  background: #c91e15 !important;
  color: #fff !important;
}

.booking-notification {
  margin-top: 20px;
  border-radius: 12px;
  padding: 16px;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.3s ease-out;
}

.booking-notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.booking-notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.booking-notification-message {
  flex: 1;
  line-height: 1.4;
  padding-top: 2px;
}

.booking-notification-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.booking-notification-action {
  background: #4caf50 !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DIN Pro', Arial, sans-serif;
}

.booking-notification-action:hover {
  background: #45a049 !important;
}

.booking-notification-success {
  background: #f0f9f0;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.booking-notification-success .booking-notification-icon {
  background: #4caf50;
  color: white;
}

.booking-notification-error {
  background: #fef5f5;
  border: 1px solid #f44336;
  color: #c62828;
}

.booking-notification-error .booking-notification-icon {
  background: #f44336;
  color: white;
}

.booking-notification-info {
  background: #f0f8ff;
  border: 1px solid #2196f3;
  color: #1565c0;
}

.booking-notification-info .booking-notification-icon {
  background: #2196f3;
  color: white;
}

.booking-notification-success .booking-notification-action,
.booking-notification-error .booking-notification-action,
.booking-notification-info .booking-notification-action {
  background: #4caf50 !important;
  color: white !important;
}

.booking-notification-success .booking-notification-action:hover,
.booking-notification-error .booking-notification-action:hover,
.booking-notification-info .booking-notification-action:hover {
  background: #45a049 !important;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .car-rent-form {
    padding: 16px 4vw;
    max-width: 98vw;
  }
  .car-rent-form-row {
    flex-direction: column;
    gap: 0;
  }
  .car-rent-form-footer {
    flex-direction: column;
    gap: 8px;
  }
  .total-summary {
    order: 2;
  }
  .confirm-btn {
    order: 1;
  }

  .departure-row {
    flex-direction: column;
    gap: 12px;
  }

  .departure-field,
  .departure-field.with-return {
    flex: 1;
  }

  .add-return-btn-container,
  .return-location-group {
    flex: 1;
    margin-top: 0;
  }

  .add-return-btn {
    justify-content: center;
    width: 100%;
  }

  .insurance-tooltip-js {
    width: calc(100vw - 30px) !important;
    max-width: none !important;
    left: 15px !important;
    right: 15px !important;
    font-size: 12px;
    padding: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 15px !important;
  }

  .insurance-tooltip-js .insurance-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .insurance-tooltip-js .insurance-desc {
    font-size: 12px;
    line-height: 1.4;
  }

  .insurance-tooltip-js .insurance-item {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .car-rent-tooltip {
    min-width: 24px;
    min-height: 24px;
    line-height: 24px;
    padding: 0;
    margin-left: 6px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
