/* Kultakiertue Tour Finder Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.kultakiertue-reservations {
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
}

.search-section {
  margin-bottom: 2rem;
  background-color: rgb(253 189 18);
  border-radius: .75rem;
  padding: 1.0rem;
}

.search-section h3 {
  margin-bottom: 1rem;
  color: #000;
  font-weight: 700;
  font-size: 1.35rem;
  text-align: center;
}

.search-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content:center;
  margin-bottom: 1rem;
}

.search-form input {
  padding: 0.5rem 1.0rem;
  appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-radius: .25rem;
  border-width: 1px;
  font-size: 1rem;
  line-height: 1.5rem;
}

.search-button {
  background-color: #000;
  border: 0;
  border-radius: .25rem;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 0.5rem 1.0rem;
}

.search-form input:focus {
  outline: none;
  border-color: #0073aa;
}

.search-results-heading {
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
}

.error-message {
  color: #dc3545;
  font-size: 1rem;
  padding: 0.5rem;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.reservation-form-success {
  color: #155724;
  font-size: 1rem;
  padding: 0.5rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.time-slot-search-results h4 {
  margin-bottom: 1.5rem;
  color: #333;
}

.time-slot {
  background-color: #F6F6F2;
  border-radius: 8px;
  padding: 1.0rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.time-slot .time-slot-datetime {
  display: flex;
  font-size: 1.0rem;
}

.time-slot-date {
  margin-bottom: 0.5rem;
  margin-right: 1.0rem;
}

.time-slot-time {
  margin-bottom: 0.5rem;
}

.stop-location {
  color: #000;
  font-weight: 700;
  font-size: 1.15rem;
}

.stop-address {
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.stop-postal-code {
  display: none;
}

.time-slot-booking-btn {
  border: 0;
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  background: #16a34a;
  color: white;
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-align: center;
}

.reservation-form-details {
  background-color: #FDBD12;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}

/* Desktop styles */
@media (min-width: 1270px) {
  .time-slot-content {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;  
  }

  .stop-postal-code {
    display: flex;
    flex: 0 0 10%;
    font-size: 1.0rem;
    font-weight: 600;
    color: #111827;
  }

  .stop-details {
    flex: 0 0 30%;
  }

  .time-slot-datetime {
    flex: 0 0 30%;
  }

  .time-slot-date {
    margin-bottom: 0;
  } 

  .time-slot-time {
    margin-bottom: 0;
  }

  .time-slot-address {
    margin-bottom: 0;
  }
}

/* Reservation Form Styles */
.reservation-form-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  position: relative;
}

.reservation-form-close:hover {
  color: #000;
}

.reservation-form-details {
  margin-bottom: 2rem;
}

.reservation-form-details h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.reservation-time-slot-location {
  font-weight: 600;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.reservation-time-slot-address {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 400;
}

.reservation-time-slot-datetime {
  font-size: 1rem;
  color: #111827;
}

.reservation-time-slot-datetime strong {
  font-weight: 600;
  margin-right: 0.5rem;
}

.reservation-cancel {
  background: none;
  border: none;
  color: #111827;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  text-decoration: underline;
  font-family: inherit;
  margin-top: 0.5rem;
}

.reservation-cancel:hover {
  color: #000;
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reservation-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reservation-form-field label {
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.reservation-form-field input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reservation-form-field input:focus {
  outline: none;
}

.reservation-form-field input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.reservation-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.reservation-form-cancel,
.reservation-form-submit {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.reservation-form-cancel {
  background-color: #f3f4f6;
  color: #374151;
}

.reservation-form-cancel:hover:not(:disabled) {
  background-color: #e5e7eb;
}

.reservation-form-submit {
  background-color: #16a34a;
  color: white;
}

.reservation-form-submit:hover:not(:disabled) {
  background-color: #15803d;
}

.reservation-form-cancel:disabled,
.reservation-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
