/* css/forms.css */
/* Complete styles for contact forms, booking inquiry forms, job application forms */
/* Used on contact.html, job.html, and any booking modals/popups across the site */

:root {
  --form-bg: #111111;
  --input-bg: #1a1a1a;
  --input-border: #333333;
  --placeholder-color: #777777;
  --error-color: #ff4444;
  --success-color: #00c853;
}

/* ==================== GENERAL FORM STYLES ==================== */
.form-section {
  padding: 5rem 0;
  background: #0a0a0a;
  text-align: center;
}

.form-header {
  margin-bottom: 4rem;
}

.form-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.form-header p {
  color: #bbbbbb;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Form Container */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-form,
.booking-form,
.job-form {
  background: var(--form-bg);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  text-align: left;
}

/* Form Groups */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* Inputs, Textarea, Select */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder-color);
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: #222;
  box-shadow: 0 0 0 4px rgba(196, 30, 62, 0.2);
}

/* Textarea Specific */
textarea {
  min-height: 160px;
  resize: vertical;
}

/* Checkbox & Radio */
.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
  transform: scale(1.3);
}

.checkbox-group label,
.radio-group label {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 0;
}

/* File Upload (for job.html - resume upload) */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: block;
  padding: 1.2rem 1.5rem;
  background: var(--input-bg);
  border: 2px dashed var(--input-border);
  border-radius: 12px;
  text-align: center;
  color: var(--placeholder-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-label:hover {
  border-color: var(--primary);
  background: #222;
  color: #fff;
}

.file-upload-label i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--primary);
}

/* Submit Button */
.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  padding: 1.3rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(196, 30, 62, 0.4);
  min-width: 220px;
}

.btn-submit:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(196, 30, 62, 0.6);
}

.btn-submit:disabled {
  background: #444;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.btn-submit.loading {
  position: relative;
  color: transparent;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 50%;
  left: 50%;
  margin-left: -12px;
  margin-top: -12px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success & Error Messages */
.form-message {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: center;
  display: none;
}

.success-message {
  background: rgba(0, 200, 83, 0.2);
  border: 2px solid var(--success-color);
  color: var(--success-color);
}

.error-message {
  background: rgba(255, 68, 68, 0.2);
  border: 2px solid var(--error-color);
  color: var(--error-color);
}

/* Field Error State */
.field-error {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.2);
}

.error-text {
  color: var(--error-color);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: block;
}

/* Privacy Note */
.privacy-note {
  margin-top: 2rem;
  color: #888888;
  font-size: 0.95rem;
  text-align: center;
}

.privacy-note a {
  color: var(--primary);
  text-decoration: underline;
}

/* ==================== SPECIFIC FORM TWEAKS ==================== */
/* Booking Form (shorter, often in modal or on gallery/rates pages) */
.booking-form {
  padding: 2.5rem 2rem;
}

/* Job Application Form */
.job-form .form-group.half {
  width: 48%;
  display: inline-block;
}

@media (max-width: 768px) {
  .job-form .form-group.half {
    width: 100%;
  }
}

/* ==================== RESPONSIVE ENHANCEMENTS (supplement responsive.css) ==================== */
@media (max-width: 768px) {
  .contact-form,
  .booking-form,
  .job-form {
    padding: 2.5rem 1.5rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }

  .btn-submit {
    width: 100%;
    padding: 1.3rem;
  }
}