/* POPUPS & MODAL BASE */
.modal,
.popup-overlay,
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show,
.popup-overlay.show,
.success-overlay.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* SERVICE MODAL: zoom + fade */
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* BOOKING POPUP: slide-in from bottom + fade */
.popup-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    /* start below */
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-overlay.show .popup-box {
    transform: translateY(0);
    opacity: 1;
}

/* SUCCESS POPUP: slide-in from top + fade */
.success-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    /* start above */
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.success-overlay.show .success-box {
    transform: translateY(0);
    opacity: 1;
}

/* Close buttons */
.modal-close,
.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Headings */
h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #0b2540;
}

/* Form styling */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0b2540;
    box-shadow: 0 0 5px rgba(11, 37, 64, 0.3);
}

/* Buttons */
.modal-btn,
.popup-btn,
button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: #0b2540;
    color: #fff;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-btn:hover,
.popup-btn:hover,
button:hover {
    background: #09203a;
}

/* Success icon */
.success-icon {
    font-size: 40px;
    color: green;
    margin-bottom: 1rem;
}

/* Scroll lock */
body.popup-open {
    overflow: hidden;
}
/* Button with loading spinner */

.popup-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s ease;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading .btn-text {
    opacity: 0;
}

.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}