/* =============================================
   ZORELIN — Soul Connection Checkout
   Rose/Violet theme — matches Soul Connection branding
   ============================================= */

:root {
    --bg: #08081a;
    --rose: #e84a7a;
    --rose-light: #f472b6;
    --rose-deep: #c2185b;
    --rose-dim: rgba(232,74,122,0.12);
    --violet: #8b5cf6;
    --violet-light: #a78bfa;
    --text: #ccc8de;
    --text-muted: #7e7a96;
    --text-bright: #f4f0ff;
    --border: rgba(255,255,255,0.06);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sc-body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.noise {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.sc-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    background: rgba(255,255,255,0.04); z-index: 100;
}
.sc-progress-fill {
    height: 100%; border-radius: 0 2px 2px 0;
    background: linear-gradient(90deg, var(--rose), var(--violet));
    transition: width 0.5s var(--ease);
}

/* =============================================
   CHECKOUT CONTAINER
   ============================================= */
.sc-checkout {
    max-width: 520px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
    position: relative;
    z-index: 1;
}

/* =============================================
   STEPS
   ============================================= */
.sc-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}
.sc-step-header {
    margin-bottom: 32px;
    position: relative;
}
.sc-step-num {
    font-size: 12px;
    color: var(--rose);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.sc-step-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 6vw, 32px);
    color: var(--text-bright);
    font-weight: 600;
    line-height: 1.2;
}
.sc-step-sub {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted, #7a7a8c);
    margin-top: 12px;
    max-width: 480px;
}

/* =============================================
   FORM FIELDS
   ============================================= */
.sc-field {
    margin-bottom: 24px;
}
.sc-field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.sc-field input[type="text"],
.sc-field input[type="email"],
.sc-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}
.sc-field input:focus,
.sc-field textarea:focus {
    border-color: rgba(232,74,122,0.3);
    box-shadow: 0 0 0 3px rgba(232,74,122,0.08);
}
.sc-field textarea {
    resize: none;
    min-height: 100px;
    line-height: 1.6;
}
.sc-field input::placeholder,
.sc-field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Date selectors */
.sc-date-row {
    display: flex;
    gap: 8px;
}
.sc-date-row select {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 12px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s;
}
.sc-date-row select:focus {
    border-color: rgba(232,74,122,0.3);
}

/* Gender buttons */
.sc-gender-row {
    display: flex;
    gap: 12px;
}
.sc-gender-btn {
    flex: 1;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.sc-gender-btn:hover {
    border-color: rgba(232,74,122,0.2);
    color: var(--text);
}
.sc-gender-btn.active {
    border-color: var(--rose);
    color: var(--rose-light);
    background: rgba(232,74,122,0.06);
    box-shadow: 0 0 20px rgba(232,74,122,0.08);
}

/* =============================================
   BUTTONS
   ============================================= */
.sc-next-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    margin-top: 8px;
}
.sc-next-btn:hover:not(:disabled) {
    box-shadow: 0 6px 28px rgba(232,74,122,0.35);
    transform: translateY(-1px);
}
.sc-next-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sc-back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.sc-back-btn:hover {
    color: var(--text);
}

/* =============================================
   STRIPE ELEMENT
   ============================================= */
.sc-stripe-element {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
    transition: border-color 0.3s;
}
.sc-stripe-element:focus-within {
    border-color: rgba(232,74,122,0.3);
}

/* =============================================
   CONSENTS
   ============================================= */
.sc-consents {
    margin-bottom: 24px;
}
.sc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}
.sc-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--rose);
    flex-shrink: 0;
}
.sc-consent span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =============================================
   PRICE + PAY BUTTON
   ============================================= */
.sc-price-display {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 700;
    color: var(--rose-light);
    margin-bottom: 16px;
}
.sc-pay-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    color: #fff;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.sc-pay-btn:hover:not(:disabled) {
    box-shadow: 0 8px 36px rgba(232,74,122,0.4);
    transform: translateY(-2px);
}
.sc-pay-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
/* Shimmer */
.sc-pay-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: payShimmer 4s ease-in-out infinite;
}
@keyframes payShimmer { 0%{left:-100%} 40%{left:150%} 100%{left:150%} }

/* =============================================
   ERROR MESSAGE
   ============================================= */
.sc-error {
    text-align: center;
    font-size: 13px;
    color: #ff6b6b;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,107,107,0.06);
    border-radius: 10px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
    .sc-checkout { padding: 60px 16px 40px; }
    .sc-date-row select { padding: 12px 8px; font-size: 15px; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .sc-step { transition: none !important; }
    .sc-progress-fill { transition: none; }
    .sc-pay-btn::after { animation: none; }
}
