/* Booking Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 36, 99, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  margin: auto;
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 32px;
  font-weight: bold;
  color: #0A2463;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #FFD166;
}

.modal-header {
  background: linear-gradient(135deg, #0A2463 0%, #1E40AF 100%);
  color: white;
  padding: 30px 25px;
  text-align: center;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #FFD166, #FF9E4A);
}

.modal-header h2 {
  font-family: "Lobster", sans-serif;
  margin-bottom: 10px;
  font-size: 2rem;
}

.modal-header p {
  opacity: 0.9;
  margin: 0;
  font-size: 1.1rem;
}

.modal-body {
  padding: 40px 30px;
}

.customer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.customer-option {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 30px 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.customer-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #0A2463, #FFD166);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.customer-option:hover {
  transform: translateY(-8px);
  border-color: #0A2463;
  box-shadow: 0 15px 35px rgba(10, 36, 99, 0.2);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.customer-option:hover::before {
  opacity: 1;
}

.customer-option:active {
  transform: translateY(-4px);
}

.option-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2463 0%, #1E40AF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 8px 20px rgba(10, 36, 99, 0.25);
  transition: all 0.3s ease;
}

.customer-option:hover .option-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #FFD166 0%, #FF9E4A 100%);
}

.option-icon i {
  font-size: 2rem;
  color: white;
  transition: color 0.3s ease;
}

.customer-option:hover .option-icon i {
  color: #0A2463;
}

.customer-option h3 {
  color: #0A2463;
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.customer-option p {
  color: #4D648D;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.option-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.option-features span {
  color: #0A2463;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 36, 99, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.customer-option:hover .option-features span {
  background: rgba(255, 209, 102, 0.2);
  color: #0A2463;
}

.option-features i.fa-check {
  color: #FFD166;
  font-size: 0.8rem;
}

.modal-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.modal-footer p {
  color: #4D648D;
  margin: 0;
  font-size: 1rem;
}

.modal-footer strong {
  color: #0A2463;
  font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    padding: 25px 20px;
  }
  
  .modal-header h2 {
    font-size: 1.7rem;
  }
  
  .modal-body {
    padding: 30px 20px;
  }
  
  .customer-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .customer-option {
    padding: 25px 20px;
  }
  
  .option-icon {
    width: 70px;
    height: 70px;
  }
  
  .option-icon i {
    font-size: 1.8rem;
  }
  
  .customer-option h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .modal-content {
    border-radius: 10px;
  }
  
  .customer-option {
    padding: 20px 15px;
  }
  
  .option-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .option-icon i {
    font-size: 1.6rem;
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .option-features span {
    font-size: 0.85rem;
  }
}

/* Animation for modal background */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  animation: fadeIn 0.3s ease;
}

/* Very Small Devices Fix for Booking Modal */
@media screen and (max-width: 320px) {
  .modal-content {
    width: 98%;
    margin: 10px;
    border-radius: 8px;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 20px 15px;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  
  .modal-header p {
    font-size: 0.9rem;
  }
  
  .modal-body {
    padding: 20px 15px;
  }
  
  .customer-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .customer-option {
    padding: 18px 12px;
  }
  
  .option-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
  }
  
  .option-icon i {
    font-size: 1.4rem;
  }
  
  .customer-option h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .customer-option p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  
  .option-features {
    gap: 6px;
  }
  
  .option-features span {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .modal-footer {
    padding: 15px;
  }
  
  .modal-footer p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .close-modal {
    top: 8px;
    right: 12px;
    font-size: 24px;
  }
}

/* Extra small height devices */
@media screen and (max-height: 900px) {
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-header h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }
  
  .modal-body {
    padding: 20px 15px;
  }
  
  .customer-option {
    padding: 15px;
  }
  
  .option-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
  
  .option-features {
    display: none; /* Hide features on very short screens */
  }
}

/* Landscape orientation on small devices */
@media screen and (max-width: 480px) and (orientation: landscape) {
  .modal-content {
    max-height: 65vh;
    overflow-y: auto;
  }
  
  .customer-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-body {
    padding: 20px 15px;
  }
  
  .customer-option {
    padding: 15px 10px;
  }
  
  .option-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }
  
  .customer-option p {
    font-size: 0.8rem;
  }
  
  .option-features {
    display: none;
  }
}