/* 
   Sara's Checkout Page - Minimalist & Mobile-First
   Centered layout with "Alive" pink mesh background.
*/

:root {
    --bg-base: #fdf2f8; 
    --pink-soft: #fbcfe8;
    --pink-mid: #f9a8d4;
    --pink-accent: #db2777; 
    --lilac-soft: #f5f3ff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --white: #ffffff;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow: hidden; /* No scroll for single page */
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Alive Mesh Background */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3 0%, #f3f4f6 100%);
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: orbRotation 30s infinite linear;
    will-change: transform;
}

.orb-1 { width: 60vw; height: 60vw; background: radial-gradient(circle, #fbcfe8 0%, transparent 70%); top: -20%; left: -10%; }
.orb-2 { width: 70vw; height: 70vw; background: radial-gradient(circle, #ddd6fe 0%, transparent 70%); bottom: -30%; right: -10%; animation-duration: 35s; }
.orb-3 { width: 50vw; height: 50vw; background: radial-gradient(circle, #fae8ff 0%, transparent 70%); top: 40%; left: -10%; animation-duration: 40s; }

@keyframes orbRotation {
    0% { transform: rotate(0deg) translate(0, 0) scale(1.0); }
    50% { transform: rotate(180deg) translate(10%, 10%) scale(1.1); }
    100% { transform: rotate(360deg) translate(0, 0) scale(1.0); }
}

/* Navigation */
nav {
    padding: 2rem 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.nav-cta {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.nav-cta:hover { opacity: 1; }

/* Main Centering */
.page-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5vh;
}

.checkout-section {
    width: 100%;
}

.checkout-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 3.5rem;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(219, 39, 119, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
}

.checkout-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    line-height: 1;
}

.checkout-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.form-group input:focus {
    background: var(--white);
    border-color: var(--pink-accent);
    outline: none;
    box-shadow: 0 0 0 5px rgba(219, 39, 119, 0.1);
}

.stripe-element-placeholder {
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.btn-checkout {
    width: 100%;
    background: var(--pink-accent);
    color: var(--white);
    padding: 1.25rem;
    border-radius: 20px;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 30px rgba(219, 39, 119, 0.25);
}

.btn-checkout:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 40px rgba(219, 39, 119, 0.35);
}

.checkout-footer {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
}

footer {
    padding-bottom: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .checkout-box {
        padding: 2.5rem 1.5rem;
        border-radius: 32px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .checkout-title {
        font-size: 10vw;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .page-center {
        padding-bottom: 10vh;
    }
}
