/* ═══════════════════════════════════════════════════════════════════
   INDHEAL — wwwroot/css/treatment-plan.css
   Treatment plan form (/gettreatmentplan) and thank-you page.
   Layout follows the Form / Thank-you mockups on the design canvas.
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   GET TREATMENT PLAN PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────── */
.gtp-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(160deg, #f0fdf7 0%, #ffffff 65%);
}
.gtp-hero__bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 85% 25%, rgba(29,158,117,0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(29,158,117,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.gtp-hero__inner { position: relative; z-index: 1; }
.gtp-hero__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(29,158,117,0.08);
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.gtp-hero__heading {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.gtp-hero__sub {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 58ch;
    line-height: 1.65;
}

/* ── Page layout ─────────────────────────────────────────────── */
.gtp-body { padding: 3rem 0 5rem; }
.gtp-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* ── Form card ───────────────────────────────────────────────── */
.gtp-card {
    background: #fff;
    border: 1.5px solid var(--color-border, #e0ebe6);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 2rem 1.75rem;
}
.gtp-card__header { margin-bottom: 1.5rem; }
.gtp-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}
.gtp-card__sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.req-star { color: var(--color-primary); }

/* ── Form elements — matches sidebar form exactly ────────────── */
.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--color-border, #dde8e3);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--color-text-dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
/* site.css removes the native select arrow (appearance:none) */
.form-group select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding-right: 2.2rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Submit button */
.gtp-submit-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem;
    font-size: 1rem;
    margin-top: 0.25rem;
}
.gtp-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gtp-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes gtp-spin { to { transform: rotate(360deg); } }

.gtp-privacy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
}

/* ── WhatsApp button ─────────────────────────────────────────── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5d; }


/* ── Hero copy: short line on phones ─────────────────────────── */
.gtp-hero__sub--mobile { display: none; }

/* ── Form card spacing ───────────────────────────────────────── */
.gtp-step { gap: 1.75rem; }
.gtp-step[hidden] { display: none; }

/* ── Two pages: page 1 privacy line, page 2 actions ── */
.gtp-agree { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--color-text-muted); }
.gtp-agree a { color: var(--color-primary); }
.gtp-step2-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.gtp-skip { font-size: 0.95rem; color: var(--color-text-muted); text-decoration: underline; }
.gtp-skip:hover { color: var(--color-text-dark); }
.gtp-layout { grid-template-columns: minmax(0, 1fr) 340px; }

/* ── From your estimate ──────────────────────────────────────── */
.gtp-card > .gtp-estimate { margin-bottom: 1.5rem; }
.gtp-estimate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    background: #E0F1F9;
    border: 1px solid #33B2F4;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}
.gtp-estimate[hidden] { display: none; }
.gtp-estimate__main { flex: 1 1 280px; display: flex; flex-direction: column; gap: 0.2rem; }
.gtp-estimate__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #004D75;
}
.gtp-estimate__line { font-size: 1rem; color: #0A354B; }
.gtp-estimate__price { font-size: 1.3rem; font-weight: 600; color: #0A354B; text-align: right; }
.gtp-estimate__price small { display: block; font-size: 0.75rem; font-weight: 500; color: #0A354B; opacity: 0.8; }
.gtp-estimate__change { font-size: 0.92rem; font-weight: 500; }
.gtp-estimate__note { flex-basis: 100%; font-size: 0.8rem; color: #0A354B; }

/* ── Fieldsets, legends, section labels ──────────────────────── */
.gtp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.gtp-legend { font-size: 1rem; font-weight: 600; color: var(--color-text-dark); padding: 0; margin-bottom: 0.6rem; }
.gtp-sublegend { font-size: 0.82rem; font-weight: 600; color: var(--color-text-dark); padding: 0; margin-bottom: 0.4rem; }
.gtp-optional { font-weight: 400; color: var(--color-text-muted); }
.gtp-section { display: flex; flex-direction: column; gap: 1rem; }
.gtp-section--tight { gap: 0.6rem; }
.gtp-section__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ── Who is the treatment for (large choices) ────────────────── */
.gtp-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.gtp-choice { position: relative; cursor: pointer; display: block; }
.gtp-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.gtp-choice span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border, #cbd5e1);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--color-text-dark);
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.gtp-choice span::before {
    content: '';
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    flex-shrink: 0;
    box-sizing: border-box;
}
.gtp-choice input:checked + span { border: 2px solid var(--color-primary); background: #E0F1F9; padding: calc(0.85rem - 0.5px) calc(1rem - 0.5px); }
.gtp-choice input:checked + span::before { border: 5px solid var(--color-primary); }
.gtp-choice input:focus-visible + span { outline: 2.5px solid var(--color-primary); outline-offset: 2px; }

/* ── Pills (destination, stay) ───────────────────────────────── */
.gtp-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gtp-pill { position: relative; cursor: pointer; }
.gtp-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.gtp-pill span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--color-border, #cbd5e1);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--color-text-dark);
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.gtp-pill:hover span { border-color: var(--color-primary); }
.gtp-pill input:checked + span { border-color: var(--color-primary); background: #E0F1F9; color: #0A354B; font-weight: 500; }
.gtp-pill input:focus-visible + span { outline: 2.5px solid var(--color-primary); outline-offset: 2px; }

/* ── Treatment search ────────────────────────────────────────── */
.gtp-search { position: relative; }
.gtp-search__box { position: relative; border-radius: 8px; }
.gtp-search__box svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: #6b7280; pointer-events: none; }
.form-group .gtp-search__box input { padding-left: 2.4rem; }
.gtp-search__list {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(14,29,36,0.08);
    padding: 0.4rem 0;
    max-height: 320px;
    overflow-y: auto;
}
.gtp-search__list[hidden] { display: none; }
.gtp-search__group {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 0.4rem 0.9rem 0.25rem;
}
.gtp-search__group--ayur { color: #7D4A00; }
.gtp-search__opt { padding: 0.55rem 0.9rem; font-size: 0.95rem; color: var(--color-text-dark); cursor: pointer; }
.gtp-search__opt:hover, .gtp-search__opt.is-active { background: #E0F1F9; color: #0A354B; }
.gtp-search__opt--other { color: #6b7280; border-top: 1px solid var(--color-border, #e2e8f0); margin-top: 0.25rem; }

/* ── Phone with dialling code ────────────────────────────────── */
.gtp-phone { display: flex; align-items: stretch; }
.gtp-phone__isd {
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    border: 1.5px solid var(--color-border, #dde8e3);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #edf4f9;
    font-size: 0.92rem;
    color: var(--color-text-dark);
    white-space: nowrap;
}
.gtp-phone__isd[hidden] { display: none; }
.form-group .gtp-phone__isd:not([hidden]) + input { border-radius: 0 8px 8px 0; }
.gtp-phone input { flex: 1; min-width: 0; }

/* ── WhatsApp checkbox, consent ──────────────────────────────── */
.gtp-row-end { align-items: end; }
.gtp-check {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    padding: 0.7rem 0;
    cursor: pointer;
}
.gtp-check input, .gtp-consent input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--color-primary); }
.gtp-submit-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
    padding-top: 1.5rem;
}
.gtp-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
}
.gtp-consent input { margin-top: 0.15rem; }
.gtp-consent a { color: var(--color-primary); }
.gtp-submit-btn { width: auto; align-self: flex-start; padding: 0.9rem 1.75rem; font-size: 1.02rem; }

/* ── Drag-and-drop upload + file list ────────────────────────── */
.gtp-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px dashed #33B2F4;
    border-radius: 12px;
    background: #f5fafd;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.gtp-drop:hover, .gtp-drop.is-over { background: #E0F1F9; border-color: var(--color-primary); }
.gtp-drop[hidden] { display: none; }
.gtp-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.gtp-drop__main { font-size: 1rem; color: var(--color-text-dark); }
.gtp-drop__main u { color: var(--color-primary); }
.gtp-drop__sub { font-size: 0.85rem; color: #6b7280; }
.gtp-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.gtp-files[hidden] { display: none; }
.gtp-file {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    padding: 0.5rem 0.6rem 0.5rem 0.85rem;
    font-size: 0.92rem;
    color: var(--color-primary);
}
.gtp-file__name { flex-grow: 1; color: var(--color-text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtp-file__size { color: #6b7280; font-size: 0.85rem; flex-shrink: 0; }
.gtp-file__remove {
    width: 32px; height: 32px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
}
.gtp-file__remove:hover { background: #f1f5f9; color: #b42318; }

/* ── Errors ──────────────────────────────────────────────────── */
.gtp-error {
    margin: 0;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: #fdf0f0;
    border: 1px solid #f3c4c4;
    color: #b42318;
    font-size: 0.88rem;
}
.gtp-error[hidden] { display: none; }
.gtp-input-error {
    border-color: #e05252 !important;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12) !important;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.gtp-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 90px; }
.gtp-side__card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.94rem;
    color: var(--color-text-dark);
}
.gtp-next { display: flex; gap: 0.75rem; line-height: 1.5; color: var(--color-text-muted); }
.gtp-next strong { color: var(--color-text-dark); font-weight: 600; }
.gtp-next__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gtp-coord { display: flex; flex-direction: column; gap: 0.85rem; }
.gtp-coord[hidden] { display: none; }
.gtp-coord__who { display: flex; gap: 0.75rem; align-items: center; }
.gtp-coord__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #E0F1F9; }
.gtp-coord__initials { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--color-primary); }
.gtp-coord__text { display: flex; flex-direction: column; gap: 0.1rem; }
.gtp-coord__name { font-weight: 600; }
.gtp-coord__meta { font-size: 0.86rem; color: var(--color-text-muted); }
.gtp-coord__wa { justify-content: center; }
.gtp-coord__contact { font-size: 0.9rem; }
.gtp-coord__contact a { color: var(--color-text-dark); text-decoration: none; }
.gtp-coord__note { font-size: 0.84rem; color: #6b7280; }

/* ── WhatsApp in the header on phones (_Layout HeaderWhatsApp) ── */
.nav-wa { display: none; }

/* ── Thank-you page ──────────────────────────────────────────── */
.ty-section { padding: 3rem 0 4.5rem; background: #f5fafd; }
.ty-inner { max-width: 880px; display: flex; flex-direction: column; gap: 1.5rem; }
.ty-head { display: flex; gap: 1rem; align-items: center; }
.ty-tick {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ty-heading { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 500; color: var(--color-text-dark); line-height: 1.2; }
.ty-treatment { display: block; margin-top: 0.25rem; font-size: 1rem; color: var(--color-text-muted); }
.ty-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 1rem;
    line-height: 1.6;
}
.ty-card p { margin: 0; }
.ty-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.ty-grid > .ty-card:only-child { grid-column: 1 / -1; }
.ty-coord { gap: 0.85rem; }
.ty-card strong { font-weight: 600; color: var(--color-text-dark); }
.ty-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.1rem;
    border-radius: 12px;
    border: 0;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}
.ty-btn[hidden] { display: none; }
.ty-btn--primary { background: var(--color-primary); }
.ty-btn--wa { background: #059669; }
.ty-btn:hover { color: #fff; filter: brightness(0.95); }
.ty-upload {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.ty-upload[hidden] { display: none; }
.ty-upload .btn { align-self: flex-start; }
.ty-upload .btn[hidden] { display: none; }
.ty-done { margin: 0; padding: 0.7rem 0.9rem; border-radius: 8px; background: #ecfdf5; color: #065f46; font-size: 0.92rem; }
.ty-done[hidden] { display: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gtp-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .gtp-side { position: static; }
}
@media (max-width: 768px) {
    .gtp-hero { padding: 1.5rem 0 1rem; }
    .gtp-hero__heading { font-size: 1.75rem; margin-bottom: 0.4rem; }
    .gtp-hero__sub--desktop { display: none; }
    .gtp-hero__sub--mobile { display: block; }
    .gtp-body { padding: 0.5rem 0 3rem; }
    .gtp-card { padding: 1.25rem 1rem; border-radius: 14px; }
    .form-row, .gtp-choice-grid { grid-template-columns: 1fr; }
    .gtp-submit-btn { width: 100%; align-self: stretch; }
    .gtp-step2-actions { flex-direction: column; align-items: stretch; gap: 0.9rem; }
    .gtp-skip { text-align: center; }
    .gtp-drop__desktop { display: none; }
    .gtp-estimate__price { text-align: left; }
    .ty-actions, .ty-grid { grid-template-columns: 1fr; }

    /* WhatsApp sits in the header; no floating button over the form */
    .nav-wa {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        margin-right: 0.5rem;
        background: #059669;
        color: #fff;
        text-decoration: none;
        padding: 0.55rem 0.85rem;
        border-radius: 8px;
        font-size: 0.92rem;
        font-weight: 500;
    }
    .nav-wa:hover { color: #fff; }
    body.page-plan .whatsapp-float { display: none; }

    /* Header: WhatsApp replaces the "Free treatment plan" button here,
       so the bar fits a 390px screen without sideways scrolling */
    body.page-plan .nav-actions .btn-primary { display: none; }
}
