/* Towy Booking Form Styles */
.towy-booking-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.booking-front-page .towy-booking-form-container {
  background-color: white;
}

.towy-booking-form-wrapper {
  padding: 40px;
}

.towy-booking-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  text-align: center;
}

.towy-booking-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin: 0 0 40px 0;
}

.towy-booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.towy-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.towy-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.towy-form-group label {
  font-weight: 600;
  /* color: #333; */
  font-size: 14px;
  margin-bottom: 0;
  text-transform: uppercase;
  text-align: left;
}

.towy-form-group input,
.towy-form-group select {
  /* padding: 12px 16px; */
  /* border: 2px solid #e1e5e9; */
  /* border-radius: 8px; */
  /* font-size: 16px; */
  transition: all 0.3s ease;
  /* background: #fff; */
  border-color: var(--e-global-color-accent) !important;
}

.towy-form-group input:focus,
.towy-form-group select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.towy-form-group input.error,
.towy-form-group select.error {
  border-color: #dc3232;
  box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1);
}

.towy-error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ffcdd2;
  font-size: 14px;
  font-weight: 500;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.towy-error-message::before {
  content: "⚠️";
  font-size: 16px;
}

.price-placeholder {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 0;
}

.towy-radio-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.towy-radio-group.error {
  border: 2px solid #dc3232;
  border-radius: 8px;
  padding: 8px;
  background: rgba(220, 50, 50, 0.05);
}

.towy-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-weight: 300 !important;
}

label.towy-radio {
}

.towy-radio:hover {
  background-color: #f8f9fa;
}

.towy-radio input[type="radio"] {
  display: none;
}

.towy-radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.towy-radio input[type="radio"]:checked + .towy-radio-custom {
  border-color: #007cba;
  background-color: #007cba;
}

.towy-radio input[type="radio"]:checked + .towy-radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Price Estimate Styles */
.towy-price-estimate {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 24px;
  border: 2px solid #dee2e6;
  margin: 20px 0;
}

.towy-price-estimate h3 {
  margin: 0 0 20px 0;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
}

.towy-price-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.towy-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.towy-price-row:last-child {
  border-bottom: none;
}

.towy-price-row.total {
  font-weight: 700;
  font-size: 18px;
  color: #007cba;
  border-top: 2px solid #007cba;
  padding-top: 16px;
  margin-top: 8px;
}

/* Submit Button */
.towy-submit-btn {
  background: var(--e-global-color-accent);
  /* color: white; */
  /* border: none; */
  /* padding: 16px 32px; */
  /* border-radius: 8px; */
  /* font-size: 18px; */
  /* font-weight: 600; */
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-color: var(--e-global-color-accent);
}

.towy-submit-btn:hover {
  color: var(--e-global-color-accent);
}

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

.towy-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.towy-btn-loading {
  display: none;
}

/* Success Message */
.towy-success-message {
  text-align: center;
  padding: 40px 20px;
}

.towy-success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}

.towy-success-message h3 {
  color: #28a745;
  font-size: 24px;
  margin: 0 0 10px 0;
}

.towy-success-message p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .towy-booking-form-container {
    padding: 10px;
  }

  .towy-booking-form-wrapper {
    padding: 20px;
  }

  .towy-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .towy-radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .towy-booking-title {
    font-size: 24px;
  }

  .towy-price-estimate {
    padding: 16px;
  }
}

/* Google Places Autocomplete Styles */
.pac-container {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e5e9;
  font-family: inherit;
}

.pac-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pac-item:hover {
  background-color: #f8f9fa;
}

.pac-item-selected {
  background-color: #e3f2fd;
}

/* Turnstile styles */
.cf-turnstile {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.cf-turnstile iframe {
  border: none;
  border-radius: 4px;
}

/* Night rate warning */
.night-rate-warning {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.night-rate-warning .warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.night-rate-warning .warning-content {
  flex: 1;
  line-height: 1.4;
}

.night-rate-warning strong {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.night-rate-warning small {
  opacity: 0.9;
  font-size: 12px;
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.towy-btn-loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}
