/**
 * Custom VikRentCar Search Form Styles
 * Matches the "Book a Car" design from the reference HTML
 */

/* Main search container */
.vrcdivsearch {
  background: #2a2a2a;
  padding: 0 !important;
  border: none !important;
  border-radius: 15px;
  max-width: 450px;
  display: block !important;
}

.entry-content {
  margin: 0 !important;
}

.vrcdivsearch-inner {
  background: white !important;
  border-radius: 0 0 15px 15px;
  padding: 20px;
}

.vrcdivsearch .vrcsfentrylabsel .vrcsfentrydate i {
  margin-top: 0px !important;
}

/* Form Header - Book a Car Title */
.vrcdivsearch::before {
  content: "Book a Car";
  display: block;
  color: #ffffff;
  border: none !important;
  background: black;
  border-radius: 15px 15px 0 0;
  font-size: 24px;
  word-spacing: 5px;
  font-weight: 600;
  padding: 20px;
  margin: 0;
  line-height: 1;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.vrc-main-title {
  display: none !important;
}

/* Form Content Area */
.vrc-searchf-section-locations,
.vrc-searchf-section-datetimes,
.vrc-searchf-section-categories {
  background: #ffffff;
  margin: 0;
  display: block;
}

/* Input containers */
.vrcsfentrycont {
  margin-bottom: 20px;
  position: relative;
}

.vrcsfentrycont:last-child {
  margin-bottom: 0;
}

/* Remove margin-right from first child in locations section */
.vrc-searchf-section-locations .vrcsfentrycont:first-child {
  margin-right: 0;
}

/* Specific margin for all vrcsfentrycont inside vrcdivsearch */
.vrcdivsearch .vrcsfentrycont {
  margin: 0 0 10px 0;
}

/* Margin for direct div children */
.vrcdivsearch .vrcsfentrycont > div {
  margin: 0px !important;
}

/* Margin-right for date/time labels */
.vrcdivsearch .vrc-searchf-section-datetimes .vrcsfentrycont .vrcsfentrylabsel {
  margin-right: 0px !important;
margin-bottom: 10px !important;
}

/* Labels */
.vrcsfentrycont label,
.vrcsfentrylabsel label {
  display: block;
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* Input fields */
.vrcsfentryselect select,
.vrcsfentrydate input[type="text"],
.vrc-sf-time-container select,
input#pickupdate,
input#releasedate,
select#pickuph,
select#pickupm,
select#releaseh,
select#releasem {
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  font-size: 16px;
  color: #999999;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.vrcsfentryselect select:focus,
.vrcsfentrydate input[type="text"]:focus,
.vrc-sf-time-container select:focus {
  border-color: #999999;
  outline: none;
  color: #333333;
}

/* Select dropdown arrow */
.vrcsfentryselect select,
select#pickuph,
select#pickupm,
select#releaseh,
select#releasem {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.vrcsfentryselect {
  width: 100%;
  position: relative;
}

/* Date and time layout */
.vrcsfentrylabsel {
  width: 100%;
  margin-bottom: 0;
}

.vrcsfentrydate {
  position: relative;
  width: 100%;
}

.vrcsfentrydate input {
  width: 100%;
}

/* Calendar icon */
.vrcsfentrydate .vrc-caltrigger,
.vrc-caltrigger {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  pointer-events: none;
  font-size: 18px;
}

/* Time picker layout */
.vrcsfentrytime {
  width: 100%;
  margin-top: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.vrcsfentrytime label {
  margin-bottom: 0;
  white-space: nowrap;
}

.vrc-sf-time-container {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
}

.vrc-sf-time-container span {
  flex: 1;
}

.vrc-sf-time-container .vrctimesep {
  flex: 0 0 auto;
  color: #000000;
  font-size: 18px;
  font-weight: 400;
}

.vrc-sf-time-container select {
  width: 100%;
}

/* Return to same location checkbox */
.vrcsfentrycont input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: middle;
  accent-color: #c41e3a;
  cursor: pointer;
}

.vrcsfentrycont label[for*="same"],
.checkbox-desc {
  display: inline-flex;
  align-items: center;
  color: #000000;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* Submit button section */
.vrc-searchf-section-sbmt {
  background: #ffffff;
  padding: 0;
  margin: 0;
}

.vrcsfentrysubmit {
  width: 100%;
}

.vrcsfentrysubmit input[type="submit"],
.vrc-search-btn {
  width: 100%;
  padding: 16px 40px;
  background: #c94855;
  color: #ffffff;
  border: none;
  border-radius: 8px !important;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  margin-top: 10px;
}

.vrcsfentrysubmit input[type="submit"]:hover,
.vrc-search-btn:hover {
  background: #b33d49;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 72, 85, 0.3);
}

/* Placeholder styling */
.vrcsfentrydate input::placeholder,
input#pickupdate::placeholder,
input#releasedate::placeholder {
  color: #999999;
  font-size: 16px;
}

/* Locations map link */
.vrclocationsbox {
  background: #ffffff;
  padding: 0 40px 20px;
  margin: 0;
  text-align: center;
}

.vrclocationsmapdiv a {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vrclocationsmapdiv a:hover {
  color: #c41e3a;
}

/* Date/Time combined rows */
.vrc-searchf-section-datetimes .vrcsfentrycont {
  display: block;
}

/* Hide any intro/closing text */
.vrc-full-front-title,
.vrc-intro-main,
.vrc-closing-main {
  display: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .vrcdivsearch {
    max-width: 100%;
  }

  .vrcdivsearch::before {
    font-size: 24px;
    padding: 30px 20px 20px;
  }

  .vrc-searchf-section-locations,
  .vrc-searchf-section-datetimes,
  .vrc-searchf-section-categories,
  .vrc-searchf-section-sbmt {
    padding-left: 20px;
    padding-right: 20px;
  }

  .vrclocationsbox {
    padding-left: 20px;
    padding-right: 20px;
  }

  .vrcsfentrytime {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .vrcsfentrytime label {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .vrc-sf-time-container {
    flex-direction: row;
  }

  .vrc-sf-time-container .vrctimesep {
    font-size: 16px;
  }
}
