/* Modal styles - High specificity to override existing styles */
.enquiry-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important; /* Changed from center to flex-start */
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    padding: 20px !important; /* Added padding */
    box-sizing: border-box !important;
    overflow-y: auto !important; /* Enable overlay scrolling */
}

.enquiry-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.enquiry-modal {
    background: white !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 85vh !important; /* Limit height */
    border-radius: 10px !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-50px) !important;
    transition: transform 0.4s ease !important;
    position: relative !important;
    z-index: 100000 !important;
    overflow-y: auto !important; /* Enable modal scrolling */
    box-sizing: border-box !important;
    margin-top: 60px !important; /* Space from top for header */
    margin-bottom: 20px !important; /* Space from bottom */
}

.enquiry-modal-overlay.active .enquiry-modal {
    transform: translateY(0) !important;
}

.enquiry-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 1rem !important;
    position: sticky !important; /* Make header sticky */
    top: 0 !important;
    background: white !important; /* Ensure background */
    z-index: 1 !important;
    padding-top: 0 !important;
}

.enquiry-modal-header h2 {
    color: #2c3e50 !important;
    font-size: 1.8rem !important;
    margin: 0 !important;
    font-weight: 700 !important;
}

/* Rest of your existing modal CSS remains the same */
.enquiry-close-btn {
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    color: #7f8c8d !important;
    transition: color 0.3s !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.enquiry-close-btn:hover {
    color: #e74c3c !important;
}

.enquiry-form-group {
    margin-bottom: 1.5rem !important;
}

.enquiry-form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
}

.enquiry-form-control {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
}

.enquiry-form-control:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
}

textarea.enquiry-form-control {
    min-height: 120px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

.enquiry-submit-btn {
    width: 100% !important;
    background-color: #2ecc71 !important;
    color: white !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}

.enquiry-submit-btn:hover {
    background-color: #27ae60 !important;
}

.enquiry-required {
    color: #e74c3c !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
}


.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

video {
    width: 100%;
    display: block;
}

.custom-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.play-btn:hover {
    transform: scale(1.1);
    background: white;
}

.play-btn i {
    font-size: 30px;
    color: #333;
    margin-left: 5px;
}

.video-container.playing .custom-controls {
    opacity: 0;
    pointer-events: none;
}

.controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .controls-bar {
    opacity: 1;
}

.progress-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 15px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #ff4757;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    color: white;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.volume-slider {
    width: 80px;
    margin-left: 8px;
}

.fullscreen-btn {
    margin-left: 15px;
}

@media (max-width: 600px) {
    .controls-bar {
        flex-wrap: wrap;
        padding: 10px;
    }

    .progress-container {
        order: 1;
        width: 100%;
        margin: 10px 0;
    }

    .time-display {
        order: 2;
        margin-right: auto;
    }

    .volume-control {
        order: 3;
        margin-left: 0;
    }

    .fullscreen-btn {
        order: 4;
        margin-left: auto;
    }
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h5 {
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.service-card {
    display: flex;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.color-indicator {
    width: 12px;
    border-radius: 6px 0 0 6px;
    margin-right: 0;
}

.card-content {
    flex: 1;
    background-color: white;
    border-radius: 0 8px 8px 0;
    padding: 10px;
    box-shadow: var(--shadow);
    border-left: 3px solid;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.card-content ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.card-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Color coding for each service */
.service-1 .color-indicator {
    background-color: #413790;
}

.service-1 .card-content {
    border-left-color: #413790;
}

.service-1 h3 {
    color: #413790;
}

.service-2 .color-indicator {
    background-color: #ea7f23;
}

.service-2 .card-content {
    border-left-color: #ea7f23;
}

.service-2 h3 {
    color: #ea7f23;
}

.service-3 .color-indicator {
    background-color: #0fa2ce;
}

.service-3 .card-content {
    border-left-color: #0fa2ce;
}

.service-3 h3 {
    color: #0fa2ce;
}

.service-4 .color-indicator {
    background-color: #db2c28;
}

.service-4 .card-content {
    border-left-color: #db2c28;
}

.service-4 h3 {
    color: #db2c28;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }

    .color-indicator {
        width: 100%;
        height: 6px;
        border-radius: 6px 6px 0 0;
        margin-bottom: 0;
    }

    .card-content {
        border-radius: 0 0 8px 8px;
        border-left: none;
        border-top: 3px solid;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .service-1 .card-content {
        border-top-color: #413790;
    }

    .service-2 .card-content {
        border-top-color: #ea7f23;
    }

    .service-3 .card-content {
        border-top-color: #0fa2ce;
    }

    .service-4 .card-content {
        border-top-color: #db2c28;
    }
}