/**
 * Bootstrap Contact Form Styles - EscapesByU
 * ==============================
 * 
 * Customized for EscapesByU brand colors and design
 */

/* Contact Form Container */
.php-email-form {
  width: 100%;
  background: #fff;
}

.php-email-form .form-group {
  padding-bottom: 8px;
}

/* Status Messages */
.php-email-form .error-message {
  display: none;
  color: #fff;
  background: #dc2626;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 10px;
}

.php-email-form .error-message.d-block {
  display: block;
}

.php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #16a34a;
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 10px;
}

.php-email-form .sent-message.d-block {
  display: block;
}

.php-email-form .sent-message br + br {
  margin-top: 25px;
}

.php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.php-email-form .loading.d-block {
  display: block;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #BFA47F;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

/* Form Inputs - Override to match existing Tailwind styles */
.php-email-form input,
.php-email-form textarea,
.php-email-form select {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid #d1d5db;
  transition: all 0.3s ease;
}

.php-email-form input:focus,
.php-email-form textarea:focus,
.php-email-form select:focus {
  outline: 2px solid #BFA47F;
  outline-offset: 2px;
  border-color: #BFA47F;
  box-shadow: 0 0 0 0.2rem rgba(191, 164, 127, 0.25);
}

.php-email-form input {
  height: auto;
}

.php-email-form textarea {
  padding: 10px 12px;
  resize: vertical;
}

/* Submit Button - Match existing brand button styles */
.php-email-form button[type="submit"] {
  background: #BFA47F;
  border: 0;
  padding: 1rem 2rem;
  color: #fff;
  transition: 0.4s;
  border-radius: 0;
  font-weight: 300;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.php-email-form button[type="submit"]:hover {
  background: #1A1A1A;
  transform: none;
  box-shadow: none;
}

.php-email-form button[type="submit"]:focus {
  outline: 3px solid #BFA47F;
  outline-offset: 3px;
}

/* Loading Animation */
@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Visually Hidden Labels (for accessibility) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .php-email-form input,
  .php-email-form textarea,
  .php-email-form select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .php-email-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
  }
}

