/* === Base Styles === */
.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
@media (min-width: 640px) { .logo { width: 40px; height: 40px; } }
@media (min-width: 768px) { .logo { width: 48px; height: 48px; } }
@media (min-width: 1024px) { .logo { width: 56px; height: 56px; } }

/* === Video Container (16:9) === */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* === Mobile Menu Animation === */
.mobile-menu-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.mobile-menu-visible {
    max-height: 400px;
    transition: max-height 0.3s ease-in;
}

/* === Accordion === */
.accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.accordion-wrapper.open {
    grid-template-rows: 1fr;
}
.accordion-inner {
    overflow: hidden;
}

/* === Fade-in on Scroll === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Toast === */
#toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* === Smooth Hover Effects === */
.shadow-lg {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.shadow-lg:hover {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
}

/* === Button Loading State === */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Attempts Calculator Widget === */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4), 0 0 0 0px rgba(220, 38, 38, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px -5px rgba(220, 38, 38, 0.6), 0 0 0 10px rgba(220, 38, 38, 0); }
}
.calc-trigger.fixed {
    animation: pulse-slow 3s infinite;
}
.calc-trigger.fixed:hover {
    animation: none;
    transform: scale(1.1);
}

/* Modal Open Transition override helper */
#calculatorModal:not(.hidden) {
    display: flex;
}

/* Scrollbar styles for timeline */
#calcTimeline::-webkit-scrollbar {
    width: 5px;
}
#calcTimeline::-webkit-scrollbar-track {
    background: transparent;
}
#calcTimeline::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
#calcTimeline::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Timeline Vertical Connector Line */
#calcTimeline {
    position: relative;
    padding-left: 28px;
}
#calcTimeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 24px;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 0;
}


