/* Premium Popup Booking Form Styling */

.treatment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 37, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.treatment-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.treatment-popup-container {
    background-color: #fff;
    width: 90%;
    max-width: 850px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    max-height: 90vh;
}

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

/* Left side cover image */
.treatment-popup-image {
    width: 45%;
    background-image: url('../images/resources/cta-2-1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.treatment-popup-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(222, 150, 141, 0.3), rgba(39, 37, 42, 0.6));
}

.treatment-popup-image-content {
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
    color: #fff;
    z-index: 2;
}

.treatment-popup-image-content h3 {
    font-family: "Cormorant", serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #fff;
}

.treatment-popup-image-content p {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Right side form */
.treatment-popup-content {
    width: 55%;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: #FCF5F5;
}

/* Close Button */
.treatment-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
}

.treatment-popup-close i {
    font-size: 16px;
    color: #27252A;
    transition: transform 0.3s ease;
}

.treatment-popup-close:hover {
    background-color: #DE968D;
}

.treatment-popup-close:hover i {
    color: #fff;
    transform: rotate(90deg);
}

/* Header Text */
.treatment-popup-header {
    margin-bottom: 25px;
}

.treatment-popup-header h2 {
    font-family: "Cormorant", serif;
    color: #27252A;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.treatment-popup-header p {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #89868D;
    font-size: 14px;
    margin: 0;
}

/* Form Styling */
.treatment-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.treatment-form-group {
    position: relative;
}

.treatment-form-label {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #27252A;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.treatment-form-input, 
.treatment-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(137, 134, 141, 0.2);
    background-color: #fff;
    border-radius: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    color: #27252A;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.treatment-form-input:focus,
.treatment-form-select:focus {
    border-color: #DE968D;
    box-shadow: 0 0 0 3px rgba(222, 150, 141, 0.15);
}

.treatment-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327252A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Submit Button styling */
.treatment-popup-submit {
    background-color: #DE968D;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(222, 150, 141, 0.3);
}

.treatment-popup-submit:hover {
    background-color: #27252A;
    box-shadow: 0 4px 15px rgba(39, 37, 42, 0.2);
    transform: translateY(-2px);
}

.treatment-popup-submit:active {
    transform: translateY(0);
}

/* Validation styling */
.treatment-form-group.has-error .treatment-form-input,
.treatment-form-group.has-error .treatment-form-select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.treatment-error-message {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
    font-family: "Plus Jakarta Sans", sans-serif;
    display: none;
}

.treatment-form-group.has-error .treatment-error-message {
    display: block;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .treatment-popup-container {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .treatment-popup-image {
        display: none;
    }
    
    .treatment-popup-content {
        width: 100%;
        padding: 40px 25px;
    }
}

/* Pricing Menu Section */
.spa-pricing-section {
    padding: 90px 0;
    background-color: #FCF5F5;
}

.pricing-menu-container {
    background-color: #fff;
    border-radius: 20px;
    padding: 60px 50px 30px 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
}

.pricing-column-title {
    font-family: "Cormorant", serif;
    font-size: 26px;
    font-weight: 700;
    color: #27252A;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(222, 150, 141, 0.25);
    position: relative;
}

.pricing-column-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #DE968D;
}

.pricing-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 45px 0;
}

.pricing-menu-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.pricing-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #27252A;
    transition: color 0.3s ease;
}

.pricing-menu-item:hover .pricing-item-name {
    color: #DE968D;
}

.pricing-item-divider {
    flex-grow: 1;
    border-bottom: 1px dashed rgba(137, 134, 141, 0.3);
    margin: 0 15px 6px 15px;
}

.pricing-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #DE968D;
}

@media (max-width: 991px) {
    .pricing-menu-container {
        padding: 40px 25px 10px 25px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 12px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.whatsapp-float-btn i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.6);
}

.whatsapp-float-btn:hover i {
    transform: scale(1.05);
}

/* Pulse animation */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
    opacity: 0;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip style */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #27252A;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #27252A;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .whatsapp-float-btn {
        bottom: 20px;
        right: 12px;
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
    }
    .whatsapp-float-btn i {
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile to prevent layout bugs */
    }
}

