/* H2Uppp Landing Page - Custom Styles */

/* Prevent auto-scroll on page load */
html.loading {
    overflow: hidden !important;
    height: 100vh;
    scroll-behavior: auto !important;
}

body.loading {
    overflow: hidden !important;
    height: 100vh;
}

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

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

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

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

/* Custom checkbox styles */
input[type="checkbox"]:checked {
    background-color: #0066FF;
    border-color: #0066FF;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #0066FF;
    outline-offset: 2px;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* Loading state for submit button */
button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

button.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: white;
    animation: spin 0.6s linear infinite;
}

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

/* Video styling */
video {
    display: block;
    width: 100%;
    height: auto;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove transitions for motion-sensitive users */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    /* Adjust hero text on mobile */
    #hero h1 {
        font-size: 2rem;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    /* Stack timeline vertically on mobile */
    #process .md\:w-1\/2 {
        width: 100%;
        text-align: left !important;
    }
}

/* Custom scrollbar (optional, for webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #0066FF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052CC;
}

/* Error and success message styles */
.error-message {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #10B981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Input error state */
input.error,
textarea.error {
    border-color: #DC2626;
    background-color: #FEF2F2;
}

input.error:focus,
textarea.error:focus {
    ring-color: #DC2626;
}

/* Honeypot field - completely hidden */
#website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}
