/* Contact 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: 500px;
  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: 25px;
  text-align: center;
}

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

.modal-header p {
  opacity: 0.9;
  margin: 0;
}

.modal-body {
  padding: 30px;
}

.customer-options {
  display: grid;
  gap: 20px;
}

.customer-option {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 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(-5px);
  border-color: #0A2463;
  box-shadow: 0 10px 25px rgba(10, 36, 99, 0.15);
}

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

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

.option-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2463 0%, #1E40AF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
}

.option-icon i {
  font-size: 1.8rem;
  color: white;
}

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

.customer-option p {
  color: #4D648D;
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}

.modal-footer {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

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

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

/* Responsive Design */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .customer-option {
    padding: 20px;
  }
  
  .option-icon {
    width: 60px;
    height: 60px;
  }
  
  .option-icon i {
    font-size: 1.5rem;
  }
  
  .customer-option h3 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .modal-content {
    border-radius: 10px;
  }
  
  .customer-options {
    grid-template-columns: 1fr;
  }
  
  .customer-option {
    padding: 15px;
  }
  
  .option-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .option-icon i {
    font-size: 1.3rem;
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}

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

.modal {
  animation: fadeIn 0.3s ease;
}


/* Very Small Devices Fix for Contact 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: 10px;
    line-height: 1.4;
  }
  
  .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: 500px) {
  .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;
  }
}

/* Landscape orientation on small devices */
@media screen and (max-width: 480px) and (orientation: landscape) {
  .modal-content {
    max-height: 60vh;
    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;
  }
}