/* subscribe_modal.css — local_lat_findtutors
 * Styles for the two-panel subscription / plans modal.
 */

/* ── Overlay ── */
.subscribe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    font-family: "Poppins", sans-serif;
    height: 100vh;
}

.checkout-nav {
    padding: 16px 24px;
    border-bottom: 1px solid #DCDCE5;
    background: var(--bg);
}

.currency_dropdown {
    border: 2px solid #DCDCE5;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    position: relative;
    gap: 12px;
    align-items: center;
    display: flex;
}

/* ── Modal shell: two panels ── */
.subscribe-modal {
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    background: #fff;
    width: 100vw;
    height: 100%;
    background: #F4F4F8;
}

.subscribe-boxes {
    gap: 48px;

    position: relative;
    overflow: auto;
    height: 100%;
}

body.subscribe-modal-open {
    overflow: hidden;
}

body.subscribe-modal-open .subscribe-overlay {
    top: var(--subscribe-navbar-bottom, 105px);
    bottom: 0;
    height: auto;
    background: #F4F4F8;
}

body.subscribe-modal-open .subscribe-modal {
    min-height: 100%;
}

/* ── Left panel ── */
.subscribe-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 48px 0 64px;
    overflow-y: auto;
    background: #fff;
    overflow-x: hidden;
}

.subscribe-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.subscribe-modal-header-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.subscribe-modal-heading {
    font-size: 25px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.subscribe-modal-subheading {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

.subscribe-modal-subheading strong {
    color: #111;
}

/* ── Plan rows ── */
.subscribe-plan-row {
    background: #fff;
    border: 2px solid #DCDCE5;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.plan-lessons-label strong,
.subscribe-plan-row-details strong {
    font-weight: 600 !important;
}

.plan-lessons-label {
    font-size: 19px;
    font-weight: 600 !important;
    color: var(--text);
    margin-bottom: 4px;
}

.subscribe-plan-row:hover {
    border-color: #999;
}

.subscribe-plan-row.selected {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}


.plan-lessons-label span {
    font-weight: 500;
    font-size: 16px;
    color: var(--text)
}

.subscribe-plan-popular {
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

.subscribe-plan-row-details {
    text-align: left;
    font-size: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Arrow indicator on selected row */
.subscribe-plan-row.selected::after {
    content: '›';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #111;
    font-weight: 700;
}

/* ── Custom plan row ── */
.subscribe-custom-row {
    background: #fff;
    border: 2px solid #DCDCE5;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;

    img {
        height: 50px;
    }
}

.subscribe-custom-row:hover {
    border-color: #121117;
}

.subscribe-custom-row.selected {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.subscribe-custom-row.selected::after {
    content: '›';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #111;
    font-weight: 700;
}

.subscribe-custom-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text)
}

.subscribe-custom-label span {
    font-weight: 500;
    color: var(--text);
    font-size: 16px;
}

.subscribe-custom-desc {
    font-size: 16px;
    color: var(--text);
    margin-top: 8px;
}

/* ── Checkout button ── */
.subscribe-checkout-btn:hover {
    background: rgba(255, 88, 60, 1) !important;
}

.subscribe-btn-wrapper {
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: left;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    cursor: pointer;
    margin-top: auto;
    margin-left: -64px;
    width: calc(100% + 128px);
    overflow: hidden;
}

.subscribe-checkout-btn {
    width: 100%;
    height: 49px;
    background: var(--accent);
    color: #fff;
    border: 2px solid #121117;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;


    transition: background 0.15s;

}

.subscribe-checkout-btn:hover {
    background: var(--accent);
}

/* ── Right panel ── */
.subscribe-right {
    flex: 1;
    flex-shrink: 0;
    background: #F4F4F8;
    overflow-y: auto;
    position: relative;
    border-left: 1px solid #eee;
    margin-right: 55px;
    scrollbar-width: none;
}

.subscribe-close {
    position: absolute;
    top: 38px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #444;
    font-weight: 300;
    line-height: 1;
}

.subscribe-close:hover {
    color: #000;
}

/* Tutor profile strip */
.subscribe-tutor-strip {
    margin-bottom: 24px;
    border: 1px solid #DCDCE5;
    border-radius: 8px;
    padding: 25px;
    background: var(--bg);
}

.subscribe-tutor-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.subscribe-tutor-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sub_tutor_rating {
    font-weight: 500;
    font-size: 16px;
    color: var(--text);
}

.sub_tutor_reviews {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    width: auto;
}

.subscribe-tutor-strip .profile-details-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.subscribe-tutor-strip .top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.subscribe-tutor-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text);
    margin-top: 0;
    font-weight: 400;
    white-space: nowrap;
}

.subscribe-tutor-strip .container-details-profile .lat-language-speak {
    font-size: 14px;
    color: #4D4C5C;
}

.subscribe-tutor-strip .bottom-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-tutor-strip .lat-reviews-trigger:hover,
.subscribe-tutor-strip .lat-reviews-trigger:focus {
    color: #121117;
}

.sub_tutor_reviews_label {
    text-decoration: underline;
}

/* Schedule button */
.subscribe-schedule-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--text);
    background: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text);
    margin-bottom: 24px;
    transition: background 0.15s;
}

.subscribe-schedule-btn:hover {
    background: #f5f5f7;
}

/* Learning plan section */
.subscribe-plan-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.subscribe-plan-section-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text)
}

.subscribe-plan-section-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: inherit;
    color: var(--text);
    text-decoration: underline;
    cursor: pointer;
}

.subscribe-plan-section-link:hover,
.subscribe-plan-section-link:focus {
    color: var(--text);
    text-decoration: underline;
}

.subscribe-plan-section-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── "See how your plan works" nested dialog ── */
.subscribe-plan-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: 24px;
    background: rgba(17, 17, 24, 0.50);
    font-family: "Poppins", sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.subscribe-plan-help-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease;
}

.subscribe-overlay.plan-help-open {
    overflow: hidden !important;
}

.subscribe-overlay.plan-help-open .subscribe-boxes {
    overflow: hidden;
}

.subscribe-plan-help-dialog {
    position: relative;
    box-sizing: border-box;
    width: min(715px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 72px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    color: var(--text);
    transform: translateY(10px) scale(0.99);
    transition: transform 180ms ease;
}

.subscribe-plan-help-overlay.is-open .subscribe-plan-help-dialog {
    transform: translateY(0) scale(1);
}

.subscribe-plan-help-close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #121117;
    font-family: inherit;
    font-size: 35px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.subscribe-plan-help-close:hover,
.subscribe-plan-help-close:focus {
    background: #f4f4f8;
    color: #121117;
}

.subscribe-plan-help-close:focus-visible {
    outline: 2px solid #121117;
    outline-offset: 1px;
}

.subscribe-plan-help-title {
    flex: 0 0 auto;
    margin: 0 0 16px;
    color: #121117;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    font-family: "Platform";
}

.subscribe-plan-help-accordion {
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.subscribe-plan-help-item {
    border-bottom: 1px solid #dcdce5;
}

.subscribe-plan-help-trigger {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 57px;
    padding: 11px 4px 11px 0;
    border: 0;
    background: transparent;
    color: #121117;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.subscribe-plan-help-trigger:hover,
.subscribe-plan-help-trigger:focus {
    background: transparent;
    color: #121117;
}

.subscribe-plan-help-trigger:focus-visible {
    outline: 2px solid #121117;
    outline-offset: -2px;
    border-radius: 3px;
}

.subscribe-plan-help-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: 60% 60%;
    transition: transform 200ms ease;
}

.subscribe-plan-help-trigger[aria-expanded="true"] .subscribe-plan-help-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.subscribe-plan-help-panel {
    display: none;
}

.subscribe-plan-help-copy {
    padding: 0 4px 17px 0;
    color: #121117;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.subscribe-plan-help-copy strong {
    color: #121117;
    font-weight: 700;
}

.subscribe-plan-detail-title {
    font-size: 27px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.subscribe-plan-detail-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 16px;
}

.subscribe-plan-detail-subtitle strong {
    color: #111;
}

/* Flexible plan chip */
.subscribe-flexible-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #D8F8F2;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Feature list */
.subscribe-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 400;
}

.subscribe-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    /* border: 1.5px solid #ccc; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    background: #F4F4F4;
}

.tsubs-thw-custom-header h4 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 16px;
    color: #121117;
}

.tsubs-thw-lesson-dropdown-wrapper {
    position: relative;
    margin-bottom: 24px;
}


.tsubs-thw-lesson-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 12px;
    border: 1.5px solid #dcdce5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tsubs-thw-trigger-val {
    font-size: 20px;
    font-weight: 700;
    color: #ff2500;
}

.tsubs-thw-trigger-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.tsubs-thw-lesson-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eaeaef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
}

.tsubs-thw-lesson-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f7;
}

.tsubs-thw-item-left,
.tsubs-thw-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsubs-thw-item-label {
    font-size: 14px;
    font-weight: 500;
    color: #4d4c5c;
}

.tsubs-thw-item-price-side {
    font-size: 14px;
    font-weight: 700;
    color: #121117;
}

.tsubs-thw-hidden {
    display: none !important;
}

.tsubs-thw-pricing-grid {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid #eaeaef;
    border-bottom: 1px solid #eaeaef;
}

.tsubs-thw-price-col:first-child {
    border-right: 1px solid #eaeaef;
    padding-right: 20px;
}

.tsubs-thw-grid-price-val,
.tsubs-thw-grid-total-val {
    font-size: 22px;
    font-weight: 700;
    color: #121117;
    margin-bottom: 4px;
}

.tsubs-thw-grid-label {
    font-size: 14px;
    color: #4d4c5c;
}

.tsubs-thw-price-col:last-child {
    padding-left: 20px;
}

.tsubs-thw-price-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tsubs-thw-grid-label {
    font-size: 14px;
    color: #4d4c5c;
}


/* Responsive: stack panels on small screens */
@media (max-width: 992px) {
    .subscribe-boxes {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .subscribe-overlay {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        align-items: flex-start;
    }

    .subscribe-modal {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .subscribe-boxes {
        display: block !important;
        height: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }

    body.subscribe-modal-open .subscribe-overlay {
        top: var(--subscribe-navbar-bottom, 72px);
        height: auto;
    }

    .subscribe-left {
        padding: calc(48px + env(safe-area-inset-top, 0px)) 20px 24px;
        overflow: visible;
    }

    .subscribe-right {
        width: 100%;
        margin-right: 0;
        border-left: none;
        border-top: 1px solid #eee;
        overflow: visible;
    }

    .subscribe-plan-row.selected::after,
    .subscribe-custom-row.selected::after {
        display: none;
    }

    .subscribe-btn-wrapper {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
        z-index: 2;
        background: #fff;
    }

    .subscribe-modal-header {
        gap: 0;
    }

    .subscribe-close {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 16px;
        z-index: 3;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 50%;
    }

    .subscribe-plan-help-overlay {
        align-items: flex-end;
        padding: 0 8px;
    }

    .subscribe-plan-help-dialog {
        width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
        max-height: calc(100dvh - 16px);
        padding: 48px 16px 16px 16px;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
        transform: translateY(22px);
    }

    .subscribe-plan-help-overlay.is-open .subscribe-plan-help-dialog {
        transform: translateY(0);
    }

    .subscribe-plan-help-close {
        top: 4px;
        right: 3px;
        width: 24px;
        height: 24px;
    }

    .subscribe-plan-help-title {
        margin: 4px 0 11px;
        font-size: 24px;
        line-height: 1.25;
    }

    .subscribe-plan-help-chevron {
        width: 5px;
        height: 5px;
        flex-basis: 5px;
        margin-right: 2px;
        border-width: 0 1px 1px 0;
    }

    .subscribe-plan-help-copy {
        padding: 1px 4px 12px 0;
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subscribe-plan-help-overlay,
    .subscribe-plan-help-dialog,
    .subscribe-plan-help-chevron {
        transition: none;
    }
}
