:root {
    /* Cosmic Palette */
    --bg-deep: #050214;
    --bg-cosmic: #0f0c29;
    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #6366f1, #a855f7);

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #050214 70%);
    z-index: -2;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: star-move 200s linear infinite;
}

@keyframes star-move {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-2000px);
    }
}

/* Typography Overrides */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.gold-text {
    color: var(--accent-gold);
    text-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-cta {
    text-decoration: none;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: var(--font-heading);
}

.nav-cta:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 100px;
    position: relative;
}

.aura-badge {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid var(--accent-gold-glow);
    display: inline-block;
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(90deg, #d4af37, #f7d56e);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

/* Pulse Animation */
.glow-pulse {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Trust Cards */
.trust-cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: default;
}

.trust-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.08);
    /* Glow */
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.2;
}

.card-text strong {
    color: var(--text-primary);
}

.card-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(5, 2, 20, 0.9);
    border: 1px solid var(--accent-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-gold);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
    z-index: 2000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip for WhatsApp */
.floating-whatsapp::before {
    content: 'Chat with Astrologer';
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.floating-whatsapp:hover::before {
    opacity: 1;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle-spirit {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* About Section */
.about-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.about-card h3 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tags-container {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.gold-border {
    border: 1px solid var(--accent-gold);
    background: rgba(251, 191, 36, 0.05);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border-bottom: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    /* Brighter on hover */
    border-bottom-color: var(--accent-gold);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(#f7d56e, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Step Wizard Form */
.form-container {
    max-width: 800px;
}

.glass-form {
    position: relative;
    overflow: hidden;
    /* For mandala containment */
    padding: 3rem;
}

/* Mandala Background */
.mandala-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23f5c542' stroke-width='0.5' fill='none' d='M50 0 L100 50 L50 100 L0 50 Z M50 10 L90 50 L50 90 L10 50 Z' /%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23f5c542' stroke-width='0.2' fill='none'/%3E%3C/svg%3E");
    background-size: cover;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    animation: rotateMandala 60s linear infinite;
}

@keyframes rotateMandala {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Wizard Progress */
.wizard-progress {
    margin-bottom: 3rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #fff5d1);
    width: 25%;
    transition: width 0.6s ease;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-gold);
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-dot {
    width: 40px;
    height: 40px;
    background: var(--bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: all 0.4s;
    color: var(--text-secondary);
    position: relative;
}

.step-dot.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
    transform: scale(1.1);
    background: var(--bg-deep);
}

.step-dot.completed {
    background: linear-gradient(135deg, #f5c542, #ffdf8a);
    color: #000;
    border-color: #f5c542;
    transform: scale(1);
}

/* Floating Labels */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group.floating {
    display: flex;
    flex-direction: column-reverse;
    /* Key for Input + Label structure */
}

.input-group.floating input,
.input-group.floating select,
.input-group.floating textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1rem 0.6rem;
    /* Top padding space for label inside if wanted, or just consistent height */
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}

.input-group.floating label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Logic: Check placeholder-shown (we use a space as placeholder) */
.input-group.floating input:focus+label,
.input-group.floating input:not(:placeholder-shown)+label,
.input-group.floating select:focus+label,
.input-group.floating select:valid+label,
/* Assuming option value="" is disabled */
.input-group.floating textarea:focus+label,
.input-group.floating textarea:not(:placeholder-shown)+label {
    transform: translateY(-22px) scale(0.85);
    /* Move up */
    transform-origin: left top;
    color: var(--accent-gold);
    background: var(--bg-deep);
    /* Mask line behind input if needed, or transparent */
    padding: 0 0.5rem;
}

.input-group.floating input:focus,
.input-group.floating select:focus,
.input-group.floating textarea:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

/* Custom Select Styling */
select {
    cursor: pointer;
    appearance: none;
    /* Remove native arrow to style if needed, but keeping simple for now or adding custom arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23fbbf24%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.8rem auto;
    padding-right: 2.5rem !important;
    /* Make room for arrow */
}

select option {
    background: #141433;
    /* Dark Navy */
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

select:focus {
    box-shadow: 0 0 14px rgba(245, 197, 66, 0.6);
    outline: none;
    border-color: var(--accent-gold);
}

/* Validation Message */
.validation-msg {
    display: block;
    font-size: 0.8rem;
    color: #fca5a5;
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
    margin-top: 0.2rem;
}

.input-group.error input,
.input-group.error select,
.input-group.error textarea {
    border-color: #f5c542;
    /* Soft Gold for 'error' instead of red */
    box-shadow: 0 0 8px rgba(245, 197, 66, 0.3);
}

.input-group.error .validation-msg {
    height: 1.2rem;
    color: #f5c542;
}


/* Wizard Steps */
.form-step {
    display: none;
    /* Animation handled by JS class toggle + CSS */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

/* Next Button Energy Orb */
.next-btn {
    animation: float-btn 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes float-btn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.next-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.next-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.final-submit {
    position: relative;
    overflow: hidden;
    animation: pulse-gold 2s infinite;
    /* Gentle pulse */
}

.final-submit i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.final-submit:hover i {
    transform: translateX(5px) scale(1.2);
    /* Slide/Pop effect */
}


/* Privacy Note */
.privacy-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.privacy-note p {
    margin: 0;
}

.privacy-note .small {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.2);
}

/* Buttons inside form */
.button-row {
    margin-top: 2rem;
    display: flex;
    position: relative;
    z-index: 1;
}

.button-row.right {
    justify-content: flex-end;
}

.button-row.space-between {
    justify-content: space-between;
}

.consultation-info {
    text-align: center;
    margin: 1rem 0;
    color: var(--text-secondary);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Bank Details Styling */
.bank-card {
    border: 1px solid var(--accent-gold);
    background: linear-gradient(135deg, rgba(20, 15, 50, 0.8) 0%, rgba(5, 2, 20, 0.9) 100%);
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
}

.bank-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.bank-header h3 {
    font-size: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.copy-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-row {
    color: var(--accent-gold);
    font-weight: bold;
    border-bottom: none;
    margin-top: 1rem;
}

.upi-link {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-gold);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.upi-link:hover {
    color: #fff;
    border-bottom-style: solid;
}

/* QR Code Section */
.qr-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.scan-label {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.qr-box {
    padding: 1rem;
    background: #fff;
    /* QR needs white bg to be scannable */
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    /* Gold glow */
}

.qr-box img {
    display: block;
    width: 150px;
    height: 150px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: var(--accent-gold);
}


/* Footer */
footer {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background: #02010a;
    margin-top: 6rem;
    position: relative;
}

.footer-glow-line {
    width: 100%;
    height: 1px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 100%);
    opacity: 0.5;
    margin-bottom: 2rem;
    position: absolute;
    top: 0;
    left: 0;
}

.dev-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.glow-link {
    color: var(--accent-gold);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.glow-link:hover {
    text-shadow: 0 0 10px var(--accent-gold);
    text-decoration: underline;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Space between buttons */
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.phone-btn {
    background: #3b82f6;
    /* Blue for phone */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: bounce-gentle 3s infinite;
}

@keyframes bounce-gentle {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 1rem;
        background: rgba(5, 2, 20, 0.95);
        top: 0;
        width: 100%;
        border-radius: 0;
    }

    .input-group.floating label {
        font-size: 0.9rem;
    }

    .glass-form {
        padding: 1.5rem;
    }
}