/* HydrateJax Public Styles */
/* Colors: Navy #1e3061, Cyan #42c3d6, Steel #326698, Black #000 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#hydratejax-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e3061;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
#hydratejax-app *, #hydratejax-app *::before, #hydratejax-app *::after {
    box-sizing: border-box;
}

/* Screens */
.hj-screen { display: none; animation: hjFadeIn 0.4s ease; }
.hj-screen-active { display: block; }
@keyframes hjFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── HERO / LANDING ── */
.hj-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0 48px;
}
.hj-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #42c3d6;
    margin-bottom: 16px;
}
.hj-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
    color: #1e3061;
    letter-spacing: -0.02em;
}
.hj-hero-sub {
    font-size: 20px;
    font-weight: 500;
    color: #42c3d6;
    margin: 0 0 16px;
}
.hj-hero-body {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px;
    line-height: 1.7;
}
.hj-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hj-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}
.hj-hero-placeholder {
    width: 320px;
    height: 280px;
    background: linear-gradient(135deg, #1e3061 0%, #326698 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Button */
.hj-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #42c3d6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}
.hj-btn-cta:hover {
    background: #38b0c2 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(66,195,214,0.3);
}
.hj-btn-cta:focus,
.hj-btn-cta:active {
    background: #38b0c2 !important;
    color: #fff !important;
    outline: none;
}
.hj-btn-full { width: 100%; justify-content: center; }

/* Social Proof */
.hj-social-proof {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid #e2e8f0;
}
.hj-social-proof h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #1e3061;
}
.hj-proof-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.hj-proof-stat {
    padding: 20px 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-width: 160px;
}
.hj-proof-num {
    font-size: 32px;
    font-weight: 700;
    color: #42c3d6;
}
.hj-proof-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* ── QUIZ ── */
.hj-quiz-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}
.hj-quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 16px;
}
.hj-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1e3061;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}
.hj-back-btn:hover { background: #f1f5f9; }
.hj-quiz-brand {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #1e3061;
}
.hj-quiz-step {
    font-size: 14px;
    color: #64748b;
}

/* Progress */
.hj-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 48px;
    overflow: hidden;
}
.hj-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #42c3d6, #38b0c2);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Quiz Body */
.hj-quiz-body {
    text-align: center;
    padding-bottom: 60px;
}
.hj-quiz-question {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #1e3061;
}
.hj-quiz-desc {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Symptom List */
.hj-symptom-list {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: #f8fafc;
    padding: 20px 28px;
    border-radius: 10px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}
.hj-symptom-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #334155;
}

/* Answer Buttons — ultra-specific to override any theme */
.hj-answer-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 420px;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn,
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:link,
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:visited {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 36px 24px;
    background-color: #ffffff !important;
    border: 2px solid rgba(30,48,97,0.12) !important;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    color: #1e3061 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn span {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn svg {
    stroke: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:hover,
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:focus {
    border-color: #42c3d6 !important;
    background-color: #f0fdfe !important;
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66,195,214,0.15);
    outline: none;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:hover span,
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:focus span {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:hover svg,
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:focus svg {
    stroke: #42c3d6 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:active {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
    background-color: #e6f7fa !important;
    transform: translateY(0);
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn:active span {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn.selected {
    border-color: #42c3d6 !important;
    background-color: #e0f7fa !important;
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn.selected span {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-quiz-body .hj-answer-btns button.hj-answer-btn.selected svg {
    stroke: #42c3d6 !important;
}

.hj-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 32px;
}

/* ── EMAIL CAPTURE ── */
.hj-email-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
    min-height: 500px;
}
.hj-email-left h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 12px 0 16px;
    color: #1e3061;
}
.hj-email-left p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
}
.hj-email-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
}
.hj-email-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #1e3061;
}
.hj-email-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

/* Fields */
.hj-field {
    margin-bottom: 18px;
}
.hj-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e3061;
    margin-bottom: 6px;
}
#hydratejax-app .hj-input {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #1e3061;
    transition: border-color 0.2s;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}
#hydratejax-app .hj-input:focus {
    border-color: #42c3d6;
    box-shadow: 0 0 0 3px rgba(66,195,214,0.1);
}
#hydratejax-app .hj-input::placeholder { color: #94a3b8; }

.hj-error {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    padding: 8px;
    background: #fef2f2;
    border-radius: 6px;
}

/* ── RESULTS ── */
.hj-results-wrap {
    text-align: center;
    padding: 80px 20px;
    max-width: 560px;
    margin: 0 auto;
}
.hj-results-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #42c3d6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: border-color 0.3s;
}
.hj-results-score-circle.tier-green { border-color: #22c55e; }
.hj-results-score-circle.tier-yellow { border-color: #eab308; }
.hj-results-score-circle.tier-red { border-color: #ef4444; }

#hj-score-num {
    font-size: 42px;
    font-weight: 700;
}
.hj-score-max {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 400;
}
.tier-green #hj-score-num { color: #22c55e; }
.tier-yellow #hj-score-num { color: #eab308; }
.tier-red #hj-score-num { color: #ef4444; }

#hj-result-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1e3061;
}
.hj-result-msg {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 32px;
}

/* ── THANK YOU ── */
.hj-thankyou-wrap {
    text-align: center;
    padding: 60px 20px;
    max-width: 640px;
    margin: 0 auto;
}
.hj-thankyou-check {
    margin-bottom: 24px;
}
.hj-thankyou-wrap h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1e3061;
}
.hj-thankyou-sub {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 24px;
}

/* Participant Badge */
.hj-participant-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1e3061;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}
.hj-participant-badge strong {
    color: #42c3d6;
    font-weight: 700;
}

/* Stats */
.hj-thankyou-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.hj-ty-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 28px;
    min-width: 150px;
}
.hj-ty-num {
    font-size: 28px;
    font-weight: 700;
    color: #42c3d6;
}
.hj-ty-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Who Joined */
.hj-who-joined {
    text-align: left;
    margin-bottom: 40px;
}
.hj-who-joined h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1e3061;
}
.hj-joiner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
}
.hj-joiner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #42c3d6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.hj-joiner-name {
    font-size: 15px;
    font-weight: 500;
    color: #1e3061;
    flex: 1;
}
.hj-joiner-time {
    font-size: 13px;
    color: #94a3b8;
}

/* Footer */
.hj-thankyou-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    margin-top: 16px;
}
.hj-thankyou-footer p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 12px;
}
.hj-otgd-brand {
    margin-top: 24px;
    padding: 20px;
    background: #1e3061;
    border-radius: 10px;
    color: #fff;
}
.hj-otgd-brand strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.hj-otgd-brand span {
    font-size: 14px;
    color: #94a3b8;
}

/* Loading */
.hj-loading {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.hj-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #42c3d6;
    border-radius: 50%;
    animation: hjSpin 0.7s linear infinite;
    margin-bottom: 16px;
}
@keyframes hjSpin { to { transform: rotate(360deg); } }
.hj-loading p {
    font-size: 15px;
    color: #64748b;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hj-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }
    .hj-hero-title { font-size: 32px; }
    .hj-hero-sub { font-size: 17px; }
    .hj-hero-visual { order: -1; }
    .hj-hero-placeholder { width: 240px; height: 200px; }
    .hj-email-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0;
    }
    .hj-quiz-question { font-size: 22px; }
    .hj-answer-btns { flex-direction: column; max-width: 280px; }
    .hj-answer-btn { padding: 24px 20px; flex-direction: row; }
    .hj-proof-stats { flex-direction: column; align-items: center; }
    .hj-proof-stat { width: 100%; max-width: 300px; }
    .hj-thankyou-stats { flex-direction: column; align-items: center; }
    .hj-ty-stat { width: 100%; max-width: 300px; }
    .hj-results-wrap { padding: 48px 16px; }
    .hj-email-card { padding: 24px; }
}

/* ── HERO IMAGE ROUNDED ── */
.hj-hero-img {
    border-radius: 20px !important;
    object-fit: cover;
    max-height: 420px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(30,48,97,0.12);
}

/* ── BUTTON TEXT FIX ── */
#hydratejax-app .hj-answer-btn,
#hydratejax-app .hj-answer-btn:hover,
#hydratejax-app .hj-answer-btn:focus,
#hydratejax-app .hj-answer-btn:active,
#hydratejax-app .hj-answer-btn.selected {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}
#hydratejax-app .hj-answer-btn span,
#hydratejax-app .hj-answer-btn:hover span,
#hydratejax-app .hj-answer-btn:focus span {
    color: #1e3061 !important;
    -webkit-text-fill-color: #1e3061 !important;
}


/* ── THANK YOU — Professional Single Column ── */
.hj-ty-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Congratulations Banner */
.hj-ty-banner {
    background: #fdf8f6;
    border-radius: 16px;
    padding: 48px 32px 36px;
    text-align: center;
    margin-bottom: 28px;
    border: 1px solid #f0e6e0;
}
.hj-ty-check-icon {
    width: 52px;
    height: 52px;
    background: #1e3061;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.hj-ty-banner h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
}
.hj-ty-banner > p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ID Row */
.hj-ty-id-row {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 32px;
}
.hj-ty-id-item {
    text-align: center;
    padding: 0 24px;
}
.hj-ty-id-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 4px;
}
.hj-ty-id-value {
    font-size: 26px;
    font-weight: 800;
    color: #1e3061;
    letter-spacing: -0.02em;
}
.hj-ty-id-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}
.hj-ty-id-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3061;
}
.hj-ty-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

/* Impact Section */
.hj-ty-impact {
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    background: #fff;
}
.hj-ty-impact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.hj-ty-impact-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}
.hj-ty-impact-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Stats Grid */
.hj-thankyou-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.hj-ty-stat {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 16px;
}
.hj-ty-stat-icon { margin-bottom: 12px; }
.hj-ty-num {
    font-size: 30px;
    font-weight: 700;
    color: #1e3061;
}
.hj-ty-label {
    font-size: 10px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Member Directory */
.hj-ty-members {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    background: #fff;
    margin-bottom: 28px;
}
.hj-ty-members h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.hj-who-joined { margin: 0; }

/* Joiner Items — enhanced */
.hj-joiner-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.hj-joiner-item:last-child { border-bottom: none; }
.hj-joiner-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #42c3d6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.hj-joiner-info { flex: 1; }
.hj-joiner-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e3061;
}
.hj-joiner-role {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.hj-joiner-time {
    font-size: 13px;
    color: #94a3b8;
    text-align: right;
}
.hj-joiner-live {
    font-size: 11px;
    font-weight: 700;
    color: #22c55e;
    background: #dcfce7;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Brand */
.hj-ty-footer-brand {
    margin-top: 8px;
}
.hj-otgd-brand {
    background: #1e3061;
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    text-align: center;
}
.hj-otgd-brand strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.hj-otgd-brand span {
    font-size: 13px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
    .hj-ty-wrap { padding: 24px 16px 40px; }
    .hj-ty-banner { padding: 32px 20px 28px; }
    .hj-ty-banner h2 { font-size: 24px; }
    .hj-ty-id-row { flex-direction: column; gap: 12px; padding: 16px 24px; }
    .hj-ty-id-divider { width: 60px; height: 1px; }
    .hj-thankyou-stats { grid-template-columns: 1fr; }
    .hj-ty-impact, .hj-ty-members { padding: 20px; }
}
