/* Scroll to Top Button Styling */
#scrollToTopBtn {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Fixed/sticky position */
    bottom: 20px;
    /* Place the button at the bottom of the page */
    left: 20px;
    /* Place the button 30px from the left */
    z-index: 9999;
    /* Make sure it does not overlap */
    border: none;
    /* Remove borders */
    outline: none;
    /* Remove outline */
    background-color: #007bff;
    /* Blue background */
    color: white;
    /* White text/icon */
    cursor: pointer;
    /* Add a mouse pointer on hover */
    padding: 0;
    /* Clear padding */
    width: 45px;
    /* Fixed width */
    height: 45px;
    /* Fixed height */
    border-radius: 12px;
    /* Rounded corners as seen in the image */
    font-size: 18px;
    /* Icon size */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Soft shadow for depth */
    transition: all 0.3s ease;
    /* Smooth transitions */
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
    transform: translateY(-5px);
    /* Lift effect */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#scrollToTopBtn.visible {
    display: flex;
    /* Show when visible class is added */
}

/* Custom Modal Styles for Contact Form */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 12000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal-content {
    background: white;
    padding: 15px 35px;
    /* Reduced vertical padding */
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-content {
    transform: translateY(0);
}

.close-custom-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-custom-modal:hover {
    color: #333;
}

.modal-header-custom {
    text-align: center;
    margin-bottom: 10px;
    /* Reduced from 30px */
}

.modal-header-custom i {
    font-size: 1.8rem;
    /* Reduced from 3rem */
    color: #007bff;
    margin-bottom: 10px;
    /* Reduced from 15px */
}

.modal-header-custom h2 {
    margin: 0;
    color: #333;
    font-size: 1.6rem;
    /* Reduced from 1.8rem */
    font-weight: 700;
}

.modal-header-custom p {
    color: #666;
    margin-top: 5px;
    font-size: 0.9rem;
}

.custom-form-group {
    margin-bottom: 10px;
    /* Reduced from 20px */
}

.custom-form-group label {
    display: block;
    margin-bottom: 5px;
    /* Reduced from 8px */
    font-weight: 600;
    color: #444;
    font-size: 0.85rem;
    /* Reduced from 0.9rem */
}

.custom-form-group label i {
    margin-right: 5px;
    color: #007bff;
    width: 16px;
    text-align: center;
}

.custom-form-group input,
.custom-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.custom-form-group input:focus,
.custom-form-group textarea:focus {
    border-color: #007bff;
    background: #f8fbff;
}

.custom-submit-btn {
    width: 100%;
    padding: 8px;
    /* Reduced padding */
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    /* Reduced from 1.1rem */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.custom-submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.custom-submit-btn:active {
    transform: translateY(0);
}

#contactLink:hover {
    color: #003a7d !important;
    text-decoration: underline !important;
}

/* Payment Modal Specific Styles */
.payment-modal {
    max-width: 500px !important;
}

.payment-options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 15px;
}

.payment-option:hover {
    border-color: #007bff;
    background: #f8fbff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.payment-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.payment-info p {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #777;
}

.payment-option i.fa-chevron-right {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.payment-option:hover i.fa-chevron-right {
    color: #007bff;
}