/* 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;
}

/* ── Modal shell: two panels ── */
.subscribe-modal {
    display: flex;
    width: 1060px;
    max-width: 96vw;
    max-height: 90vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    background: #f5f5f7;
}

/* ── Left panel ── */
.subscribe-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 24px;
    overflow-y: auto;
    background: #f5f5f7;
}

.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: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.subscribe-modal-subheading {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.subscribe-modal-subheading strong {
    color: #111;
}

/* ── Plan rows ── */
.subscribe-plan-row {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.subscribe-plan-row:hover {
    border-color: #999;
}

.subscribe-plan-row.selected {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.subscribe-plan-row-left .plan-lessons-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.subscribe-plan-row-left .plan-lessons-label span {
    font-weight: 400;
    color: #444;
}

.subscribe-plan-popular {
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

.subscribe-plan-row-right {
    text-align: right;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* 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 #e5e5e5;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s;
}

.subscribe-custom-row:hover {
    border-color: #999;
}

.subscribe-custom-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.subscribe-custom-label span {
    font-weight: 400;
    color: #444;
}

.subscribe-custom-desc {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* ── Checkout button ── */
.subscribe-checkout-btn {
    width: 100%;
    padding: 16px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    transition: background 0.15s;
}

.subscribe-checkout-btn:hover {
    background: #c53030;
}

/* ── Right panel ── */
.subscribe-right {
    width: 460px;
    flex-shrink: 0;
    background: #fff;
    padding: 32px 24px;
    overflow-y: auto;
    max-height: 90vh;
    position: relative;
    border-left: 1px solid #eee;
}

.subscribe-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #444;
    font-weight: 300;
    line-height: 1;
}

.subscribe-close:hover {
    color: #000;
}

/* Tutor profile strip */
.subscribe-tutor-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.subscribe-tutor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.subscribe-tutor-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.subscribe-tutor-stars {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.subscribe-tutor-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #2a9d5c;
    margin-top: 4px;
    font-weight: 600;
}

/* Schedule button */
.subscribe-schedule-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #111;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    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;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.subscribe-plan-section-label {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.subscribe-plan-section-link {
    font-size: 12px;
    color: #555;
    text-decoration: underline;
    cursor: pointer;
}

.subscribe-plan-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.subscribe-plan-detail-subtitle {
    font-size: 13px;
    color: #555;
    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: #edf7f1;
    color: #276749;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Feature list */
.subscribe-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.subscribe-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

/* Responsive: stack panels on small screens */
@media (max-width: 768px) {
    .subscribe-modal {
        flex-direction: column;
        max-height: 95vh;
        border-radius: 10px;
    }

    .subscribe-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
    }

    .subscribe-plan-row.selected::after {
        display: none;
    }
}
