/**
 * File: assets/css/mann_setu.css
 * Version: 12.0 - Unified Observatory (Clean Build)
 * Philosophy: Systems-Driven Empathy | Zero Redundancy
 */

/* ======================================================
   0. NEURO-DESIGN TOKENS
====================================================== */
:root {
    --bg-deep: #020408;
    --bg-glass: rgba(10, 15, 25, 0.85);
    --bg-card: rgba(255, 255, 255, 0.04);

    --brand-gold: #f4c430;
    --brand-cyan: #00e5ff;
    --brand-danger: #ff3e3e;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);

    --obs-border: 1px solid rgba(255, 255, 255, 0.12);
    --obs-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.2);
    --obs-glow-gold: 0 0 30px rgba(244, 196, 48, 0.25);
    --obs-radius-sharp: 4px;

    --ease-obs: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ======================================================
   1. FOUNDATION
====================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100vw;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    overflow: hidden;
    position: fixed;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

[x-cloak] { display: none !important; }

/* ======================================================
   2. HEADER
====================================================== */

.theatre-header {
    height: 8dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: var(--obs-border);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

.brand-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--brand-gold);
    text-align: center;
}

/* ======================================================
   3. ULZAN BAR
====================================================== */
.ulzan-bar {
    height: 8dvh;
    background: rgba(0, 229, 255, 0.08);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.ulzan-label { color: var(--brand-cyan); margin-right: 8px; font-weight: 600; }
.ulzan-value { font-weight: 800; }

/* ======================================================
   4. STAGE
====================================================== */
.stage {
    height: 76vh;
    padding: 0 10px;
    overflow-y: auto;
    transition: opacity .45s ease, filter .45s ease, transform .45s ease;
}
.stage::-webkit-scrollbar { display: none; }

.stage.stage-clear { opacity: 1; filter: blur(0); transform: scale(1); }
.stage.stage-blur  { opacity: .6; filter: blur(6px); transform: scale(.98); }
.stage.stage-hide  { opacity: 0; filter: blur(14px); transform: scale(.96); }

.phase-content {
    max-width: 440px;
    margin: 0 auto;
    padding: 10px 0;
}
.phase-content.center { text-align: center; }

/* ======================================================
   PAIN CARDS
====================================================== */
.pain-grid { display: grid; gap: 12px; }

.pain-card {
    background: #0d121a;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    transition: .2s ease;
}
.pain-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.15);
}
.pain-card span {
    font-size: 1.05rem;
    font-weight: 800;
    margin-left: 10px;
}
.pain-card.selected-card {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
}
.pain-card.selected-card::before {
    background: #fff;
    width: 6px;
}
.pain-card.selected-card span {
    color: #000;
}
.pain-card.selected-card::after {
    content: "✔";
    position: absolute;
    right: 16px;
    font-weight: 900;
    color: #000;
}

/* ======================================================
   PROBING
====================================================== */
.question-card {
    background: linear-gradient(135deg, rgba(0,229,255,0.05), #000);
    border-bottom: 3px solid var(--brand-cyan);
    padding: 10px;
    margin-bottom: 15px;
}
.option {
    background: #0d121a;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    transition: .2s var(--ease-obs);
}
.option::before {
    content:'';
    position:absolute;
    left:0; top:0; bottom:0;
    width:3px;
    background:rgba(255,255,255,0.1);
}
.option.selected {
    background: rgba(0,229,255,0.15);
    border-color: var(--brand-cyan);
}
.option.selected::before {
    background: var(--brand-cyan);
    width: 6px;
    box-shadow: 0 0 15px var(--brand-cyan);
}

/* ======================================================
   CONSENT CARDS - LEFT ALIGNED COMPACT
====================================================== */
.summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Force left alignment */
    padding: 8px 8px 8px 8px; /* 5px padding on the left */
    background: rgba(255, 62, 62, 0.05);
    border: 1px solid rgba(255, 62, 62, 0.2);
    border-radius: var(--obs-radius-sharp);
    margin: 0 0 8px 5px; /* 5px margin from screen left */
    width: calc(100% - 15px); /* Accounts for left margin + right breathing room */
}

.summary-question {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 2px 0; /* Tight gap to answers */
    text-align: left;
}

.summary-value-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Spacing between multiple answers */
}

.summary-card p.small, 
.summary-card span.small {
    font-size: 0.80rem;
    color: var(--brand-danger);
    margin: 0;
    text-align: left;
    display: inline-block;
}

/* Optional: Adds a comma or separator between multiple answers if they are spans */
.summary-card span.small:not(:last-child)::after {
    content: " • ";
    opacity: 0.5;
    margin-left: 2px;
}

/* ======================================================
   BUTTONS – DYNAMIC 90% SINGLE ROW
====================================================== */

.sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 8dvh;
    padding: 0;
    background: var(--bg-deep);
    border-top: var(--obs-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-actions {
    width: 90%;
    display: flex;
    justify-content: center;
}

.row {
    display: flex;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap; /* NEVER wrap */
}

.btn {
    flex: 1 1 0;
    height: 50px;
    border-radius: var(--obs-radius-sharp);
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: .25s var(--ease-obs);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.full {
    flex: 1;
}

.btn.gold { background: var(--brand-gold); color: #000; }
.btn.danger { background: var(--brand-danger); color:#fff; }
.btn.whatsapp { background:#25D366; color:#000; }
.btn.copy { background: var(--brand-cyan); color:#000; }
.btn.muted { background: rgba(255,255,255,0.12); }
.btn.disabled { opacity:.25; pointer-events:none; }

/* ======================================================
   INPUTS
====================================================== */
.field-group { margin-bottom: 22px; text-align: left; }
.field-label {
    font-size:.95rem;
    font-weight:800;
    color:var(--brand-gold);
    margin-bottom:8px;
    display:block;
}
.text-input {
    width:80%;
    padding:14px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.35);
    border-radius:6px;
    color:#fff;
}
.text-input:focus {
    outline:none;
    border-color:var(--brand-cyan);
    box-shadow:0 0 0 2px rgba(0,229,255,0.35);
}

/* ======================================================
   FOLLOWUP
====================================================== */
.followup-container { max-width:480px; margin:auto; padding:1.5rem; }
.memory-badge {
    font-size:.75rem;
    text-transform:uppercase;
    padding:4px 12px;
    border-radius:50px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
}
.followup-card {
    background: rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:18px;
    padding:1.2rem;
}
.followup-answer { font-weight:600; }

/* ======================================================
   INVENTION
====================================================== */
.wisdom-frame {
    padding: 60px 20px;
    background: radial-gradient(circle, rgba(244,196,48,0.15), transparent 80%);
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.wisdom-line {
    font-size:2rem;
    font-weight:900;
    color:var(--brand-gold);
    text-shadow:0 0 40px rgba(244,196,48,.4);
}
.viral-cta-pulsate {
    margin-top:40px;
    animation:resonance-throb 4s infinite ease-in-out;
}
@keyframes resonance-throb {
    0%,100%{opacity:.8;transform:scale(1);}
    50%{opacity:1;transform:scale(1.02);}
}

/* ======================================================
   FINALE
====================================================== */
.whatsapp-pinnacle-btn {
    background:#25D366;
    color:#fff;
    width:100%;
    height:60px;
    border-radius:8px;
    font-weight:900;
}
.setu-logo {
    font-size:2.8rem;
    color:var(--brand-cyan);
    text-shadow:0 0 20px rgba(0,229,255,.5);
} 


/*======================================================
    6. PROMISE (Refined & Balanced)
===================================================== */

.promise-phase {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Shift content up */
    align-items: center;
    padding-top: clamp(10px, 4vh, 40px); /* Gracious gap from Ulzanbar */
}
.promise-intro {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-gold);
    opacity: 0.7;
    margin-bottom: clamp(15px, 3vh, 25px); /* Controlled gap before box */
}
.promise-box { 
   /* Maximize width on mobile */
    width: 98%; 
    max-width: 450px; 
    /* Responsive Padding: 
       Top/Bottom stays fluid (20px to 40px)
       Sides are tightened to 15px to save space on mobile, growing to 30px on desktop */
    padding: clamp(20px, 4vh, 40px) clamp(15px, 3vw, 30px); 
    border-radius: 20px; /* Slightly tighter radius looks better when box is wide */
    background: linear-gradient(145deg, rgba(0,229,255,0.06), rgba(0,0,0,0)); 
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    margin: 0 auto clamp(20px, 4vh, 35px); /* Centers the box horizontally */
    /* Ensures padding doesn't add to the width */
    box-sizing: border-box; 
}

.promise-core {
    font-size: clamp(1.1rem, 2.6vh, 1.5rem);
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}
.promise-core .highlight {
    color: var(--brand-cyan);
    font-weight: 700;
}
.promise-oath {
    text-align: center;
    width: 100%;
}
.promise-oath p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}
.promise-question { 
    display: block; 
    margin-top: 10px; 
    font-size: clamp(2.2rem, 6vh, 3.5rem); 
    font-weight: 900; 
    color: var(--brand-cyan); 
    text-transform: uppercase; 
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0,229,255,0.5);
    animation: pulseGlow 2s infinite ease-in-out;
}
.feedback-container { width: 100%; background: rgba(255,255,255,0.05); border-radius: 24px; padding: 24px; border: 1px solid rgba(255,255,255,0.1); }
.rating-row { display: flex; justify-content: center; gap: 16px; }
.rating-star { font-size: 2rem; color: rgba(255,255,255,0.2); }
.rating-star.active { color: var(--brand-gold); }

/* Container */
.dosti-container {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header */
.movement-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dosti-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.movement-divider {
    width: 60px;
    height: 3px;
    margin: 0 auto;
    background: var(--brand-gold);
    border-radius: 2px;
    opacity: 0.8;
}

.movement-short {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
}

.highlight-line {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.initiative {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Join Card */
.join-card {
    padding: 28px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input refinement */
.text-input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* Container */
.advocate-container {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Card */
.advocate-card {
    padding: 20px 28px;
    border-radius: 22px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

/* Blocks */
.advocate-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Divider */
.advocate-divider {
    width: 70px;
    height: 2px;
    background: var(--brand-gold);
    margin: 0 auto;
    opacity: 0.7;
    border-radius: 2px;
}

.advocate-divider.subtle {
    opacity: 0.3;
}

/* Typography */
.line {
    font-size: 1.15rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.line.strong {
    font-weight: 700;
    font-size: 1.4rem;
}

.line.large {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.line.highlight {
    color: var(--brand-gold);
    font-weight: 800;
}

.line.emphasis {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* Optional subtle glow */
.line.large {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}
