/* ==========================================================================
   YachtFriends — Yacht Booking Widget CSS
   ========================================================================== */

.yf-widget-yf-input-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr; /* Default to 2 columns, controlled dynamically by Elementor */
  gap: 15px !important;
  margin-bottom: 15px !important;
}

@media (max-width: 767px) {
  .yf-widget-yf-input-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.yf-widget-yf-time-row {
  margin-top: 15px;
}

.yf-widget-yf-time-input {
  width: 100%;
  box-sizing: border-box;
}

.yf-widget-yf-boat-booking-section {
  background: #fff;
  padding: 60px;
  border-radius: 40px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.06);
}

.yf-widget-yf-boat-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 991px) {
  .yf-widget-yf-boat-booking-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .yf-widget-yf-boat-booking-section {
    padding: 40px 24px;
  }
}

.yf-widget-yf-small-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #64748b;
  margin-bottom: 25px;
}

.yf-widget-yf-field label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.yf-widget-yf-input,
.yf-widget-yf-date-input,
.yf-widget-yf-textarea {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.yf-widget-yf-input:focus,
.yf-widget-yf-date-input:focus {
  background: #fff;
  border-color: #6c9e9e;
  box-shadow: 0 0 0 4px rgba(26, 105, 133, 0.1);
}

/* Booking Price Summary */
.yf-widget-yf-price-summary {
  background: #6c9e9e;
  border-radius: 24px;
  padding: 30px;
  color: #fff;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(108, 158, 158, 0.15);
}

.yf-widget-yf-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1rem;
}

.yf-widget-yf-price-row span {
  color: rgba(255, 255, 255, 0.9);
}

.yf-widget-yf-price-row.yf-widget-yf-total-row {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 15px;
  padding-top: 15px;
}

.yf-widget-yf-price-row.yf-widget-yf-total-row strong {
  color: #fff;
  font-size: 1.2rem;
}

.yf-widget-yf-grand-total {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.yf-widget-yf-form-actions {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.yf-widget-yf-book-btn {
  width: 100%;
  background: #1a6985;
  border-radius: 16px;
  padding: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 20px 40px rgba(26, 105, 133, 0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
}

.yf-widget-yf-book-btn:hover {
  background: #0d4560;
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(26, 105, 133, 0.3);
}

.yf-widget-yf-book-btn:active {
  transform: translateY(0);
}

/* Extras Groups */
.yf-widget-yf-extras-group {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
}

.yf-widget-yf-extras-group-title {
  font-size: 0.85rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6c9e9e;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* Booking notice and form helper classes */
.yf-widget-yf-check-availability-btn {
  margin-top: 15px;
}

.yf-widget-yf-form-section .yf-widget-yf-field {
  margin-bottom: 15px;
}

.yf-widget-yf-loading {
  display: none;
  justify-content: center;
  margin-top: 10px;
}

/* Backbone Mockup Styles */
.yf-widget-yf-boat-booking-widget {
  padding: 25px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  max-width: 450px;
  margin: 0 auto;
}

.yf-widget-yf-booking-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.yf-widget-yf-step {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yf-widget-yf-step.active {
  font-weight: 700;
  color: #1a6985;
}

.yf-widget-yf-boat-booking-widget .yf-widget-yf-boat-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.yf-widget-yf-booking-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yf-widget-yf-booking-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.5px;
}

.yf-widget-yf-booking-field input,
.yf-widget-yf-booking-field select {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.yf-widget-yf-booking-field input[type="number"] {
  background: #ffffff;
  cursor: text;
}

.yf-widget-yf-booking-btn-next {
  width: 100%;
  padding: 14px;
  background: #1a6985;
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.yf-widget-yf-booking-btn-next:hover {
  background: #0d4560;
}

/* ==========================================================================
   YachtFriends — Elementor Booking Form Modal Overlay CSS
   ========================================================================== */

.yf-widget-yf-calendar-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.yf-widget-yf-calendar-modal.is-active {
  display: flex;
}

.yf-widget-yf-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 69, 96, 0.6);
  backdrop-filter: blur(4px);
}

.yf-widget-yf-modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 750px;
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: yf-widget-modal-fade 0.3s ease-out;
}

@keyframes yf-widget-modal-fade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.yf-widget-yf-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.yf-widget-yf-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1a6985;
}

.yf-widget-yf-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  z-index: 10;
}

.yf-widget-yf-modal-close:hover {
  color: #e11d48;
}

.yf-widget-yf-modal-content .yf-widget-yf-frontend-calendar {
  flex: 1;
  min-height: 400px;
  padding: 15px 24px 24px;
  overflow-y: auto;
}

/* Custom scrollbar for premium feel */
.yf-widget-yf-modal-content .yf-widget-yf-frontend-calendar::-webkit-scrollbar {
  width: 6px;
}
.yf-widget-yf-modal-content
  .yf-widget-yf-frontend-calendar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.yf-widget-yf-modal-content
  .yf-widget-yf-frontend-calendar::-webkit-scrollbar-thumb {
  background: #1a6985;
  border-radius: 10px;
}
.yf-widget-yf-modal-content
  .yf-widget-yf-frontend-calendar::-webkit-scrollbar-thumb:hover {
  background: #0d4560;
}

.yf-widget-yf-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.yf-widget-yf-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  transition: all 0.3s ease;
}

.yf-widget-yf-btn:hover {
  background: #f8fafc;
}

.yf-widget-yf-modal-close-btn {
  border-color: #1a6985;
  color: #1a6985;
}

.yf-widget-yf-modal-close-btn:hover {
  background: #1a6985;
  color: #fff;
}


/* Custom styled inputs for booking date and time selection fields */
.yf-booking-widget input.yf-input,
.yf-booking-widget input.yf-date-input,
.yf-booking-widget input.yf-time-input,
.yf-widget-yf-booking-widget input.yf-widget-yf-input,
.yf-widget-yf-booking-widget input.yf-widget-yf-date-input,
.yf-widget-yf-booking-widget input.yf-widget-yf-time-input {
    height: 44px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    text-align: left !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.yf-booking-widget input.yf-input:hover,
.yf-booking-widget input.yf-date-input:hover,
.yf-booking-widget input.yf-time-input:hover,
.yf-widget-yf-booking-widget input.yf-widget-yf-input:hover,
.yf-widget-yf-booking-widget input.yf-widget-yf-date-input:hover,
.yf-widget-yf-booking-widget input.yf-widget-yf-time-input:hover {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
}

.yf-booking-widget input.yf-input:focus,
.yf-booking-widget input.yf-date-input:focus,
.yf-booking-widget input.yf-time-input:focus,
.yf-widget-yf-booking-widget input.yf-widget-yf-input:focus,
.yf-widget-yf-booking-widget input.yf-widget-yf-date-input:focus,
.yf-widget-yf-booking-widget input.yf-widget-yf-time-input:focus {
    border-color: #0284c7 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
