/* Transfer Search Form Styles */

/* Modern Search Form Styles */
.modern-search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.modern-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.modern-form-field-half {
  flex: 1;
  min-width: 0;
}

.modern-form-field-half .modern-form-field {
  width: 100%;
}

.modern-form-label {
  font-size: 14px;
  font-weight: 700;
  color: #626262;
  margin: 0;
}

.modern-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #000000;
  z-index: 1;
  pointer-events: none;
}

.modern-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: #f5f5f5;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  font-size: 14px;
  color: #181A1F;
  transition: all 0.3s ease;
}

.modern-input-compact {
  padding: 10px 12px;
  font-size: 13px;
}

.modern-time-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 15px;
  background: #f5f5f5;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.time-display {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.time-display i {
  font-size: 18px;
  color: #000000;
  flex-shrink: 0;
}

.modern-time-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #181A1F;
  padding: 0;
  outline: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.modern-time-input::placeholder {
  color: #999;
  font-weight: 400;
}

.time-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-time {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e4e4e4;
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-time:hover {
  background: #000000;
  color: #ffffff;
}

.btn-time i {
  font-size: 18px;
}

.modern-time-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 4px 0;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  font-size: 13px;
  display: none;
}

.modern-time-select-dropdown option {
  padding: 8px 12px;
  cursor: pointer;
  display: block;
}

.modern-time-select-dropdown option:hover {
  background: #f5f5f5;
}

.modern-input:focus {
  outline: none;
  border-color: #000000;
  background: #ffffff;
}

/* Google Places Autocomplete - Remove default focus border */
gmp-place-autocomplete input:focus {
  outline: none !important;
  border: 1px solid #e4e4e4 !important;
  box-shadow: none !important;
}

gmp-place-autocomplete input {
  border: 1px solid #e4e4e4 !important;
}

/* Remove Google Places Autocomplete focus ring border */
.focus-ring {
  border: none !important;
  display: none !important;
}

gmp-place-autocomplete .focus-ring {
  border: none !important;
  display: none !important;
}

.modern-input::placeholder {
  color: #999;
}

.modern-form-field {
  gap: 6px;
}

.modern-form-label {
  font-size: 13px;
}

/* ADD RETURN Button */
.btn-add-return {
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #181A1F;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-add-return:hover {
  background: #f8f9fa;
  border-color: #000000;
}

/* Remove Return Button */
.btn-remove-return {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  padding: 0;
}

.btn-remove-return:hover {
  background: #E95440;
}

.btn-remove-return i {
  font-size: 14px;
}

/* Passengers Control */
.modern-passenger-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 15px;
  background: #f5f5f5;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
}

.passenger-display {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #181A1F;
  text-align: center;
}

.passenger-buttons {
  display: flex;
  gap: 8px;
}

.btn-passenger {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e4e4e4;
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-passenger:hover {
  background: #000000;
  color: #ffffff;
}

.btn-passenger i {
  font-size: 18px;
}

.btn-passenger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* See Prices Button */
.btn-see-prices {
  width: 100%;
  padding: 16px 20px;
  background: #000000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-see-prices:hover {
  background: #E95440;
  color: #ffffff;
}

.btn-see-prices i {
  font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
