/* =========================================
   ANAMNESIS.CSS - Bodyweb AI Fitness Form
   Premium dark glassmorphism design
   ========================================= */

/* === VARIABLES === */
:root {
    --bw-primary: #0056b3;
    --bw-bg: #0d0f14;
    --bw-card-bg: rgba(20, 22, 35, 0.92);
    --bw-text: #e8eaf0;
    --bw-text-muted: #8890a4;
    --bw-border: rgba(255, 255, 255, 0.08);
    --bw-header-height: 166px;
    --bw-accent: #00aaff;
    --bw-accent2: #0072ff;
    --bw-glow: rgba(0, 170, 255, 0.25);
    --bw-gradient: linear-gradient(135deg, #00c6ff, #0072ff);
    --bw-success: #22c55e;
    --bw-error: #ef4444;
    --bw-radius: 12px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bw-bg);
    background-image: url("https://www.bodyweb.com/images/bodyweb_bg.gif");
    background-repeat: repeat;
    color: var(--bw-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* === MAIN CONTENT WRAPPER === */
.main-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px 60px;
    background: rgba(13, 15, 20, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 114, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

/* === HEADER (shared) === */
.b-top-background {
    background-color: rgb(65, 70, 85);
    background-image: url("https://www.bodyweb.com/images/bodyweb_headerLogo-continue.gif");
    background-repeat: repeat-x;
    height: var(--bw-header-height);
    width: 100%;
    position: relative;
}

.b-top-background__header-mainnav {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-logo {
    padding-top: 0;
    display: inline-block;
}

.site-logo img {
    max-width: 100%;
    height: auto;
}

#channel-tabbar {
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.channel-tabbar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.section-item a {
    display: inline-block;
    padding: 7px 14px;
    background: linear-gradient(145deg, #2a2e3a, #363b49);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.section-item a:hover,
.section-item.current a {
    background: linear-gradient(145deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* === HERO === */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 170, 255, 0.12);
    border: 1px solid rgba(0, 170, 255, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--bw-accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 12px;
    background: var(--bw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--bw-text-muted);
    font-size: 1.1rem;
}

/* === LANGUAGE TOGGLE === */
.lang-toggle-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px 0;
}

.lang-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--bw-border);
    background: transparent;
    color: var(--bw-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    background: rgba(0, 170, 255, 0.12);
    border-color: var(--bw-accent);
    color: var(--bw-accent);
}

/* === PROGRESS === */
.progress-wrapper {
    max-width: 700px;
    margin: 24px auto;
    padding: 0 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 16.66%;
    background: var(--bw-gradient);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px var(--bw-glow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--bw-text-muted);
}

.progress-step {
    text-align: center;
    flex: 1;
}

.progress-step.active {
    color: var(--bw-accent);
    font-weight: 700;
}

.progress-step.done {
    color: var(--bw-success);
}

/* === FORM CONTAINER === */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === FORM STEP === */
.form-step {
    display: none;
    padding: 36px;
    background: var(--bw-card-bg);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeSlideIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 28px;
    color: var(--bw-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title i {
    color: var(--bw-accent);
    font-size: 1.3rem;
}

/* === FORM FIELDS === */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bw-text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bw-border);
    border-radius: 8px;
    color: var(--bw-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bw-accent);
    box-shadow: 0 0 0 3px var(--bw-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group select option {
    background: #1a1c2a;
    color: #fff;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--bw-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.field-error {
    color: var(--bw-error);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* === RADIO CARDS === */
.radio-cards-row,
.radio-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.radio-card {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rc-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--bw-border);
    border-radius: var(--bw-radius);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.rc-body i {
    font-size: 1.5rem;
    color: var(--bw-text-muted);
    transition: color 0.3s;
}

.radio-card:hover .rc-body {
    border-color: rgba(0, 170, 255, 0.3);
    background: rgba(0, 170, 255, 0.06);
}

.radio-card input:checked+.rc-body {
    border-color: var(--bw-accent);
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 20px var(--bw-glow);
}

.radio-card input:checked+.rc-body i {
    color: var(--bw-accent);
}

.radio-card.big .rc-body {
    padding: 20px 16px;
}

.radio-card.big .rc-body i {
    font-size: 2rem;
}

/* === CHECKBOX PILLS === */
.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check-pill {
    cursor: pointer;
    position: relative;
}

.check-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-pill span {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bw-border);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
    user-select: none;
}

.check-pill:hover span {
    border-color: rgba(0, 170, 255, 0.3);
    background: rgba(0, 170, 255, 0.06);
}

.check-pill input:checked+span {
    border-color: var(--bw-accent);
    background: rgba(0, 170, 255, 0.15);
    color: var(--bw-accent);
    font-weight: 600;
}

/* === GDPR === */
.gdpr-group {
    margin-top: 24px;
}

.gdpr-check span {
    font-size: 0.85rem;
    color: var(--bw-text-muted);
    line-height: 1.5;
}

.gdpr-check a {
    color: var(--bw-accent);
}

/* === SUMMARY === */
.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bw-border);
    border-radius: var(--bw-radius);
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.summary-card .summary-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bw-border);
}

.summary-card .summary-section:last-child {
    border-bottom: none;
}

.summary-card h3 {
    font-size: 0.9rem;
    color: var(--bw-accent);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}

.summary-card .summary-label {
    color: var(--bw-text-muted);
}

.summary-card .summary-value {
    color: var(--bw-text);
    font-weight: 600;
}

/* === NAVIGATION BUTTONS === */
.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bw-border);
    color: var(--bw-text-muted);
}

.btn-outline:hover {
    border-color: var(--bw-accent);
    color: var(--bw-accent);
}

.btn-primary {
    background: var(--bw-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.3);
    margin-left: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 114, 255, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--bw-success), #16a34a);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
    margin-left: auto;
    font-size: 1.05rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === SUCCESS SCREEN === */
.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--bw-success);
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

.success-screen h2 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.success-screen p {
    color: var(--bw-text-muted);
    margin: 0 0 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* === FOOTER (shared) === */
#footer {
    background-color: #363b49;
    color: #d2d2d2;
    padding: 40px 0;
    font-size: 0.9rem;
    margin-top: 60px;
    border-top: 1px solid #444;
}

#footer-tabbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

#footer a {
    color: #d2d2d2;
    text-decoration: none;
    transition: color 0.2s;
}

#footer a:hover {
    color: #fff;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .b-top-background {
        height: auto;
        padding-bottom: 20px;
        background-size: cover;
    }

    .site-logo {
        text-align: center;
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 25px;
        right: 20px;
        width: 44px;
        height: 44px;
        cursor: pointer;
        z-index: 200;
        background: rgba(0, 0, 0, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.6);
        border-radius: 8px;
    }

    .hamburger-icon {
        position: relative;
        width: 24px;
        height: 3px;
        background-color: #fff;
        display: block;
        border-radius: 3px;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #fff;
        left: 0;
        border-radius: 3px;
        transition: 0.3s;
    }

    .hamburger-icon::before {
        top: -10px;
    }

    .hamburger-icon::after {
        top: 10px;
    }

    .channel-tabbar-list {
        display: none;
        flex-direction: column;
        background: #363b49;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    .channel-tabbar-list.active {
        display: flex;
    }

    .section-item {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .section-item a {
        display: block;
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .form-step {
        padding: 24px 20px;
    }

    .fields-grid {
        grid-template-columns: 1fr;
    }

    .radio-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .radio-cards-row {
        flex-direction: column;
    }

    .radio-card {
        min-width: unset;
    }

    .form-nav {
        flex-direction: column;
    }

    .btn-primary,
    .btn-submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}