/* Modal wrapper */
.quiz-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.quiz-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    /* Revert width */
    margin: 20px;
    animation: zoomIn 0.3s;
    background: transparent;
    /* Container is transparent */
    box-shadow: none;
    /* Shadow is on children */
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.quiz-close-btn {
    position: absolute;
    top: -38px;
    right: 0;
    width: 44px;
    height: 44px;
    background: #12C868;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(18, 200, 104, 0.35);
    z-index: 3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quiz-close-btn:hover {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(18, 200, 104, 0.45);
}

/* Special Auto-Heading */
.quiz-special-title {
    text-align: center;
    padding: 20px;
    background: #FFEEE6;
    /* Light orange bg */
    border-radius: 10px 10px 0 0;
    margin-bottom: -10px;
    /* Slight overlap or connect to quiz */
    position: relative;
    z-index: 2;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 2px solid #12C868;
}

.quiz-special-title b {
    color: #12C868;
}

@media (max-width: 768px) {
    .quiz-special-title {
        font-size: 16px;
        padding: 15px;
        padding-right: 76px;
    }
}


/* WIDGET MENU REDESIGN (Animated & Toggleable) */
.widget-menu {
    position: fixed;
    right: 30px;
    /* Base position */
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    align-items: flex-end;

    /* Initially Hidden (waiting for scroll) */
    transform: translateX(150px);
    opacity: 0;
    /* SMOOTHER TRANSITION: 1.2s duration, soft ease-out */
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 1.2s ease;
    pointer-events: none;
}

/* CONTACT WIDGET (Speed Dial) */
.contact-widget-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Main Toggle Button */
.contact-main-btn {
    width: 56px;
    height: 56px;
    background: #12C868;
    /* Green */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(18, 200, 104, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s;
    animation: contact-pulse 2s infinite;
}

.contact-main-btn:hover {
    transform: scale(1.05);
}

.contact-main-btn.active {
    background: #0E9F52;
    /* Darker green active */
    transform: rotate(45deg);
    animation: none;
    /* Stop pulse when open */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-main-btn svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    transition: opacity 0.3s;
}

/* Options List */
.contact-options {
    position: absolute;
    bottom: 85px;
    /* Above main button */
    right: 5px;
    /* Slightly centered relative to button */
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    /* Start hidden/unclickable */
}

.contact-options.active {
    pointer-events: auto;
}

/* Individual Option Item */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-options.active .contact-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay for Opening */
.contact-options.active .contact-item:nth-child(3) {
    transition-delay: 0.05s;
}

/* Bottom */
.contact-options.active .contact-item:nth-child(2) {
    transition-delay: 0.1s;
}

.contact-options.active .contact-item:nth-child(1) {
    transition-delay: 0.15s;
}

/* Top */

/* Labels */
.contact-label {
    background: linear-gradient(90deg, #6baef7 0%, #4a90e2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.contact-options.active .contact-label {
    opacity: 1;
    transform: translateX(0);
}

/* Option Buttons */
.contact-btn-mini {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    transition: transform 0.2s;
}

.contact-btn-mini:hover {
    transform: scale(1.1);
}

.contact-btn-mini svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

/* Specific Colors */
.btn-whatsapp {
    background: #25D366;
}

/* WhatsApp Green */
.btn-callback {
    background: #4a90e2;
}

/* Blue */
.btn-call {
    background: #00BFFF;
}

/* Cyan/Sky Blue */

/* Pulse Animation */
@keyframes contact-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 200, 104, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(18, 200, 104, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(18, 200, 104, 0);
    }
}


/* Phone ringing animation */
@keyframes phone-ring {
    0%, 45%, 100% { transform: rotate(0deg); }
    50%            { transform: rotate(-18deg); }
    57%            { transform: rotate(18deg); }
    64%            { transform: rotate(-14deg); }
    71%            { transform: rotate(14deg); }
    78%            { transform: rotate(-8deg); }
    85%            { transform: rotate(8deg); }
    92%            { transform: rotate(0deg); }
}

.contact-main-btn:not(.active) .icon-phone {
    animation: phone-ring 2.8s ease-in-out infinite;
    transform-origin: center center;
}

/* Final screen engineer card */
.final-engineer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 14px;
    background: #f4faf7;
    border-radius: 10px;
    border: 1px solid rgba(18, 200, 104, 0.15);
}

.final-engineer-photo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-image: url('../img/yuri.webp');
    background-size: cover;
    background-position: center top;
    flex-shrink: 0;
    border: 2px solid #12C868;
}

.final-engineer-name {
    font-weight: 700;
    font-size: 15px;
    color: #222;
}

.final-engineer-role {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    line-height: 1.4;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-widget-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .widget-menu {
        bottom: 100px;
    }
}

/* Visible State (Scrolled Down) */
.widget-menu.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* USER HIDDEN STATE (Manually toggled off) */
/* Container slides away, but keep opacity 1 so button serves as handle */
.widget-menu.visible.user-hidden {
    transform: translateX(150px);
    /* pointer-events: none is inherited from base if strictly applied? 
    No, .visible sets it auto. Need to reset to none for links. */
    pointer-events: none;
}

/* Toggle Button Logic */
.widget-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    /* White close btn */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.4s ease;
    /* Match container speed roughly */
    z-index: 10000;
    pointer-events: auto;
    /* Always clickable */
}

.widget-close-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
    color: #d9534f;
}

/* Icon (Pseudo) */
.widget-close-btn span {
    display: none;
}

/* Hide text X */
.widget-close-btn::after {
    content: '✕';
}

/* WHEN HIDDEN BY USER: Button transforms to "Open" state */
.widget-menu.visible.user-hidden .widget-close-btn {
    /* Move button LEFT to counteract container moving RIGHT */
    /* Container moved 150px right. Button needs to move -150px left to stay in place? */
    /* Actually we want it to stay near edge, maybe slightly peeking. */
    transform: translateX(-160px) rotate(360deg);
    background: linear-gradient(135deg, #12C868 0%, #0daa55 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(18, 200, 104, 0.4);
}

.widget-menu.visible.user-hidden .widget-close-btn:hover {
    transform: translateX(-165px) scale(1.1);
    color: #fff;
}

.widget-menu.visible.user-hidden .widget-close-btn::after {
    content: '✓';
    /* Checkmark/Open */
    font-size: 18px;
}




/* Individual Widget Button */
.widget-link {
    pointer-events: auto;
    display: flex;
    align-items: center;
    /* justify-content center handled by absolute icon */
    width: 62px !important;
    height: 62px !important;
    margin-bottom: 12px !important;
    background: linear-gradient(135deg, #12C868 0%, #0daa55 100%);
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(18, 200, 104, 0.3);
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
}

/* Hover State: Expand */
.widget-link:hover {
    width: 260px !important;
    /* Wider to fit text comfortably */
    box-shadow: 0 15px 35px rgba(18, 200, 104, 0.5);
    transform: translateX(-5px);
}

/* Icon Styling */
.widget-link img {
    width: 34px !important;
    /* Bigger icon */
    height: 34px !important;
    object-fit: contain;
    flex-shrink: 0;

    position: absolute;
    left: 50%;
    /* Center initially */
    transform: translateX(-50%);
    /* Perfect center */

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Make icon bolder and drop shadow */
    filter: drop-shadow(0 0 0.5px #fff) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    margin: 0 !important;
}

/* Hover: Move Icon Left */
.widget-link:hover img {
    left: 25px;
    /* Slide to left padding */
    transform: translateX(0) scale(1.1);
    /* Reset center transform */
}

/* Text Styling */
.widget-link p {
    color: #fff !important;
    font-size: 16px !important;
    /* Slightly bigger text */
    font-weight: 800 !important;
    /* Extra bold */
    line-height: 1.1 !important;
    margin: 0 0 0 70px !important;
    /* Clear the icon area */
    text-align: left !important;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(30px);
    /* Fly in from right */
    transition: all 0.3s ease 0.1s;
    /* Slight delay */
    pointer-events: none;
}

/* Force single line */
.widget-link p br {
    display: none;
}


/* Show text on hover */
.widget-link:hover p {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Add Pulse Animation to the Main CTA (e.g. Calculator) */
.widget-link-1 {
    animation: pulse-green 3s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 200, 104, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(18, 200, 104, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(18, 200, 104, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .widget-menu {
        bottom: 80px;
        right: 15px;
        gap: 10px;
    }

    .widget-link {
        width: 50px;
        height: 50px;
    }

    .widget-link img {
        width: 24px !important;
        height: 24px !important;
        left: 11px;
    }

    /* On mobile, maybe don't expand on hover as touch is different? 
       Or keep it small. Let's keep expand behavior on tap/touch. */
}

.section.quiz {
    background: #fff !important;
    /* Remove roof image */
    background-image: none !important;
    padding-top: 40px;
    padding-bottom: 40px;
}

.custom-quiz-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    position: relative;
    min-height: 500px;
}

/* WIDEN STATIC QUIZ specifically */
#inline-quiz-app {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto;
}

#inline-quiz-app .custom-quiz-container {
    max-width: 100%;
    background: transparent !important;
    /* Remove background */
    box-shadow: none !important;
    /* Clear outline */
    border-radius: 6px;
    /* Make more square */
}

#inline-quiz-app .quiz-layout {
    min-height: 400px;
    /* Reset min-height to not be too tall */
}

#inline-quiz-app .quiz-options-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.quiz-option-card .option-img {
    height: 140px;
    /* Good height for images */
}



/* Ensure the popup quiz container connects visually when title is present */
/* Ensure the popup quiz container connects visually when title is present */
/* #popup-quiz-app.custom-quiz-container removed (empty) */

.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
}


/* Header / Sidebar */
.quiz-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 550px;
    /* Increased height */
}

.quiz-main {
    flex: 1;
    padding: 30px;
    position: relative;
}

#inline-quiz-app .quiz-main {
    background: transparent !important;
}

.quiz-sidebar {
    width: 300px;
    background: #f8f9fa;
    padding: 30px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .quiz-sidebar {
        width: 100%;
        display: none;
    }
}

/* Manager Widget in Sidebar */
.manager-widget {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 20px;
}

.manager-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-color: #ddd;
    background-image: url('../img/yuri.webp');
    background-size: cover;
    background-position: center;
}

.manager-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.manager-role {
    font-size: 12px;
    color: #777;
}

/* Progress Bar */
.quiz-progress-bar-container {
    margin-bottom: 20px;
}

.quiz-progress-text {
    font-size: 14px;
    margin-bottom: 5px;
    color: #12C868;
}

.quiz-progress-track {
    background: #eee;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: #12C868;
    width: 0%;
    transition: width 0.3s ease;
}

/* Question Title */
.quiz-question-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Options Grid */
.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.quiz-option-card {
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quiz-option-card:hover {
    border-color: #12C868;
}

.quiz-option-card.selected {
    border-color: #12C868;
    background-color: #fff5f0;
}

.option-img {
    width: 100%;
    height: 120px;
    background-color: #f5f5f5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.option-text {
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* Simple Radio Style */
.quiz-option-radio {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s;
    font-size: 16px;
}

.quiz-option-radio:hover,
.quiz-option-radio.selected {
    border-color: #12C868;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

.quiz-option-radio.selected .radio-circle {
    border-color: #12C868;
}

.quiz-option-radio.selected .radio-circle::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #12C868;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Slider */
.quiz-slider-container {
    padding: 20px 0;
    text-align: center;
}

.quiz-slider-value {
    font-size: 24px;
    font-weight: bold;
    color: #12C868;
    margin-bottom: 10px;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #12C868;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #ddd;
    border-radius: 2px;
}

/* Navigation Buttons */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.quiz-btn {
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.quiz-btn-prev {
    background: #f0f0f0;
    color: #333;
}

.quiz-btn-prev:hover {
    background: #e0e0e0;
}

.quiz-btn-next {
    background: #12C868;
    color: #fff;
}

.quiz-btn-next:hover {
    background: #d45600;
}

.quiz-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Step */
.quiz-form-group {
    margin-bottom: 15px;
}

.quiz-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.quiz-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 5px;
}

.quiz-file-input {
    margin-top: 10px;
}

/* Discount Badge in Sidebar */
.discount-badge {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.discount-val {
    color: #28a745;
}

/* Steps Animation */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE SPECIFIC WIDGETS --- */

/* Mobile Header Row (Progress + Discount) */
.quiz-header-row {
    display: none;
    /* Hidden by default (desktop uses normal flow or we accept header row) */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

@media (min-width: 769px) {
    .quiz-header-row {
        display: flex;
    }

    /* On desktop, hide the mobile discount part */
    .quiz-discount-mobile {
        display: none !important;
    }
}

.quiz-discount-mobile {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}

.discount-val-mobile {
    margin-left: 5px;
    margin-right: 5px;
}

.up-arrow {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
    margin-left: 2px;
}

/* Mobile Manager Widget */
.mobile-manager-widget {
    display: none;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    position: relative;
}

@media (max-width: 768px) {
    .mobile-manager-widget {
        display: block;
    }

    .quiz-header-row {
        display: flex;
        padding-right: 72px;
    }

    /* Full screen adjustments for mobile modal */
    .quiz-modal-content {
        margin: 0;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .custom-quiz-container {
        border-radius: 0;
        height: 100%;
        min-height: 100vh;
        overflow-y: auto;
    }

    .quiz-close-btn {
        top: 12px;
        right: 12px;
        width: 56px;
        height: 56px;
        font-size: 36px;
        z-index: 101;
    }
}

.mm-content {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mm-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ccc;
    background-image: url('../img/yuri.webp');
    background-size: cover;
    background-position: center;
    margin-right: 15px;
}

.mm-info {
    flex: 1;
}

.mm-name {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.mm-role {
    font-size: 13px;
    color: #777;
}

.mm-text-wrap {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 200px;
    /* Expanded default */
}

.mm-text-wrap.collapsed {
    max-height: 20px;
    /* Partial view (approx 1 line) */
}

.mm-text {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    padding-bottom: 15px;
    /* Space for toggle */
}

/* Toggle Button */
.mm-toggle {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.mm-toggle::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transition: transform 0.3s;
    /* Default: Expanded (Arrow Up to collapse) -> rotated -135deg */
    transform: rotate(-135deg);
    margin-top: 3px;
    margin-left: 0px;
}


.mm-toggle.collapsed::after {
    /* Collapsed (Arrow Down to expand) -> rotated 45deg */
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Limit width of inline quiz only */
#inline-quiz-app.custom-quiz-container {
    max-width: 1200px;
    /* Expanded width for better visibility */
    margin: 0 auto;
    /* Center it */
}

/* Fix Contact Icon Animation */
.contact-main-btn svg {
    position: absolute;
    transition: all 0.3s ease;
}

.contact-main-btn .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.contact-main-btn.active {
    transform: none !important;
    /* Disable button rotation, handle icons inside */
    background: #0E9F52;
}

.contact-main-btn.active .icon-phone {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.contact-main-btn.active .icon-close {
    opacity: 1 !important;
    transform: rotate(0deg) !important;
}

.map-wrapper {
    position: relative;
    width: 100%;
    /* Use fixed height matching iframe to avoid collapse/expansion issues */
    height: 400px;
    overflow: hidden;
}

.map-protect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slight dim to indicate inactive */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.map-protect-overlay::after {
    content: 'Нажмите для активации карты';
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
}

.map-active .map-protect-overlay {
    opacity: 0;
    pointer-events: none;
}

#privacy.modal {
    z-index: 10005 !important;
    /* Higher than quiz-modal (9999) */
    background: rgba(0, 0, 0, 0.5);
    /* Ensure dim background */
}



#privacy .modal-dialog {
    margin: 30px auto;
    max-width: 800px;
    width: 90%;
}

#privacy .modal-content {
    background: #fff;
    /* Ensure white background */
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

#privacy .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    z-index: 10;
}

/* Ensure privacy content text is readable */
#privacy .privacy__content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

#privacy h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* --- NEW STYLES --- */

/* Text-only Option Cards (for Date/Distance) */
.quiz-option-text-card {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
}

.quiz-option-text-card:hover {
    border-color: #12C868;
}

.quiz-option-text-card.selected {
    border-color: #12C868;
    background-color: #fff5f0;
}

.quiz-option-text-card .circle {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.quiz-option-text-card.selected .circle {
    border-color: #12C868;
}

.quiz-option-text-card.selected .circle::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #12C868;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* File Upload Zone */
.quiz-file-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-file-zone:hover {
    border-color: #12C868;
    background: #fff;
}

.quiz-file-zone.has-file {
    border-color: #28a745;
    background: #f0fff4;
}

/* --- NEW STYLES for WOW Effect & Conversion --- */

/* 1. Analyzing/Processing Screen Animation */
.quiz-analyzing-step {
    text-align: center;
    padding: 30px 10px;
    animation: fadeIn 0.5s ease-out;
}

.analyzing-icon {
    font-size: 60px;
    color: #12C868;
    margin-bottom: 20px;
    display: inline-block;
    animation: analyzePulse 2s infinite;
}

@keyframes analyzePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.analyzing-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    min-height: 1.4em;
    color: #333;
}

.analyzing-list {
    text-align: left;
    max-width: 350px;
    margin: 0 auto;
    font-size: 15px;
    color: #555;
}

.analyzing-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.analyzing-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.analyzing-item svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #12C868;
    flex-shrink: 0;
}

/* 2. Premium Form Styling */
.quiz-final-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.quiz-final-left {
    flex: 1;
    min-width: 250px;
}

.quiz-final-right {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Premium Shadow */
    border: 1px solid rgba(18, 200, 104, 0.1);
    position: relative;
    overflow: hidden;
}

/* "Unlock" effect border top */
.quiz-final-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #12C868, #86efac);
}

.quiz-final-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
}

.final-offer-badge {
    display: inline-block;
    background: #FFEEE6;
    color: #EE6100;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(238, 97, 0, 0.2);
}

.final-instruction {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.5;
}

/* Modern Inputs */
.quiz-input-group {
    position: relative;
    margin-bottom: 20px;
}

.quiz-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s;
    pointer-events: none;
}

.quiz-modern-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    /* Space for icon */
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #fdfdfd;
    transition: all 0.3s ease;
    outline: none;
}

.quiz-modern-input:focus {
    border-color: #12C868;
    background: #fff;
    box-shadow: 0 4px 12px rgba(18, 200, 104, 0.1);
}

.quiz-modern-input:focus+.quiz-input-icon {
    color: #12C868;
}

/* Placeholder styling */
.quiz-modern-input::placeholder {
    color: #ccc;
    font-weight: 400;
}

/* Premium Button with Shine & Pulse */
.quiz-btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #12C868, #0fa857);
    color: white;
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(18, 200, 104, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.quiz-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 200, 104, 0.5);
}

.quiz-btn-submit:active {
    transform: translateY(0);
}

/* Shine Effect */
.quiz-btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    20% {
        transform: translateX(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Pulse Animation for Button Text or Icon */
.btn-pulse-icon {
    margin-left: 8px;
    display: inline-block;
    animation: moveRight 1.5s infinite;
}

@keyframes moveRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

/* Privacy & Footer */
.form-footer-text {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.form-footer-text input {
    margin-right: 8px;
    margin-top: 2px;
}

.form-footer-text a {
    color: #888;
    text-decoration: underline;
}

/* Manager "Typing" or Online Badge */
.manager-online-badge {
    display: inline-flex;
    align-items: center;
    background: #e6ffef;
    color: #12C868;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3f5d5;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #12C868;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Mobile Adjustments for Form */
@media (max-width: 768px) {
    .quiz-final-layout {
        flex-direction: column;
        gap: 20px;
    }

    .quiz-final-right {
        padding: 20px;
    }

    .quiz-final-title {
        font-size: 22px;
    }
}



.quiz-file-text {
    color: #777;
    margin-bottom: 5px;
    display: block;
}

.quiz-file-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Final Form Step - Full Width Layout */
.quiz-final-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.quiz-final-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-final-right {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.quiz-final-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-final-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    text-align: left;
}

.quiz-final-discount {
    display: inline-block;
    background: #d9534f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    width: fit-content;
    margin-top: auto;
}

.final-form-header {
    margin-bottom: 20px;
}

.final-form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.final-form-subtitle {
    font-size: 14px;
    color: #777;
}

/* Hide Sidebar class */
.quiz-layout.no-sidebar .quiz-sidebar {
    display: none;
}

.quiz-layout.no-sidebar .quiz-main {
    width: 100%;
    flex: none;
}

.quiz-layout.no-sidebar {
    display: block;
    /* Remove flex default for easier full width */
}

/* Custom Checkbox in Final Form */
.custom-check-label {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    margin-top: 15px;
}

.custom-check-label input {
    margin-top: 2px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .quiz-final-layout {
        flex-direction: column;
    }

    .quiz-final-title {
        font-size: 20px;
    }
}

/* --- Feedback Modal & Glass Form --- */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal.open {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.glass-form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 40px rgba(18, 200, 104, 0.1);
    width: 100%;
    max-width: 380px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-modal.open .glass-form-container {
    transform: scale(1);
}

.glass-form-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
    transition: 0.3s;
}

.glass-form-close:hover {
    color: #12C868;
    transform: rotate(90deg) scale(1.1);
}

.glass-form-title {
    color: #2c3e50;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.3;
}

.glass-form-title span {
    color: #12C868;
    text-shadow: none;
}

/* Modal specific badge adjustments */
.feedback-modal .manager-online-badge {
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
    padding: 8px;
    border-radius: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.glass-input {
    width: 100%;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #edeff1;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: #fff;
    border-color: #12C868;
    box-shadow: 0 8px 20px rgba(18, 200, 104, 0.15);
}

.glass-input::placeholder {
    color: transparent;
}

.input-label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    font-weight: 500;
}

.glass-input:focus~.input-label,
.glass-input:not(:placeholder-shown)~.input-label {
    top: -10px;
    left: 12px;
    font-size: 13px;
    color: #12C868;
    background: #fff;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.glass-btn {
    width: 100%;
    padding: 18px;
    background: #12C868;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(18, 200, 104, 0.3);
}

.glass-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(18, 200, 104, 0.5);
}

.glass-btn:active {
    transform: translateY(1px);
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px;
}

.form-success-icon {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: block;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* --- MODERN CARDS (WOW EFFECT) --- */
.mt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.mt-card {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.mt-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.mt-thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.mt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mt-card:hover .mt-thumb img {
    transform: scale(1.1);
}

.mt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.mt-card:hover .mt-overlay {
    opacity: 1;
}

.mt-content {
    padding: 25px;
    position: relative;
}

.mt-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background: #FFC107;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.mt-badge.premium {
    background: #333;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mt-badge.eco {
    background: #4CAF50;
    color: #fff;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.mt-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 15px;
    line-height: 1.3;
    color: #2c3e50;
}

.mt-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.mt-price .val {
    color: #e74c3c;
}

.mt-price .unit {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

.mt-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #12C868;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 200, 104, 0.3);
}

.mt-card:hover .mt-btn {
    background: #0fa857;
    color: #fff;
    box-shadow: 0 8px 20px rgba(18, 200, 104, 0.5);
    transform: translateY(-2px);
}


/* --- LAYOUT FIXES & MOBILE SLIDER --- */

/* DESKTOP: Force 3 Columns */
@media (min-width: 992px) {
    .mt-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px;
        overflow: visible !important;
    }

    .mt-card {
        min-width: auto !important;
        width: auto !important;
        margin: 0 !important;
    }

    .mobile-swipe-hint {
        display: none !important;
    }
}

/* MOBILE: Horizontal Slider with Snap */
@media (max-width: 991px) {
    .mt-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        
        gap: 15px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        justify-content: flex-start !important;
        align-items: stretch;
    }

    .mt-grid::-webkit-scrollbar {
        display: none;
    }

    .mt-card {
        flex: 0 0 calc(100% - 40px) !important;
        min-width: calc(100% - 40px) !important;
        
        margin: 0 !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Swipe Hint */
    .mobile-swipe-hint {
        text-align: center;
        padding: 10px;
        color: #777;
        font-size: 14px;
        pointer-events: none;
        margin-top: -10px;
        margin-bottom: 20px;
    }

    .hand-anim {
        width: 40px;
        height: 40px;
        margin: 0 auto 5px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v0'%3E%3C/path%3E%3Cpath d='M14 10V4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v2'%3E%3C/path%3E%3Cpath d='M10 10.5V6a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v5'%3E%3C/path%3E%3Cpath d='M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
        background-size: contain;
        animation: swipeX 2s infinite ease-in-out;
        opacity: 0.6;
    }
}

@keyframes swipeX {
    0% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(-10px);
    }
}

@keyframes fadeOutHint {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}


/* Centering fix */
.mt-grid {
    margin: 0 auto !important;
    max-width: 1200px;
    justify-content: center;
}

/* Enhanced Mobile Swipe Hint */
@media (max-width: 991px) {
    .mobile-swipe-hint {
        position: relative;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 20px;
        padding: 5px 15px;
        display: inline-block;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
    }

    .hand-anim {
        font-size: 24px;
        animation: swipeHand 2s infinite ease-in-out;
    }
}

@keyframes swipeHand {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

/* --- AVATAR & TIMER IN FEEDBACK MODAL --- */
.modal-has-avatar {
    padding-top: 50px;
    /* Make space for avatar */
}

.modal-person-card {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 8px 25px 8px 8px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 5;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-avatar-wrapper {
    position: absolute;
    left: -10px;
    top: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.modal-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    /* Since the image is a full body crop, we focus on top */
    border-radius: 50%;
    transform: scale(1.4) translateY(4px);
    /* Zoom in on face */
}

.modal-st-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #12C868;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(18, 200, 104, 0.6);
    animation: blink 2s infinite;
}

.modal-person-info {
    padding-left: 55px;
    /* offset for the avatar */
    text-align: left;
}

.modal-p-name {
    font-size: 15px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.2;
}

.modal-p-pos {
    font-size: 11px;
    font-weight: 500;
    color: #888;
}

/* Timer styles */
.neon-timer {
    display: inline-block;
    font-size: 32px;
    font-weight: 900;
    color: #12C868;
    background: #e6ffef;
    padding: 5px 15px;
    border-radius: 12px;
    margin-top: 10px;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    /* prevents jumping width */
    box-shadow: inset 0 2px 5px rgba(18, 200, 104, 0.1), 0 5px 15px rgba(18, 200, 104, 0.2);
    border: 1px solid rgba(18, 200, 104, 0.3);
    transition: all 0.3s;
}

.neon-timer.urgent {
    color: #e74c3c;
    background: #fdedec;
    border-color: rgba(231, 76, 60, 0.3);
    box-shadow: inset 0 2px 5px rgba(231, 76, 60, 0.1), 0 5px 15px rgba(231, 76, 60, 0.2);
    animation: pulseUrgent 1s infinite alternate;
}

@keyframes pulseUrgent {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 5px 25px rgba(231, 76, 60, 0.4);
    }
}

@media (max-width: 480px) {
    .modal-person-card {
        top: -30px;
        transform: translateX(-50%) scale(0.9);
    }
}
