/* Custom styles for Isolation Landing Page */

/* Animations */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Form steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fade-in 0.3s ease-out;
}

/* Option cards (radio buttons) */
.option-card input:checked + div {
    border-color: #0F766E;
    background-color: #F0FDFA;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.option-card input:checked + div svg,
.option-card input:checked + div span:last-child {
    color: #0F766E;
}

/* Progress bar animation */
#progress-bar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover effects */
button:active:not(:disabled),
a:active {
    transform: scale(0.98);
}

/* Social proof notification */
#social-proof-banner {
    animation: slide-up 0.5s ease-out;
}

/* FAQ accordion */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

/* Focus styles for accessibility */
input:focus,
button:focus,
a:focus {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}

input:focus {
    outline: none;
    border-color: #0F766E;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Loading state for buttons */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    #social-proof-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Selection style */
::selection {
    background-color: #0F766E;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0D6560;
}

/* Input placeholder styling */
input::placeholder {
    color: #9CA3AF;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Trust badge animations */
.trust-badge {
    transition: transform 0.2s ease;
}

.trust-badge:hover {
    transform: scale(1.05);
}

/* Countdown timer styling */
#countdown-timer {
    font-variant-numeric: tabular-nums;
}

/* Error state for form inputs */
input.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

input.error:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success state for form inputs */
input.success {
    border-color: #10B981;
    background-color: #ECFDF5;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1F2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Print styles */
@media print {
    header,
    footer,
    #social-proof-banner,
    .no-print {
        display: none !important;
    }
}
