:root {
    --primary: #3b82f6;
    --side-tab-bg: linear-gradient(135deg, #e11d48, #be123c);
    --pill-bg: #2d3436;
    --input-bg: #ffffff;
    --radius-pill: 100px;
    --radius-modal: 20px;
}

/* Base - Universal box-sizing fix */
.callme-widget-root,
.callme-widget-root * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* Side Tab */
.side-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    background: var(--side-tab-bg);
    color: white;
    padding: 16px 8px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-tab-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

/* Floating FAB */
.callback-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 99999999999;
}

.callback-btn.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* Callback Pill Bar - FIXED CENTERING AND PADDING */
.callback-bar {
    position: fixed;
    bottom: 30px;
    right: 30px;
    transform: scale(0.9) translateY(40px);
    opacity: 0;
    visibility: hidden;
    background: var(--pill-bg);
    padding: 6px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 440px;
    transform-origin: bottom right;
}

.callback-bar.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.callback-bar .timer-text {
    font-size: 10px;
    font-weight: 700;
    color: white;
    padding: 0 15px;
    white-space: nowrap;
    text-transform: uppercase;
    line-height: 1.2;
}

.callback-bar .phone-wrapper {
    background: white;
    border-radius: var(--radius-pill);
    flex: 1;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
}

.callback-bar .iti {
    width: 100%;
    height: 100%;
}

.callback-bar .iti__flag-container {
    padding-left: 10px;
}

.callback-bar input#callback-phone {
    border: none !important;
    background: transparent !important;
    height: 100% !important;
    width: 100% !important;
    font-size: 16px !important;
    padding: 0 15px 0 85px !important;
    /* Proper offset for dial code */
    color: #000 !important;
    font-weight: 600;
    outline: none !important;
    line-height: normal !important;
}

.callback-bar .btn-order {
    background: #ffffff;
    color: #000;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    height: 38px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.callback-bar .close-bar-btn {
    position: absolute;
    top: -12px;
    right: 15px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Modal - FIXED CENTERING FOR INPUTS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 10000;
}

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

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-modal);
    width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 22px;
    color: #ccc;
}

.minimal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

/* Fix input centering and width */
.minimal-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.minimal-form input,
.minimal-form textarea {
    width: 100% !important;
    display: block !important;
    padding: 14px 20px !important;
    margin-bottom: 15px !important;
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
    background: #fdfdfd !important;
    font-size: 15px !important;
    outline: none !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    /* Strict border-box to prevent overflow */
}

.btn-send {
    width: 100% !important;
    background: #2d3436 !important;
    color: white !important;
    padding: 18px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* MOBILE ADAPTATION - FULL COVERAGE */
@media (max-width: 600px) {
    .callback-bar {
        left: 15px;
        right: 15px;
        bottom: 20px;
        min-width: 0;
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        transform: translateY(100px);
    }

    .callback-bar.active {
        transform: translateY(0);
    }

    .callback-bar .timer-text {
        padding: 0 0 10px 0;
        text-align: center;
    }

    .callback-bar .phone-wrapper,
    .callback-bar .btn-order {
        width: 100%;
        height: 52px !important;
    }

    .callback-bar input#callback-phone {
        line-height: 52px !important;
    }

    .modal-content {
        width: 90%;
        padding: 30px 20px;
        margin: 0 15px;
    }
}