/* ===== BOOKING PAGE STYLES ===== */

/* Main Section */
.listing-single {
  padding: 80px 0 60px;
  background: #f8f9fa;
}

/* ===== TOP SECTION (Header with title, details, price) ===== */
.listing-single__top {
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  border-radius: 18px;
  padding: 35px 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(11, 77, 136, 0.08);
  border: 1px solid #e3e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.listing-single__top-left {
  flex: 1 1 60%;
  min-width: 300px;
}

.listing-single__top-right {
  flex: 0 0 auto;
  text-align: right;
}

/* Title */
.listing-single__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--mauno-base, #0B4D88);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.listing-single__sub-title {
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Car Details Box */
.listing-single__car-details-box {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.listing-single__car-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-single__car-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #131222;
  font-weight: 500;
}

.listing-single__car-details li span[class^="icon-"] {
  font-size: 1.3rem;
  color: var(--mauno-base, #0B4D88);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.listing-single__car-details li p {
  margin: 0;
  line-height: 1.4;
}

/* Price Section (Top Right) */
.listing-single__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mauno-base, #0B4D88);
  margin-bottom: 15px;
  letter-spacing: 0.01em;
}

.listing-single__offer-price {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e3e8f0;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(11, 77, 136, 0.08);
}

.listing-single__offer-price .icon {
  font-size: 1.4rem;
  color: var(--mauno-base, #0B4D88);
}

.listing-single__offer-price .text p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #131222;
}

/* ===== MAIN CONTENT SECTION (Image + Form) ===== */
.listing-single__inner {
  margin-top: 40px;
}

.listing-single__main-content-inner {
  background: #fff;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(11, 77, 136, 0.08);
  overflow: hidden;
}

/* Two Column Layout */
.listing-single__main-content-inner .row {
  margin: 0;
}

.listing-single__main-content-inner .col-xl-5,
.listing-single__main-content-inner .col-lg-5 {
  padding: 0;
}

.listing-single__main-content-inner .col-xl-7,
.listing-single__main-content-inner .col-lg-7 {
  padding: 0;
}

/* ===== LEFT SIDE (Image + Details) ===== */
.listing-single__left {
  background: linear-gradient(135deg, #f7faff 0%, #e3e8f0 100%);
  padding: 35px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listing-single__img {
  width: 100%;
}

.listing-single__img img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(11, 77, 136, 0.12);
  margin-bottom: 20px;
  object-fit: cover;
}

.listing-single__img p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 8px;
}

#partener {
  font-weight: 600;
  color: var(--mauno-base, #0B4D88);
}

#partener a {
  color: var(--mauno-base, #0B4D88);
  text-decoration: underline;
  transition: color 0.2s;
}

#partener a:hover {
  color: #1e40af;
}

#descriereMasina {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #374151;
  padding: 18px;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--mauno-base, #0B4D88);
  box-shadow: 0 2px 8px rgba(11, 77, 136, 0.06);
}

/* ===== RIGHT SIDE (Booking Form) ===== */
.listing-single__sidebar {
  padding: 40px 35px;
  background: #fff;
  height: 100%;
}

.listing-single__single-box {
  margin-bottom: 25px;
}

.listing-single__rent-car-daily-price {
  background: linear-gradient(135deg, #0B4D88 0%, #1e40af 100%);
  color: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(11, 77, 136, 0.15);
}

.listing-single__rent-car-daily-price h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Form Styling */
.booking-one__form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #131222;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e3e8f0;
  border-radius: 10px;
  background: #f9fafb;
  color: #131222;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-weight: 500;
}

.form-control:focus {
  border-color: var(--mauno-base, #0B4D88);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 77, 136, 0.1);
}

.form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Insurance Options */
.listing-single__rent-car-extra {
  margin-bottom: 30px;
}

.listing-single__rent-car-extra-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mauno-base, #0B4D88);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.listing-single__rent-car-extra ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listing-single__rent-car-extra ul li {
  background: #f7faff;
  border: 2px solid #e3e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.listing-single__rent-car-extra ul li:hover {
  border-color: var(--mauno-base, #0B4D88);
  background: #fff;
  box-shadow: 0 2px 12px rgba(11, 77, 136, 0.08);
}

.checked-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.checked-box input[type="checkbox"],
.checked-box input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--mauno-base, #0B4D88);
  cursor: pointer;
}

.checked-box label {
  font-size: 1rem;
  font-weight: 600;
  color: #131222;
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.garantie-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.garantie-right {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0B4D88;
  background: #e3e8f0;
  padding: 4px 12px;
  border-radius: 6px;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.question-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--mauno-base, #0B4D88);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #131222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.counts-box {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mauno-base, #0B4D88);
  white-space: nowrap;
}

/* Price Box Summary */
.listing-single__rent-car-price-box {
  background: linear-gradient(135deg, #f7faff 0%, #e3e8f0 100%);
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 30px;
  border: 2px solid #e3e8f0;
  box-shadow: 0 4px 16px rgba(11, 77, 136, 0.08);
}

.listing-single__rent-car-price-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listing-single__rent-car-price-box ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #d1d5db;
}

.listing-single__rent-car-price-box ul li:last-child {
  border-bottom: none;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 2px solid var(--mauno-base, #0B4D88);
}

.listing-single__rent-car-price-box .title p {
  font-size: 1rem;
  font-weight: 600;
  color: #131222;
  margin: 0;
}

.listing-single__rent-car-price-box .price p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mauno-base, #0B4D88);
  margin: 0;
}

.listing-single__rent-car-price-box ul li:last-child .title p {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mauno-base, #0B4D88);
}

.listing-single__rent-car-price-box ul li:last-child .price p {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e40af;
}

/* Buttons */
.thm-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #0B4D88 0%, #1e40af 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  text-align: center;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(11, 77, 136, 0.2);
  text-decoration: none;
}

.thm-btn:hover {
  background: linear-gradient(90deg, #1e40af 0%, #0B4D88 100%);
  box-shadow: 0 6px 24px rgba(11, 77, 136, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.thm-btn:active {
  transform: translateY(0);
}

#nextSection,
#backSection {
  width: 100%;
  margin-top: 20px;
}

#backSection {
  background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
  margin-right: 10px;
}

#backSection:hover {
  background: linear-gradient(90deg, #4b5563 0%, #374151 100%);
}

/* Personal Information Section */
.booking-one__input-box {
  margin-bottom: 20px;
}

.booking-one__input-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #131222;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-one__input-title span[class^="icon-"] {
  color: var(--mauno-base, #0B4D88);
  font-size: 1.1rem;
}

.required-star {
  color: #ef4444;
  font-weight: 700;
  margin-left: 3px;
}

.booking-one__input-box input,
.booking-one__input-box select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e3e8f0;
  border-radius: 10px;
  background: #f9fafb;
  color: #131222;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-weight: 500;
}

.booking-one__input-box input:focus,
.booking-one__input-box select:focus {
  border-color: var(--mauno-base, #0B4D88);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 77, 136, 0.1);
}

.booking-one__input-box input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  accent-color: var(--mauno-base, #0B4D88);
}

/* Validation Error Styles */
.form-control.error,
.booking-one__input-box input.error,
.booking-one__input-box select.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-control.error:focus,
.booking-one__input-box input.error:focus,
.booking-one__input-box select.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  display: block;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  animation: fadeIn 0.2s ease-out;
}

/* Section Toggle */
#section1,
#section2 {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Out of Hours Warning */
#out-of-hours-warning {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

#out-of-hours-warning i {
  font-size: 1.3rem;
  color: #1e40af;
  margin-top: 2px;
  flex-shrink: 0;
}

#out-of-hours-warning strong {
  color: #1e3a8a;
  font-weight: 700;
}

#out-of-hours-warning span {
  color: #1e40af;
  line-height: 1.6;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* One Way Fee Warning */
#one-way-fee-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

#one-way-fee-warning i {
  font-size: 1.3rem;
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}

#one-way-fee-warning strong {
  color: #92400e;
  font-weight: 700;
}

#one-way-fee-warning span {
  color: #b45309;
  line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1199px) {
  .listing-single__top {
    flex-direction: column;
  }

  .listing-single__top-left,
  .listing-single__top-right {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .listing-single__top-right {
    text-align: left;
  }
}

@media (max-width: 991px) {
  .listing-single__main-content-inner .row {
    flex-direction: column;
  }

  .listing-single__left,
  .listing-single__sidebar {
    padding: 30px 25px;
  }

  .listing-single__title {
    font-size: 1.6rem;
  }

  .listing-single__price {
    font-size: 1.8rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .listing-single {
    padding: 50px 0 40px;
  }

  .listing-single__top {
    padding: 25px 20px;
    margin-bottom: 30px;
  }

  .listing-single__title {
    font-size: 1.4rem;
  }

  .listing-single__car-details-box {
    flex-direction: column;
    gap: 15px;
  }

  .listing-single__price {
    font-size: 1.6rem;
  }

  .listing-single__left,
  .listing-single__sidebar {
    padding: 20px 18px;
  }

  .thm-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .listing-single__rent-car-price-box {
    padding: 16px 18px;
  }

  #nextSection,
  #backSection {
    width: 100%;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .listing-single__top {
    padding: 20px 16px;
  }

  .listing-single__title {
    font-size: 1.25rem;
  }

  .listing-single__car-details li {
    font-size: 0.9rem;
  }

  .form-control,
  .booking-one__input-box input,
  .booking-one__input-box select {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}
