﻿/* Booking Section */
.booking-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.modal-body {
    background-color: var(--light-color);
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
        font-weight: 700;
    }

        .section-header h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 3px;
            background: linear-gradient(45deg, var(--primary-color), #0a6c65);
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

    .section-header p {
        color: var(--text-light);
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
    }

/* Enhanced Booking Form */
.booking-form {
    background: linear-gradient(145deg, #b8d4dd, #94b0ba);
    padding: 45px;
    border-radius: 25px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.15), -5px -5px 15px rgba(255, 255, 255, 0.6), inset 2px 2px 8px rgba(0, 0, 0, 0.1), inset -2px -2px 8px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

    .booking-form::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: shimmer 3s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes shimmer {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-control {
    height: 55px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(8, 83, 77, 0.25), inset 2px 2px 5px rgba(0, 0, 0, 0.1);
        background: white;
        transform: translateY(-2px);
    }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

    label.active {
        color: var(--primary-color);
        transform: translateY(-2px);
    }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2308534d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    cursor: pointer;
}

    select.form-control:focus {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2308534d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    }

.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Enhanced Submit Button */
.btn-book {
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(45deg, var(--primary-color), #0a6c65);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(8, 83, 77, 0.3);
    text-transform: uppercase;
    min-width: 250px;
}

    .btn-book:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(8, 83, 77, 0.4);
        background: transparent;
        color: var(--primary-color);
    }

    .btn-book:active {
        transform: translateY(-2px);
    }

/* Button Content States */
.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-book.loading .btn-content {
    opacity: 0;
    transform: translateY(-10px);
}

.btn-book.loading .btn-loading {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.btn-book.loading {
    pointer-events: none;
    cursor: not-allowed;
}

.btn-icon {
    margin-right: 12px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-book:hover .btn-icon {
    transform: translateX(5px) scale(1.1);
}

/* Custom Spinner */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

    .ripple.animate {
        animation: ripple 0.6s linear;
    }

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Success Modal */
#bookingSuccessModal .modal-content {
    border-radius: 25px;
    border: none;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
}

.success-animation {
    position: relative;
}

.success-icon {
    font-size: 90px;
    color: var(--primary-color);
    animation: successPulse 0.8s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.3) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-title {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-text {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-btn {
    padding: 14px 35px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), #0a6c65);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(8, 83, 77, 0.3);
}

    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(8, 83, 77, 0.4);
        background: linear-gradient(45deg, #0a6c65, var(--primary-color));
    }

    .modal-btn i {
        margin-right: 8px;
        transition: transform 0.3s ease;
    }

    .modal-btn:hover i {
        transform: rotate(90deg);
    }

/* Input Focus Effects */
.form-control:focus + label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    animation: underlineExpand 0.3s ease;
}

@keyframes underlineExpand {
    from {
        width: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    to {
        width: 100%;
        left: 0;
        transform: translateX(0);
    }
}

/* Date Input Styling */
input[type="date"] {
    color: var(--text-color);
    position: relative;
}

    input[type="date"]::-webkit-calendar-picker-indicator {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2308534d"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.89-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>') no-repeat;
        background-size: 20px 20px;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

        input[type="date"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
        }

/* Responsive Styles */
@media (max-width: 767.98px) {
    .booking-form {
        padding: 35px;
        border-radius: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn-book {
        padding: 16px 40px;
        font-size: 1.1rem;
        min-width: 220px;
    }

    .form-control {
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .booking-form {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .btn-book {
        width: 100%;
        padding: 15px 30px;
        font-size: 1rem;
        min-width: auto;
    }

    .form-control {
        height: 48px;
        padding: 12px 15px;
    }

    .success-icon {
        font-size: 70px;
    }

    .modal-title {
        font-size: 1.6rem;
    }
}
