/*
Theme Name: Best Remortgage Deals UK
Theme URI: https://bestremortgagedeals.uk
Author: BRD
Author URI: https://bestremortgagedeals.uk
Description: A professional one-page theme for Best Remortgage Deals UK - helping homeowners find the best remortgage rates across the UK.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brd-theme
Tags: one-column, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready

Best Remortgage Deals UK Theme - Matching React Design
*/

/* ==========================================================================
   CSS Variables / Design Tokens - MATCHING REACT DESIGN
   ========================================================================== */

:root {
    /* Colors - EXACT MATCH to React index.css */
    --background: 210 20% 98%;
    --foreground: 222 47% 11%;
    
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    
    --primary: 217 71% 25%;
    --primary-foreground: 210 40% 98%;
    
    --secondary: 160 84% 28%;
    --secondary-foreground: 210 40% 98%;
    
    --muted: 210 30% 94%;
    --muted-foreground: 215 16% 47%;
    
    --accent: 43 96% 56%;
    --accent-foreground: 222 47% 11%;
    
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 217 71% 25%;
    
    /* Gradients - EXACT MATCH to React */
    --gradient-hero: linear-gradient(135deg, hsl(217, 71%, 25%) 0%, hsl(217, 71%, 35%) 50%, hsl(160, 84%, 28%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(210, 30%, 98%) 100%);
    --gradient-trust: linear-gradient(135deg, hsl(160, 84%, 28%) 0%, hsl(160, 70%, 35%) 100%);
    
    /* Shadows - EXACT MATCH to React */
    --shadow-sm: 0 1px 2px 0 hsla(222, 47%, 11%, 0.05);
    --shadow-md: 0 4px 6px -1px hsla(222, 47%, 11%, 0.1), 0 2px 4px -2px hsla(222, 47%, 11%, 0.1);
    --shadow-lg: 0 10px 15px -3px hsla(222, 47%, 11%, 0.1), 0 4px 6px -4px hsla(222, 47%, 11%, 0.1);
    --shadow-xl: 0 20px 25px -5px hsla(222, 47%, 11%, 0.1), 0 8px 10px -6px hsla(222, 47%, 11%, 0.1);
    --shadow-glow: 0 0 40px hsla(160, 84%, 28%, 0.2);
    --shadow-card: 0 10px 15px -3px hsla(222, 47%, 11%, 0.1), 0 4px 6px -4px hsla(222, 47%, 11%, 0.1);
    
    /* Typography - EXACT MATCH to React */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 4rem;
    --container-max: 1200px;
    --radius: 0.5rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.75rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(var(--secondary));
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background: hsl(var(--muted) / 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Header - MATCHING React Header.tsx
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsl(var(--primary));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 768px) {
    .header-inner {
        height: 5rem;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary-foreground));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .logo-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

.site-title {
    display: none;
}

@media (min-width: 640px) {
    .site-title {
        display: block;
    }
}

.site-title-main {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    line-height: 1.25;
}

@media (min-width: 768px) {
    .site-title-main {
        font-size: 1rem;
    }
}

.site-title-sub {
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.7);
}

.trust-indicators {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-indicators {
        display: flex;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.9);
}

.trust-item svg {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--accent));
}

.trust-item .stars {
    display: flex;
}

.trust-item .stars svg {
    fill: hsl(var(--accent));
    color: hsl(var(--accent));
}

/* ==========================================================================
   Hero Section - MATCHING React HeroSection.tsx with inline form
   ========================================================================== */

.hero {
    background: var(--gradient-hero);
    color: hsl(var(--primary-foreground));
    padding: 3rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 4rem 0 6rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 5rem 0 7rem;
    }
}

/* Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: hsl(var(--accent));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: hsl(var(--secondary));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    transform: translate(-50%, 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
}

.hero h1 {
    color: hsl(var(--primary-foreground));
    font-size: 1.875rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.hero h1 .location-highlight {
    color: hsl(var(--accent));
}

/* Inline Contact Form in Hero */
.hero-form-wrapper {
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.hero-form {
    background: hsl(var(--primary-foreground));
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .hero-form {
        padding: 2rem;
    }
}

.hero-form .form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.hero-form input::placeholder {
    color: hsl(var(--muted-foreground));
}

.hero-form input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.hero-form .btn-submit {
    width: 100%;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-form .btn-submit:hover {
    opacity: 0.9;
}

.hero-form .btn-submit svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-form .privacy-note {
    text-align: center;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Success State */
.hero-form-success {
    background: hsl(var(--primary-foreground));
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-form-success svg {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--secondary));
}

.hero-form-success span {
    font-weight: 600;
    color: hsl(var(--primary));
}

.hero-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--primary-foreground) / 0.9);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Benefits List */
.hero-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

@media (min-width: 640px) {
    .hero-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary-foreground) / 0.9);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .hero-benefit {
        font-size: 1rem;
    }
}

.hero-benefit svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--accent));
    flex-shrink: 0;
}

.hero-trust-note {
    color: hsl(var(--primary-foreground) / 0.7);
    font-size: 0.875rem;
}

/* Bottom Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Features Section - MATCHING React Features.tsx
   ========================================================================== */

.features-section {
    padding: 4rem 0;
    background: hsl(var(--background));
}

@media (min-width: 768px) {
    .features-section {
        padding: 6rem 0;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.feature-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .feature-card {
        padding: 2rem;
    }
}

.feature-card:hover {
    border-color: hsl(var(--secondary) / 0.3);
    box-shadow: var(--shadow-xl);
}

.feature-card-inner {
    display: flex;
    gap: 1.25rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-trust);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--secondary-foreground));
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.feature-card:hover .feature-content h3 {
    color: hsl(var(--secondary));
}

.feature-content p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Trust Badges Section - MATCHING React TrustBadges.tsx
   ========================================================================== */

.trust-badges-section {
    padding: 3rem 0;
    background: hsl(var(--muted) / 0.5);
}

@media (min-width: 768px) {
    .trust-badges-section {
        padding: 4rem 0;
    }
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .trust-badges-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.trust-badge {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.2s ease;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .trust-badge {
        padding: 1.5rem;
    }
}

.trust-badge:hover {
    box-shadow: var(--shadow-xl);
}

.trust-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.trust-badge-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--primary));
}

.trust-badge h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .trust-badge h4 {
        font-size: 1rem;
    }
}

.trust-badge p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .trust-badge p {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Testimonials Section - MATCHING React Testimonials.tsx
   ========================================================================== */

.testimonials-section {
    padding: 4rem 0;
    background: hsl(var(--background));
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 6rem 0;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.testimonial-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 2rem;
    }
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: hsl(var(--secondary) / 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--accent));
    fill: hsl(var(--accent));
}

.testimonial-quote {
    color: hsl(var(--foreground));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar span {
    font-weight: 600;
    color: hsl(var(--primary));
}

.testimonial-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0;
}

.testimonial-location {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
}

/* Featured Logos */
.featured-logos {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

.featured-logos > p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .logos-grid {
        gap: 3rem;
    }
}

.logos-grid span {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .logos-grid span {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-section {
    background: hsl(var(--primary));
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .contact-section {
        padding: 6rem 0;
    }
}

.contact-section .section-header h2 {
    color: hsl(var(--primary-foreground));
}

.contact-section .section-header p {
    color: hsl(var(--primary-foreground) / 0.9);
}

.contact-form {
    max-width: 32rem;
    margin: 0 auto;
    background: hsl(var(--card));
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.form-group textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-submit {
    width: 100%;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-privacy {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Footer - MATCHING React Footer.tsx
   ========================================================================== */

.site-footer {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary-foreground));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-brand .footer-title-main {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}

.footer-brand .footer-title-sub {
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.7);
}

.footer-brand p {
    color: hsl(var(--primary-foreground) / 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-legal h3 {
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-legal-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: hsl(var(--primary-foreground) / 0.8);
    font-size: 0.875rem;
}

.footer-legal-content svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.6);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: hsl(var(--primary-foreground) / 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: hsl(var(--primary-foreground));
}

/* ==========================================================================
   Animations - MATCHING React animations
   ========================================================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading spinner */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid hsl(var(--secondary-foreground) / 0.3);
    border-top-color: hsl(var(--secondary-foreground));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error state */
.form-error {
    border-color: hsl(var(--destructive)) !important;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: hsl(var(--destructive));
}

.error-message svg {
    width: 0.75rem;
    height: 0.75rem;
}
