/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #8b0000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal h2 {
    color: #8b0000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.insurance-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.insurance-option {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.insurance-option:hover {
    transform: translateY(-5px);
    border-color: #8b0000;
    box-shadow: 0 8px 16px rgba(139, 0, 0, 0.1);
}

.insurance-option i {
    font-size: 40px;
    color: #8b0000;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.insurance-option:hover i {
    transform: scale(1.2);
}

.insurance-option span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .insurance-options {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .insurance-option {
        padding: 15px;
    }
    
    .insurance-option i {
        font-size: 30px;
    }
}

/* Animation for modal opening */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special styling for quote button */
.quote-button {
    position: relative;
    font-weight: 600;
}

.quote-button:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8b0000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quote-button:hover:after {
    transform: scaleX(1);
}
