/* Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: black;
}

/* Button Hover Effects */
button,
a.button {
    transition: all 0.3s ease;
}

button:hover,
a.button:hover {
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Support Widget */
.support-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 60;
}

.support-widget__actions {
    position: absolute;
    bottom: 72px;
    right: 4px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.support-widget__actions--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.support-widget__menu {
    width: 160px;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    padding: 6px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.support-widget__menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-widget__menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.support-widget__menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-2px);
}

.support-widget__menu-item svg {
    width: 16px;
    height: 16px;
}

.support-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 18px;
    border-radius: 9999px;
    background: #111827;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.support-widget__toggle:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.32);
}

.support-widget__toggle--open {
    background: #1d4ed8;
}

.support-widget__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: supportPulse 3s ease-in-out infinite;
}

.support-widget__toggle-icon svg {
    width: 18px;
    height: 18px;
}

.support-widget__toggle-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .support-widget {
        bottom: 16px;
        right: 16px;
    }

    .support-widget__toggle {
        height: 48px;
        padding: 0 14px;
    }

    .support-widget__toggle-text {
        display: none;
    }

    .support-widget__toggle-icon {
        width: 32px;
        height: 32px;
    }

    .support-widget__menu {
        width: 150px;
        padding: 5px;
    }

    .support-widget__menu-item {
        font-size: 11px;
        padding: 9px 10px;
    }
}

@keyframes supportPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}
