/* Booking form */
.booking form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking label {
  font-weight: 600;
  font-size: 0.95rem;
}

.booking label[for]:not([for="phone"]):not([for="message"])::after {
  content: ' *';
  color: #e1306c;
  font-weight: bold;
  margin-left: 3px;
}

body.dark-theme .booking label[for]:not([for="phone"]):not([for="message"])::after {
  color: #ff73b9;
}

.booking input,
.booking select,
.booking textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.15);
  background: #ffffff;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.booking select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

body.dark-theme .booking select:disabled {
  background: #2a2522;
  color: #666;
}

.booking textarea {
  resize: vertical;
  min-height: 100px;
}

.booking input:focus,
.booking select:focus,
.booking textarea:focus {
  border-color: #d4a373;
  box-shadow: 0 0 0 3px rgba(212,163,115,0.15);
  outline: none;
}

.booking select {
  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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

body.dark-theme .booking select {
  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='%23f3ece4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.booking select option:disabled {
  color: #999;
  font-style: italic;
  background: #f5f5f5;
}

body.dark-theme .booking select option:disabled {
  color: #666;
  background: #1a1816;
}

body.dark-theme .booking input,
body.dark-theme .booking select,
body.dark-theme .booking textarea {
  background: #3a322d;
  color: #f3ece4;
  border-color: rgba(255,255,255,0.2);
}

body.dark-theme .booking input:focus,
body.dark-theme .booking select:focus,
body.dark-theme .booking textarea:focus {
  border-color: #cda679;
  box-shadow: 0 0 0 3px rgba(205,166,121,0.2);
}

/* Form validation states */
.invalid {
  border-color: #e1306c !important;
  background-color: #fff0f5 !important;
  animation: shake 0.4s ease-in-out;
}

body.dark-theme .invalid {
  background-color: #3d2730 !important;
  border-color: #ff73b9 !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.valid {
  border-color: #4caf50 !important;
  background-color: #f6fcf4 !important;
  position: relative;
  padding-right: 45px !important;
}

body.dark-theme .valid {
  border-color: #66bb6a !important;
  background-color: #273127 !important;
}

.valid::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #4caf50;
  font-weight: bold;
  font-size: 1.3rem;
  animation: checkmarkPop 0.3s ease-out;
  pointer-events: none;
}

body.dark-theme .valid::after {
  color: #66bb6a;
}

@keyframes checkmarkPop {
  0% { transform: translateY(-50%) scale(0); }
  50% { transform: translateY(-50%) scale(1.2); }
  100% { transform: translateY(-50%) scale(1); }
}

.booking textarea.valid::after {
  top: 20px;
  transform: translateY(0);
}

/* Form messages */
.inline-warning {
  display: block;
  color: #e1306c;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(225, 48, 108, 0.08);
  border-left: 3px solid #e1306c;
  animation: slideDown 0.3s ease-out;
  order: 3;
}

body.dark-theme .inline-warning {
  background: rgba(225, 48, 108, 0.15);
  border-left-color: #ff73b9;
  color: #ff9fcf;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
  }
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
  font-weight: normal;
  font-style: italic;
  order: 2;
}

body.dark-theme .form-hint {
  color: #aaa;
}

/* Submit button */
.btn-submit {
  background: linear-gradient(135deg, #d4a373 0%, #c68c5d 100%);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #c68c5d 0%, #b87a4d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 163, 115, 0.4);
}

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

body.dark-theme .btn-submit {
  background: linear-gradient(135deg, #cda679 0%, #d9b98f 100%);
  color: #2b2623;
}

body.dark-theme .btn-submit:hover {
  background: linear-gradient(135deg, #d9b98f 0%, #e5c9a5 100%);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
  transform: none !important;
}

.btn-submit:disabled::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Form status */
.form-status {
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease-in;
}

.form-status:empty {
  display: none;
  padding: 0;
  margin: 0;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-5px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Success message templates */
.form-success {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  animation: successPulse 0.6s ease-out;
}

.form-success h2 {
  color: #2e7d32;
  font-size: 2rem;
  margin-bottom: 15px;
}

.form-success p {
  font-size: 1.05rem;
  color: #1b5e20;
  margin-bottom: 10px;
  line-height: 1.6;
}

.form-success strong {
  color: #2e7d32;
  font-weight: 600;
}

.form-success .subtitle {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.form-success .details {
  color: #388e3c;
}

.form-success .contact-info {
  margin-top: 20px;
  color: #2e7d32;
}

body.dark-theme .form-success {
  background: linear-gradient(135deg, #2d4a2e 0%, #1f3520 100%);
}

body.dark-theme .form-success h2 {
  color: #81c784;
}

body.dark-theme .form-success p {
  color: #a5d6a7;
}

body.dark-theme .form-success strong {
  color: #81c784;
}

@keyframes successPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Warning/partial success variant */
.form-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.form-warning h2 {
  color: #e65100;
}

.form-warning p {
  color: #bf360c;
}

.form-warning .details {
  color: #d84315;
}

.form-warning .contact-info {
  color: #e65100;
  font-size: 0.95rem;
}

body.dark-theme .form-warning {
  background: linear-gradient(135deg, #4a3d2e 0%, #3d2f20 100%);
}

body.dark-theme .form-warning h2 {
  color: #ffb74d;
}

body.dark-theme .form-warning p {
  color: #ffcc80;
}

/* Contact section */
.contact-socials {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  transition: transform 0.3s, opacity 0.3s;
}

.social-link svg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.social-link:hover svg {
  transform: scale(1.1);
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.social-link.whatsapp svg {
  background-color: #25D366;
  fill: #fff;
  box-shadow: 0 0 6px rgba(37,211,102,0.4);
}

body.dark-theme .social-link.whatsapp svg {
  background-color: #25D366 !important;
}

a[href^="tel:"] {
  color: #e1306c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a[href^="tel:"]:hover {
  color: #ff4fa3;
  text-shadow: 0 0 6px rgba(255, 122, 191, 0.4);
}

body.dark-theme a[href^="tel:"] {
  color: #ff9fcf;
}

body.dark-theme a[href^="tel:"]:hover {
  color: #ffb7d6;
  text-shadow: 0 0 6px rgba(255, 183, 214, 0.3);
}

.map-container {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.dark-theme .map-container {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== DATE PICKER CLICKABILITY FIX ===== */

#dateField {
  position: relative;
  cursor: pointer;
}

#date {
  cursor: pointer;
  padding-right: 10px;
}

/* Make the entire date input clickable by stretching the calendar icon */
#date::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

/* For Firefox */
#date::-moz-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}