/* Form Styles */

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1a1a;
}

.form-group label span {
  color: #dc3545;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control::placeholder {
  color: #999999;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-control.error {
  border-color: #dc3545;
}

.form-control.success {
  border-color: #28a745;
}

.form-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.form-control.error + .form-error {
  display: block;
}

.form-success {
  color: #28a745;
  font-size: 14px;
  margin-top: 4px;
}

/* Checkbox and Radio */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
}

.form-check label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 400;
}

/* Input Group */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.input-group-append {
  display: flex;
}

.input-group-append .btn {
  border-radius: 0 8px 8px 0;
}

/* Form Row */
.form-row {
  display: flex;
  gap: 16px;
  margin: 0 -8px;
}

.form-row .form-group {
  flex: 1;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  margin-bottom: 24px;
  color: #1a1a1a;
}

/* Booking Form */
.booking-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.booking-form h3 {
  margin-bottom: 24px;
  color: #1a1a1a;
}

/* Search Form */
.search-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-form input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
}

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

.search-form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff6b35;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background: #e55a2b;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
}

.newsletter-form button {
  padding: 14px 32px;
  background: #ff6b35;
  color: #ffffff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #e55a2b;
}

/* File Upload */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.file-upload-label:hover {
  border-color: #ff6b35;
  background: #fff8f3;
}

.file-upload-label i {
  font-size: 48px;
  color: #ff6b35;
  margin-bottom: 12px;
}

/* Range Slider */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
  border: none;
}

/* Form Validation States */
.was-validated .form-control:valid {
  border-color: #28a745;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

.valid-feedback {
  display: none;
  color: #28a745;
  font-size: 14px;
  margin-top: 4px;
}

.was-validated .form-control:valid ~ .valid-feedback {
  display: block;
}
