/* Formular-Assistent — geteiltes Gerüst für die mehrseitigen Formulare
   (Trainingsplan, Ernährungsplan). Eine Fläche, eine Haarlinie, keine
   Emoji: die Frage trägt die Seite, nicht ihre Dekoration.
   Aufrufer setzen --primary-color selbst, die Farbe kommt aus dem Studio. */

/* ── Full-screen mobile feel ── */
body {
    background-color: #f5f5f7;
    padding: 20px;
}
@media (max-width: 600px) {
    body {
        padding: 0;
        align-items: flex-start;
    }
    .container {
        min-height: 100svh;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 24px 20px 40px !important;
        max-width: 100% !important;
    }
}

/* ── Page layout ── */
.page { display: none; }
.page.active { display: flex; flex-direction: column; }

/* ── Nav header ── */
.tp-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.tp-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #1c1c1e;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.tp-back-btn:hover { opacity: 0.6; }
.tp-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #6e6e73;
}

/* ── Segmented progress bar ── */
.tp-progress {
    display: flex;
    gap: 5px;
    margin-bottom: 28px;
}
.tp-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    transition: background 0.3s ease;
}
.tp-seg.filled {
    background: var(--primary-color);
}

/* ── Question typography ── */
.tp-question-num {
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
    margin-bottom: 10px;
    text-align: left;
}
.tp-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1c1c1e;
    line-height: 1.25;
    text-align: left;
    margin-bottom: 8px;
}
.tp-desc {
    font-size: 14px;
    color: #6e6e73;
    text-align: left;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── Option cards ── */
.tp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tp-option {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease;
    background: white;
    text-align: left;
    width: 100%;
    gap: 16px;
}
.tp-option:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}
.tp-option:active {
    transform: translateY(0);
}
.tp-option.selected {
    border-color: var(--primary-color);
    border-width: 2px;
}
.tp-option-content { flex: 1; }
.tp-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1e;
    line-height: 1.3;
}
.tp-option-desc {
    font-size: 13px;
    color: #6e6e73;
    margin-top: 2px;
    line-height: 1.4;
}
.tp-option.selected .tp-option-title {
    color: var(--primary-color);
}

/* ── Radio circle ── */
.tp-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.tp-option.selected .tp-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}
.tp-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.tp-option.selected .tp-radio-dot { opacity: 1; }

/* ── Continue button (multi-select) ── */
.tp-continue-btn {
    display: none;
    margin-top: 20px;
    width: 100%;
}

/* ── Slider ── */
.tp-slider-wrap { width: 100%; }
.tp-slider-label {
    font-size: 15px;
    color: #6e6e73;
    text-align: center;
    margin-bottom: 20px;
}
.tp-slider-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}
.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.slider-input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.slider-input::-moz-range-thumb {
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.slider-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* ── Gender options (2-col) ── */
.tp-options-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.tp-options-2col .tp-option {
    flex-direction: column;
    text-align: center;
    padding: 20px 12px;
    gap: 10px;
}
.tp-options-2col .tp-option-content { flex: none; }
.tp-options-2col .tp-radio { margin: 0 auto; }

/* ── Freitext-Eingabe unter einer Frage ── */
.tp-custom-input {
    display: none;
    margin-top: 16px;
}
.tp-custom-input input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    color: #1c1c1e;
    transition: border-color 0.15s;
}
.tp-custom-input input:focus {
    border-color: var(--primary-color);
}

/* ── Start page ── */
.tp-start { text-align: center; }
.tp-start .logo { margin: 0 auto 32px; }
.tp-start h1 {
    font-size: 30px;
    font-weight: 800;
    color: #1c1c1e;
    margin-bottom: 12px;
    line-height: 1.2;
}
.tp-start > p {
    font-size: 15px;
    color: #6e6e73;
    margin-bottom: 28px;
    line-height: 1.6;
}
.tp-benefits {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}
.tp-benefit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
.tp-benefit-row:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}
.tp-benefit-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tp-benefit-check svg {
    width: 11px;
    height: 11px;
    stroke: white;
    fill: none;
}

/* ── Contact form page ── */
.tp-form-header {
    text-align: left;
    margin-bottom: 28px;
}
.tp-form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 8px;
    text-align: left;
}
.tp-form-header p {
    font-size: 14px;
    color: #6e6e73;
    text-align: left;
}
.tp-what-you-get {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
}
.tp-what-you-get h4 {
    font-size: 13px;
    font-weight: 700;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.tp-what-you-get ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tp-what-you-get li {
    font-size: 14px;
    color: #1c1c1e;
    display: flex;
    /* Wrapping items must keep the dot on the first line, and the page
       centres its text — neither is right for a bullet list. */
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    line-height: 1.45;
}
.tp-what-you-get li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    /* optically centre the dot on the first line */
    margin-top: 0.45em;
}

/* ── Phone ── */
.phone-input-container { display: flex; gap: 8px; }
.phone-prefix-select {
    flex: 0 0 110px;
    font-size: 15px;
    padding: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: white;
    cursor: pointer;
    font-family: inherit;
}
.phone-number-input { flex: 1; }
.gym-selector {
    width: 100%;
    font-size: 15px;
    padding: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: white;
    cursor: pointer;
    font-family: inherit;
}

/* ── Success ── */
.tp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}
.tp-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1c1c1e;
    margin: 24px 0 12px;
}
.tp-success p {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.6;
}
.tp-success-details {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tp-success-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
