/* ---------- GLOBAL RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- LANDING PAGE ---------- */
.landing-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(
        180deg,
        #b892ff 0%,
        #d7a6ff 35%,
        #ffb3c7 100%
    );
}

/* Center main content vertically */
.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ---------- TEXT ---------- */
.landing-title {
    font-size: 100px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffffff;
    margin-bottom: 18px;
}

.landing-tagline {
    font-size: 24px;
    font-weight: 500;
    color: #6b2d84;
    margin-top: 5px;
    margin-bottom: 8px;  
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.landing-description {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 20px;
    margin-bottom: 46px;
}

/* ---------- BUTTONS ---------- */
.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.landing-primary-btn {
    width: 260px;
    height: 56px;
    border-radius: 28px;
    border: none;
    background: linear-gradient(90deg, #ff6a5c, #ff4f7a);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 105, 135, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 105, 135, 0.45);
}

.landing-secondary-btn {
    width: 260px;
    height: 56px;
    border-radius: 28px;
    border: none;
    background: #5a3d8c;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(90, 61, 140, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-secondary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(90, 61, 140, 0.45);
}

/* ---------- FOOTER (consolidated â€” single definition) ---------- */
.landing-footer {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    position: relative;
    margin-top: auto;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-footer a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 6px;
}

.landing-footer a:hover {
    text-decoration: underline;
}

.footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 14px;
    color: #4b5563;
}

.footer-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #000;
}

.footer-separator {
    margin: 0 8px;
    opacity: 0.6;
}

/* Container and Background */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #d8b4fe 0%, #fbcfe8 50%, #e879f9 100%);
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Glassmorphism Card */
.login-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ---------- THE MASTER BRAND LOGO ---------- */
.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6d28d9;
    user-select: none;
    cursor: default;
    outline: none !important;
}

.logo-white {
    color: #ffffff !important;
}

.logo-vibrant {
    color: #6d28d9 !important;
}

.logo-link {
    text-decoration: none !important;
    display: inline-block;
    cursor: pointer !important;
}

.logo-link .logo {
    text-decoration: none !important;
    cursor: pointer !important;
}

.logo-link:hover {
    opacity: 0.85;
}

h2 {
    color: #5b21b6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #7c3aed;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    margin-top: 10px;
}

/* Input Styles */
.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    background: white;
    font-size: 1rem;
    outline: none;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
}

/* Login Button */
.btn-login {
    width: 100%;
    background: #ff6b6b;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Social Buttons */
.btn-social {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

.forgot-password {
    display: inline-block;
    margin-top: 1.5rem;
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Full-page wrapper */
.page-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #d8b4fe 0%, #fbcfe8 50%, #e879f9 100%);
}

.login-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    isolation: isolate;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
}

.signup-btn {
    background: #5e3a8e;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Inputs and Icons */
.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.custom-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: white;
    box-sizing: border-box;
    font-size: 16px;
}

.icon-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5e3a8e;
    font-size: 18px;
    z-index: 5;
}

.icon-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 16px;
}

/* The Red Log In Button */
.main-login-btn {
    width: 100%;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.auth-divider {
    margin: 20px 0;
    color: #7d63a3;
    font-size: 0.9rem;
}

/* OAuth / Social buttons */
.social-btn,
.signup-oauth-btn {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(17, 24, 39, 0.75);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.social-btn img,
.signup-oauth-btn img {
    width: 20px;
    height: 20px;
    display: block;
    cursor: pointer;
}

.social-btn:hover,
.signup-oauth-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.social-btn:active,
.signup-oauth-btn:active {
    transform: translateY(1px);
}

.social-btn:disabled,
.signup-oauth-btn:disabled {
    opacity: 1;
    color: rgba(17, 24, 39, 0.75);
    cursor: not-allowed;
}

.social-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.fab.fa-apple { color: #000; }
.fab.fa-google { color: #4285F4; }

/* ===============================
   SIGNUP PAGE
================================ */

.public-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #caa7ff, #ffb3c7);
}

.signup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
}

.signup-logo {
    font-size: 26px;
    font-weight: 700;
    color: #5b2c83;
}

.signup-header-btn {
    background: #5b2c83;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
}

.signup-content {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 24px;
}

.signup-content h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.signup-subtitle {
    color: #4b5563;
    margin-bottom: 32px;
}

.signup-input {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.8);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.signup-input .icon {
    margin-right: 12px;
    font-size: 18px;
}

.signup-input input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 16px;
}

.signup-primary-btn {
    width: 100%;
    background: #ff5a5f;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
}

.signup-divider {
    margin: 24px 0;
    color: #6b7280;
}

.signup-oauth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    margin-bottom: 14px;
    background: white;
    font-size: 16px;
    font-weight: 500;
}

.signup-btn { cursor: pointer; }
.main-login-btn { cursor: pointer; }

/* ===============================
   LEGAL PAGES (TERMS / PRIVACY)
================================ */

.public-page.legal-page {
    padding-top: 80px;
    padding-bottom: 80px;
}

.legal-back {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 10;
}

.legal-back button {
    background: rgba(94, 58, 142, 0.9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.legal-back button:hover {
    background: rgba(94, 58, 142, 1);
}

.legal-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 48px 56px;
    color: #111827;
    line-height: 1.65;
    isolation: isolate;
}

.legal-content h1,
.legal-content .effective-date {
    text-align: center;
}

.legal-content h1 {
    margin-bottom: 8px;
}

.legal-content .effective-date {
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 16px;
}

.legal-content h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #5b2c83;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 6px;
}

.existingAccountLogin { cursor: pointer; }

/* ===============================
   QUESTIONNAIRE PAGE
================================ */

.questionnaire-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.progress-container {
    width: 100%;
    height: 16px;
    background-color: #e5e7eb;
    border-radius: 999px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.questionnaire-title {
    text-align: center;
    margin-bottom: 36px;
}

.questionnaire-title h1 {
    font-size: 36px;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 8px;
}

.questionnaire-title p {
    font-size: 16px;
    color: #6b7280;
}

.questionnaire-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
    isolation: isolate;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #6d28d9;
    margin-bottom: 20px;
}

.question-block {
    margin-bottom: 28px;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 14px;
    color: #111827;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.option-item input[type="radio"] {
    accent-color: #7c3aed;
}

.questionnaire-footer {
    margin-top: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
}

.next-btn {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/* ===============================
   QUESTIONNAIRE LAYOUT
================================ */

.questionnaire-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 24px 80px;
    background: linear-gradient(135deg, #caa7ff, #ffb3c7);
}

.questionnaire-content {
    max-width: 1200px;
    margin: 0 auto;
}

.questionnaire-section {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 36px 48px;
    margin-bottom: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    isolation: isolate;
}

.question-card {
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .questionnaire-content,
    .questionnaire-footer {
        max-width: 92%;
    }

    .questionnaire-section {
        padding: 28px 24px;
    }
}

.date-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 16px;
    background: white;
}

.app-header {
    height: 64px;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #caa7ff, #ffb3c7);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-btn {
    background: #5b2c83;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.header-btn:hover {
    transform: translateY(-1px);
}

.header-btn.logout {
    background: #6d28d9;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    background: none;
    transition: background 0.2s;
}

.header-btn.logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    gap: 20px;
    padding: 0 20px;
}

.footer-buttons:has(.back-btn) {
    justify-content: space-between;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.nav-btn:active {
    transform: scale(0.98);
}

.nav-btn i {
    font-size: 16px;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.questionnaire-actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
    width: 100%;
}

.nav-button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.action-btn {
    width: 100%;
    max-width: 280px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.save-button-row {
    width: 100%;
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.save-progress-btn {
    background: #5b2c83;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
}

.save-progress-btn:hover {
    background: #4a246b;
    transform: translateY(-1px);
}

.save-progress-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.questionnaire-main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-grow: 1;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section h1 {
    font-size: 42px;
    font-weight: 800;
    color: #5b2c83;
    margin-bottom: 10px;
}

.questions-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.question-item label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

/* ===============================
   QUESTIONNAIRE PAGE ROOT
================================ */

.questionnaire-page-root {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
    font-family: 'Inter', sans-serif;
}

.questionnaire-master-container {
    width: 75vw;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 100px 0;
    flex-grow: 1;
}

.progress-section {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-count-wrapper {
    width: 100%;
    text-align: right;
}

.questions-count {
    font-weight: 700;
    font-size: 18px;
    color: #5b2c83;
}

.demographics-theme {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.step-indicator {
    color: #5b21b6;
    font-weight: 600;
    font-size: 1.2rem;
}

.logout-pill {
    background: #6d28d9;
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
}

.demographics-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.glass-setup-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    isolation: isolate;
}

.setup-item-block {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 15px;
}

.item-header {
    color: #4c1d95;
    font-weight: 700;
    margin-bottom: 10px;
}

.continue-btn {
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
    padding: 14px 60px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* --- Navigation Header --- */
.nav-center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: #4c1d95;
    font-size: 1.1rem;
}

.logout-pill-v2 {
    background: #6d28d9;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.logout-pill-v2:hover {
    background: #5b21b6;
}

/* --- Progress Bar Section --- */
.ux-progress-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.ux-progress-bar-container {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ux-progress-bar-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ux-count-label {
    font-weight: 700;
    color: #4c1d95;
    white-space: nowrap;
}

/* --- Titles --- */
.questionnaire-title-section {
    font-size: large;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 40px;
}

.questionnaire-title-section h1 {
    color: #2e1065;
    font-weight: 800;
    margin-bottom: 10px;
}

.questionnaire-title-section p {
    color: #5b21b6;
    font-size: 1.1rem;
}

/* --- Category Card (Glass Morph) --- */
.category-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    isolation: isolate;
}

.category-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    font-weight: 800;
    color: #4c1d95;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.category-body {
    padding: 32px;
}

/* --- Question Blocks --- */
.ux-question-block {
    margin-bottom: 40px;
}

.ux-question-block:last-child {
    margin-bottom: 0;
}

.ux-question-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2E1065;
    margin-bottom: 20px;
}

.ux-option-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 15px 0;
}

.ux-option-pill {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ux-option-pill.active {
    background: #6e41e2;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.opt-text {
    color: #4c1d95;
    font-weight: 600;
    font-size: 1.05rem;
    margin-left: 10px;
}

.ux-option-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.ux-option-pill.active .opt-text {
    color: #ffffff;
}

.ux-option-pill .dot {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd6fe;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background: white;
}

.ux-option-pill.active .dot {
    border-color: #ffffff;
}

.ux-option-pill.active .dot::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #6d28d9;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ux-option-pill input {
    display: none;
}

.ux-action-area {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 60px;
    width: 100%;
}

/* Base Pill Style */
.ux-nav-pill {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #4c1d95;
    height: 54px;
    min-width: 100px;
    padding: 0 25px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ux-nav-pill:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.save-pill {
    min-width: 140px;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ux-nav-pill.primary-pill {
    background: #6d28d9;
    color: white;
    border: none;
    min-width: 120px;
}

.ux-nav-pill.primary-pill:hover {
    background: #5b21b6;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.ux-nav-pill i {
    font-size: 1.2rem;
}

/* Save Toast */
.save-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #2e1065;
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: centerZoomFade 0.3s ease-out;
}

.save-toast i {
    color: #10b981;
    font-size: 3rem;
}

@keyframes centerZoomFade {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    z-index: 9999;
}

/* --- Text & Date Inputs --- */
.custom-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.ux-text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #4c1d95;
    outline: none;
    transition: all 0.2s ease;
}

.ux-text-input:focus {
    background: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ux-text-input.icon-padding {
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Fix for Date Input â€” width set to 100% here, NOT 250px */
.ux-text-input[type="date"] {
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    width: 100%;
}

/* The Continue Button */
.ux-continue-btn {
    background: #6d28d9;
    color: #ffffff;
    height: 54px;
    min-width: 200px;
    padding: 0 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ux-continue-btn:hover {
    background: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

.ux-continue-btn:active {
    transform: translateY(0);
}

.ux-continue-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(76, 29, 149, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.validation-toast {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.validation-toast i {
    color: #ef4444 !important;
    font-size: 3rem;
}

.validation-toast span {
    color: #7f1d1d;
    text-align: center;
    max-width: 300px;
}

.ux-nav-pill:focus-visible,
.ux-continue-btn:focus-visible {
    outline: 3px solid #7C3AED;
    outline-offset: 2px;
}

/* Glass-morphism Dropdown */
.ux-dropdown {
    width: 100%;
    max-width: 500px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #4c1d95;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c1d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 16px;
    transition: all 0.2s ease-in-out;
}

.ux-dropdown:focus {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.ux-dropdown option {
    background: #ffffff;
    color: #4c1d95;
}

.auth-button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.btn-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid #8c8c8c;
    background-color: white;
    color: #3c4043;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-auth img {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

.btn-auth:hover {
    background-color: #f7f7f7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.google:hover { border-color: #4285F4; }
.microsoft:hover { border-color: #00A4EF; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-link:hover {
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.nav-profile-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-profile-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nav-sep {
    color: rgba(255, 255, 255, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-select-pill {
    appearance: none;
    -webkit-appearance: none;
    padding: 6px 35px 6px 15px;
    border-radius: 20px;
    border: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236e41e2%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/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6e41e2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.voice-page-root .top-nav {
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.voice-page-root *:focus {
    outline: none !important;
}

/* Phone Auth Wrapper */
.phone-auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%) !important;
    padding: 2rem;
    box-sizing: border-box;
}

.glass-input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    height: 60px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.glass-input-reset {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #5E35B1 !important;
    font-weight: 600;
    font-size: 1.1rem;
    height: 100%;
}

.glass-selector-group {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    border-right: 1px solid rgba(94, 53, 177, 0.1);
    position: relative;
}

.glass-selector-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 20px;
    cursor: pointer;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: normal !important;
    vertical-align: middle !important;
    font-family: inherit !important;
}

.glass-selector-group select option {
    font-size: 1.1rem;
    font-weight: 600;
}

.glass-selector-group::after {
    content: '\25BC';
    position: absolute;
    right: 18px;
    font-size: 0.8rem;
    color: #5E35B1;
    pointer-events: none;
}

/* Updated Login/Signup Header */
.login-header {
    font-weight: 600 !important;    /* Slightly bolder for more visual weight */
    color: #5a4e8d !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    font-size: 2.4rem !important;
    line-height: 1.2 !important;
}

/* Remove blue outline from headers when clicked or focused */
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Fix truncated headings */
h1, .questionnaire-title-section h1 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    display: block !important;
    line-height: 1.2;
}

/* ================================================
   SAFARI iOS â€” INPUT APPEARANCE FIXES
   NOTE: Global input rule intentionally excludes
   OTP boxes to preserve their large font size
================================================ */

/* Prevent iOS Safari zoom â€” excludes OTP digit inputs */
input:not([id^="otp-"]),
select,
textarea {
    font-size: 16px !important;
}

/* Remove Safari inner shadows on inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
}

/* ================================================
   MOBILE RESPONSIVE FIXES
   Breakpoint: 768px (tablets and phones)
================================================ */
@media (max-width: 768px) {

    /* Prevent horizontal scroll globally */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* -----------------------------------------------
       LANDING PAGE
    ----------------------------------------------- */
    .landing-container {
        padding: 0;              /* No side padding â€” background fills full width */
    }

    .landing-main {
        padding: 60px 24px 40px; /* Padding on the content, not the container */
    }

    .landing-title {
        font-size: 42px;
        letter-spacing: 3px;
        margin-bottom: 14px;
    }

    .landing-tagline {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .landing-description {
        font-size: 16px;
        padding: 0 16px;
        margin-top: 12px;
        margin-bottom: 32px;
    }

    .landing-actions {
        width: auto !important;    /* Don't stretch to full container width */
        align-items: center;
    }

    /* Prevent Bootstrap/Tailwind from stretching buttons full-width */
    .landing-primary-btn,
    .landing-secondary-btn {
        width: 200px !important;
        max-width: 200px !important;
        height: 48px !important;
        font-size: 15px !important;
        display: block !important;
    }

    /* -----------------------------------------------
       TOP NAV / APP HEADER
    ----------------------------------------------- */
    .app-header,
    .top-nav,
    .signup-header {
        padding: 12px 16px;
        height: auto;
        flex-wrap: nowrap;     /* Never wrap â€” logo and button stay on same line */
        gap: 8px;
        align-items: center;
    }

    .top-nav .logo {
        font-size: 20px !important;  /* Slightly smaller logo so button fits */
        white-space: nowrap;
    }

    .nav-center-title {
        position: static;
        transform: none;
        font-size: 0.95rem;
        order: -1;
        flex: 1 0 100%;
        text-align: center;
    }

    .header-actions {
        flex: 1;
        display: flex;
        justify-content: center;
        overflow: hidden;
        min-width: 0;
    }

    .page-select-pill {
        max-width: 130px;
        font-size: 0.8rem !important;
        padding: 5px 28px 5px 10px !important;
    }

    /* -----------------------------------------------
       LOGIN / SIGNUP â€” GLASS CARD
    ----------------------------------------------- */
    .glass-card {
        width: 96% !important;
        max-width: 420px !important;
        padding: 32px 24px !important;
        margin: 0 auto !important;
        border-radius: 20px !important;
    }

    .login-content,
    .page-wrapper {
        padding: 16px;
    }

    .signup-content {
        padding: 24px 16px;
    }

    .signup-content h1 {
        font-size: 28px;
    }

    /* -----------------------------------------------
       QUESTIONNAIRE â€” MASTER LAYOUT
    ----------------------------------------------- */
    .questionnaire-master-container {
        width: 96vw !important;
        max-width: 96vw !important;
        margin: 0 auto !important;
        padding: 16px 0 80px 0 !important;
    }

    .questionnaire-page {
        padding: 20px 8px 80px !important;
    }

    .questionnaire-main-content {
        padding: 20px 0 !important;
    }

    /* -----------------------------------------------
       QUESTIONNAIRE â€” CARDS & SECTIONS
    ----------------------------------------------- */
    .questionnaire-section {
        padding: 20px 12px !important;
        border-radius: 20px !important;
        margin-bottom: 20px !important;
    }

    .category-card {
        border-radius: 16px !important;
        margin-bottom: 24px !important;
    }

    .category-header {
        padding: 14px 16px !important;
        font-size: 1rem !important;
    }

    .category-body {
        padding: 20px 12px !important;
    }

    .glass-setup-card {
        padding: 24px 12px !important;
        border-radius: 20px !important;
    }

    /* -----------------------------------------------
       QUESTIONNAIRE â€” TITLES
    ----------------------------------------------- */
    .header-section h1,
    .questionnaire-title-section h1 {
        font-size: 26px !important;
    }

    .questionnaire-title-section {
        margin-bottom: 24px !important;
    }

    .questionnaire-title-section p {
        font-size: 0.95rem !important;
    }

    .ux-question-text {
        font-size: 1.05rem !important;
    }

    /* -----------------------------------------------
       QUESTIONNAIRE â€” PROGRESS BAR
    ----------------------------------------------- */
    .ux-progress-row {
        gap: 12px !important;
    }

    .ux-count-label {
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* -----------------------------------------------
       QUESTIONNAIRE â€” INPUTS & DROPDOWNS
    ----------------------------------------------- */
    .custom-input-wrapper,
    .ux-text-input,
    .ux-dropdown {
        max-width: 100% !important;
        width: 100% !important;
    }

    .ux-text-input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* -----------------------------------------------
       QUESTIONNAIRE â€” NAVIGATION BUTTONS
    ----------------------------------------------- */
    .nav-button-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: center !important;
    }

    .action-btn,
    .ux-nav-pill {
        min-width: 120px !important;
        font-size: 0.9rem !important;
        height: 44px !important;
        padding: 0 14px !important;
    }

    .ux-continue-btn {
        min-width: 160px !important;
        font-size: 0.9rem !important;
        height: 44px !important;
    }

    /* Shrink the Jump To selector row */
    .ux-action-area select {
        font-size: 0.85rem !important;
        padding: 8px 32px 8px 14px !important;
        height: 40px !important;
    }

    .ux-action-area span[style*="JUMP TO"] {
        font-size: 0.8rem !important;
    }

    .save-pill {
        min-width: 120px !important;
    }

    .questionnaire-actions-container {
        gap: 16px !important;
        margin-top: 32px !important;
    }

    /* -----------------------------------------------
       DEMOGRAPHICS / SETUP PAGE
    ----------------------------------------------- */
    .demographics-container {
        padding: 20px 12px !important;
    }

    .continue-btn {
        padding: 14px 32px !important;
        font-size: 1rem !important;
    }

    /* Voice page + Demographics "Continue" buttons â€” smaller on mobile */
    .continue-gradient-btn {
        padding: 12px 32px !important;
        font-size: 1rem !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .ux-continue-btn {
        width: 180px !important;       /* Fixed width beats inline width:100% */
        max-width: 180px !important;
        min-width: 0 !important;
        font-size: 0.95rem !important;
        height: 44px !important;
        padding: 0 20px !important;
    }

    /* -----------------------------------------------
       PHONE AUTH PAGE
    ----------------------------------------------- */
    .phone-auth-wrapper {
        padding: 1.5rem 8px !important;
    }

    .phone-auth-wrapper .questionnaire-master-container {
        align-items: stretch !important;
        padding: 0 8px !important;
        width: 100% !important;
    }

    .glass-input-container {
        max-width: 100% !important;
    }

    /* -----------------------------------------------
       LEGAL PAGES
    ----------------------------------------------- */
    .legal-content {
        padding: 28px 20px !important;
        border-radius: 20px !important;
        margin: 0 12px !important;
    }

    .legal-content h2 {
        font-size: 18px !important;
    }

    .public-page.legal-page {
        padding-top: 64px !important;
        padding-bottom: 40px !important;
    }

    .legal-back {
        top: 12px !important;
        left: 12px !important;
    }

    /* -----------------------------------------------
       FOOTER
    ----------------------------------------------- */
    .landing-footer {
        padding: 12px 8px !important;
        height: auto !important;
    }

    .footer-container {
        flex-wrap: wrap !important;
        white-space: normal !important;
        font-size: 10px !important;
        gap: 3px 5px !important;
        text-align: center !important;
        padding: 0 8px !important;
        justify-content: center !important;
        line-height: 1.6 !important;
    }

    .footer-separator {
        flex-shrink: 0;
    }

    /* -----------------------------------------------
       VOICE PAGE NAV BUTTONS
    ----------------------------------------------- */
    .nav-actions {
        gap: 6px !important;
    }

    .nav-actions .logout-pill-v2 {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        gap: 5px !important;
    }
}

/* ================================================
   SMALL PHONE (iPhone SE / 375px)
================================================ */
@media (max-width: 400px) {

    .landing-title {
        font-size: 30px !important;
    }

    .landing-tagline {
        font-size: 18px !important;
    }

    .landing-primary-btn,
    .landing-secondary-btn {
        width: 90vw !important;
    }

    .glass-card {
        padding: 20px 14px !important;
    }

    .login-header {
        font-size: clamp(0.9rem, 5vw, 1.5rem) !important;
    }

    .category-header {
        font-size: 0.9rem !important;
        letter-spacing: 0.03em !important;
    }

    .ux-question-text {
        font-size: 1rem !important;
    }

    .app-header,
    .top-nav {
        padding: 10px 12px !important;
    }

    .header-btn,
    .logout-pill,
    .logout-pill-v2 {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .nav-button-row {
        align-items: center !important;
        /* Keep as row â€” questionnaire uses flex:1/flex:2 inline to size buttons proportionally */
    }

    .action-btn,
    .ux-nav-pill,
    .ux-continue-btn {
        min-width: 0 !important;    /* Allow flex shrinking within the row */
        max-width: none !important; /* Don't override the inline flex sizing */
    }

    .nav-actions .logout-pill-v2 {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
    }

    .footer-container {
        font-size: 10px !important;
        gap: 4px !important;
    }
}

/* ================================================
   SINGLE COLUMN OPTION GRIDS ON SMALL PHONES
================================================ */
@media (max-width: 480px) {
    .ux-option-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

.landing-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b2d84;
    margin-top: 16px;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 24px 16px !important;
        border-radius: 20px !important;
        margin: 0 8px !important;
        width: calc(100% - 16px) !important;
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .legal-content h1 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }

    .legal-content h2 {
        font-size: 1rem !important;
        margin-top: 24px !important;
    }

    .legal-content .effective-date {
        font-size: 0.85rem !important;
        margin-bottom: 20px !important;
    }

    .legal-content ul {
        padding-left: 16px !important;
    }

    .public-page.legal-page {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

.landing-logo {
    width: 400px;
    max-width: 70vw;
    margin-bottom: 18px;
    object-fit: contain;
}
