/* Custom Modals Styling */

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

/* Modal Overlay with glassmorphism */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 20px;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Container */
.custom-modal-container {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    padding: 40px;
    position: relative;
    z-index: 100000;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.custom-modal-overlay.active .custom-modal-container {
    transform: translateY(0) scale(1);
}

.modal-booking-container {
    max-width: 740px;
}

/* Close Button */
.custom-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-modal-close:hover {
    background: #ee212b;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Header Content */
.modal-service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-service-icon-box {
    background-color: #ee212b;
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.modal-service-icon-box i {
    font-size: 32px;
    color: #ffffff;
}

.modal-service-tagline {
    color: #ee212b;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.modal-service-title {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0;
}

/* Modal Body Content */
.modal-service-body p {
    color: #cccccc;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 24px;
}

.modal-service-body h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: 'Roboto', sans-serif;
}

.modal-service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 32px;
}

.modal-service-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #cccccc;
    font-size: 15px;
    line-height: 1.5;
}

.modal-service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #ee212b;
    font-weight: 700;
    font-size: 16px;
}

.modal-service-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-service-footer .fw-btn-fill {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-service-footer .fw-btn-fill:hover {
    background-color: #111111;
    color: #ffffff;
}

/* Booking Form */
.booking-form-header {
    margin-bottom: 30px;
}

.booking-form-header p {
    color: #cccccc;
    font-size: 15px;
    line-height: 24px;
    margin-top: 10px;
    margin-bottom: 0;
}

.booking-form-body .form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.booking-form-body .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.booking-form-body .form-group-row .form-field {
    margin-bottom: 0;
}

.booking-form-body label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.booking-form-body input,
.booking-form-body select,
.booking-form-body textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.booking-form-body input::placeholder,
.booking-form-body textarea::placeholder {
    color: #666666;
}

.booking-form-body input:focus,
.booking-form-body select:focus,
.booking-form-body textarea:focus {
    outline: none;
    border-color: #ee212b;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(238, 33, 43, 0.15);
}

.booking-form-body select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

.booking-form-body select:invalid {
    color: #666666;
}

.booking-form-body button[type="submit"] {
    background-color: #ee212b;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-form-body button[type="submit"]:hover {
    background-color: #d1131c;
}

/* Success State Styles */
.booking-success-state {
    text-align: center;
    padding: 30px 10px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #28a745;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: fillCheckmark 0.4s ease-in-out 0.4s forwards, scaleCheckmark 0.3s ease-in-out 0.9s both;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #ffffff;
    animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeCheckmark {
    100% { stroke-dashoffset: 0; }
}

@keyframes fillCheckmark {
    100% { box-shadow: inset 0px 0px 0px 40px #28a745; }
}

@keyframes scaleCheckmark {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.booking-success-state h2 {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.booking-success-state p {
    color: #cccccc;
    font-size: 16px;
    line-height: 24px;
    max-width: 480px;
    margin: 0 auto;
}

.booking-success-state button {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-success-state button:hover {
    background-color: #218838;
}

/* Helpers */
.d-none {
    display: none !important;
}

.w-100 {
    width: 100% !important;
}

.mt-3 {
    margin-top: 16px !important;
}

.mt-4 {
    margin-top: 24px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-modal-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .custom-modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    
    .modal-service-title {
        font-size: 28px;
    }
    
    .booking-form-body .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    
    .booking-form-body .form-group-row .form-field {
        margin-bottom: 20px;
    }
}
