/* Quote Calculator Modal Styles */

.calculator-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.calculator-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.calculator-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.calculator-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  z-index: 2;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  padding: 2rem;
  margin-top: 1rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.calculator-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #DC143C 0%, #b91c1c 100%);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
  z-index: 10;
}

.calculator-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.calculator-modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.calculator-modal .calculator-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.calculator-modal .calculator-header h2 {
  color: #003087;
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.calculator-modal .calculator-header p {
  color: #6B7280;
  font-size: 0.95rem;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .calculator-modal.active {
    padding: 0;
    align-items: stretch;
  }
  
  .calculator-modal-content {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin-top: 0;
    padding: 1.25rem;
    padding-top: 3.5rem;
  }
  
  .calculator-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .calculator-modal .calculator-header {
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
  }
  
  .calculator-modal .calculator-header h2 {
    font-size: 1.4rem;
  }
  
  .calculator-modal .calculator-header p {
    font-size: 0.85rem;
  }
}

/* Smooth scrolling for modal */
.calculator-modal-content::-webkit-scrollbar {
  width: 8px;
}

.calculator-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.calculator-modal-content::-webkit-scrollbar-thumb {
  background: #003087;
  border-radius: 10px;
}

.calculator-modal-content::-webkit-scrollbar-thumb:hover {
  background: #002060;
}




