/* Support Floating Menu - Design */

.support-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Main Toggle Button */
.support-main-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-40);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

.support-main-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.support-main-btn .icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.support-main-btn .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-90deg);
    opacity: 0;
    transition: all 0.3s ease;
}

.support-main-btn .main-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Active State for Toggle */
.support-float-wrapper.active .support-main-btn {
    background: var(--secondary);
    box-shadow: var(--shadow-md);
}

.support-float-wrapper.active .main-icon {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.support-float-wrapper.active .close-icon {
    transform: translate(-50%, -50%) scale(1) rotate(0);
    opacity: 1;
}

/* Menu Items */
.support-menu-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.support-float-wrapper.active .support-menu-items {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.support-item {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

.support-item:hover {
    transform: scale(1.1);
}

.support-item .support-label {
    position: absolute;
    right: 60px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-family: var(--font-ui);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.support-item:hover .support-label {
    opacity: 1;
    transform: translateX(0);
}

.support-item.whatsapp {
    background: #25D366;
}

.support-item.call {
    background: var(--accent);
}

.support-item.enquire {
    background: var(--warm);
}

/* Enquiry Modal Centered */
.support-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: supportFadeIn 0.3s ease;
}

@keyframes supportFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.support-modal {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    animation: supportPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes supportPopIn {
    to {
        transform: scale(1);
    }
}

.support-modal-header {
    background: var(--bg-light);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.support-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

.support-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color var(--transition);
}

.support-modal-close:hover {
    color: var(--primary);
}

.support-modal-form {
    padding: 25px;
}

.support-form-group {
    margin-bottom: 15px;
}

.support-form-group input,
.support-form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all var(--transition);
    box-sizing: border-box;
}

.support-form-group input:focus,
.support-form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
}

.support-form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 10px;
}

.support-form-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px var(--primary-40);
}

.support-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.support-form-alert {
    display: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 15px;
    text-align: center;
}

.support-alert-success {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.support-alert-error {
    background: var(--bg-pink);
    color: var(--primary-dark);
}

/* Mobile Adjustments — bumped above bottom_nav (60px + safe-area) */
@media screen and (max-width: 899px) {
    .support-float-wrapper {
        right: 20px;
        bottom: calc(60px + 20px);
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .support-float-wrapper {
            bottom: calc(60px + 20px + env(safe-area-inset-bottom));
        }
    }

    .support-main-btn {
        width: 54px;
        height: 54px;
    }

    .support-item {
        width: 44px;
        height: 44px;
    }

    .support-item .support-label {
        display: none;
    }
}