
/*
==================================================
TurnOnLearning — Pricing Page
Bright, Clean & Professional Design
==================================================
*/

.pricing-page {
    --pricing-blue: #2563eb;
    --pricing-blue-dark: #1746a2;
    --pricing-navy: #17345d;
    --pricing-muted: #64748b;
    --pricing-pink: #db2777;
    --pricing-green: #16a34a;

    width: 100%;
    min-height: 70vh;
    padding: 45px 20px 55px;

    
    background: linear-gradient(
        120deg,
        #eaf5ff 0%,
        #f7fbff 35%,
        #fff3f8 65%,
        #edf6ff 100%
    );


    color: var(--pricing-navy);
}

.pricing-page *,
.pricing-page *::before,
.pricing-page *::after {
    box-sizing: border-box;
}

.pricing-page__container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

/*
==================================================
ΚΕΝΤΡΙΚΗ ΕΙΣΑΓΩΓΗ
==================================================
*/

.pricing-page__header {
    max-width: 760px;
    margin: 0 auto 25px;
    text-align: center;
}

.pricing-page__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #3979c8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pricing-page__title {
    margin: 0 0 10px;
    color: #17345d;
    font-size: clamp(1.9rem, 3.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.pricing-page__description {
    max-width: 650px;
    margin: 0 auto;
    color: #657b94;
    font-size: 0.97rem;
    line-height: 1.65;
}

/*
==================================================
ΚΑΡΤΑ ΕΠΙΛΟΓΗΣ
==================================================
*/

.pricing-selector {
    padding: 25px 29px 28px;
    border: 1px solid #dce7f4;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(35, 73, 122, 0.055);
}

/*
==================================================
BUILD YOUR LEARNING SELECTION
==================================================
*/

.pricing-selector__header {
    margin-bottom: 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e5edf7;
}

.pricing-selector__header h2 {
    margin: 0 0 7px;
    color: #1e477f;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.pricing-selector__header p {
    margin: 0;
    color: #637d9c;
    font-size: 0.93rem;
    line-height: 1.55;
}

.pricing-selector__header::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 14px;
    border-radius: 10px;
    background: #3b82f6;
}

/*
==================================================
DROPDOWN FIELDS
==================================================
*/

.pricing-selector__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 23px;
}

.pricing-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.pricing-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b5271;
    font-size: 0.88rem;
    font-weight: 700;
}

/*
==================================================
NATIVE SELECT
==================================================
*/

.pricing-field select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d5e2f2;
    border-radius: 12px;
    background: #f8fbff;
    color: #233b59;
    font-family: inherit;
    font-size: 0.92rem;
}

.pricing-field select:focus-visible {
    outline: 3px solid #bfdbfe;
    outline-offset: 2px;
}

/*
==================================================
CUSTOM DROPDOWNS
Διατηρείται το εγκεκριμένο design
==================================================
*/

.pricing-custom-select {
    position: relative;
    width: 100%;
}

.pricing-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 49px;
    padding: 12px 15px;
    border: 1px solid #d3e1f2;
    border-radius: 13px;
    background: #f8fbff;
    color: #233b59;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 550;
    text-align: left;
    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}

.pricing-custom-select__trigger:hover:not(:disabled) {
    border-color: #90b9f4;
    background: #ffffff;
}

.pricing-custom-select__trigger:focus-visible {
    outline: 3px solid #bfdbfe;
    outline-offset: 2px;
}

.pricing-custom-select__trigger:disabled {
    background: #f1f5f9;
    color: #9aa8ba;
    cursor: not-allowed;
}

.pricing-custom-select__trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pricing-custom-select__chevron {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #6484a8;
    transition: transform 0.2s;
}

.pricing-custom-select.is-open
.pricing-custom-select__chevron {
    transform: rotate(180deg);
}

.pricing-custom-select.is-open
.pricing-custom-select__trigger {
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

/*
==================================================
CUSTOM DROPDOWN MENU
==================================================
*/

.pricing-custom-select__menu {
    position: absolute;
    z-index: 100;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    max-height: 255px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #dce8f6;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 15px 38px rgba(31, 65, 111, 0.15);
}

.pricing-custom-select__menu[hidden] {
    display: none !important;
}

.pricing-custom-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    margin: 2px 0;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #344c69;
    font: inherit;
    font-size: 0.89rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.pricing-custom-select__option:hover,
.pricing-custom-select__option:focus-visible {
    outline: none;
    background: #edf5ff;
    color: #1d4ed8;
}

.pricing-custom-select__option.is-selected {
    background: #e8f1ff;
    color: #1d4ed8;
    font-weight: 750;
}

.pricing-custom-select__option.is-selected::after {
    content: "✓";
    color: #2563eb;
    font-weight: 800;
}

.pricing-custom-select__menu::-webkit-scrollbar {
    width: 7px;
}

.pricing-custom-select__menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c6d9f1;
}

/*
==================================================
YOUR SELECTION
==================================================
*/

.pricing-summary {
    margin-top: 18px;
    padding: 23px 28px;
    border: 1px solid #dce7f4;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(35, 73, 122, 0.055);
}

.pricing-summary[hidden] {
    display: none !important;
}

.pricing-summary__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.pricing-summary__details {
    flex: 1;
    min-width: 0;
}

.pricing-summary__heading {
    margin: 0 0 15px;
    color: #1e477f;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/*
Μπλε γραμμή κάτω από το Your Selection
*/

.pricing-summary__heading::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 12px;
    border-radius: 10px;
    background: #3b82f6;
}

#pricing-selected-title {
    margin: 0 0 9px;
    color: #17345d;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.4;
}

#pricing-selected-path {
    margin: 0 0 8px;
    color: #71839a;
    font-size: 0.91rem;
    line-height: 1.5;
}

#pricing-included-levels {
    margin: 0;
    color: #61758e;
    font-size: 0.87rem;
    line-height: 1.6;
}

#pricing-included-levels:empty {
    display: none;
}

/*
==================================================
TOTAL PRICE — ΜΙΚΡΟΤΕΡΟ ΜΕΓΕΘΟΣ
==================================================
*/

.pricing-summary__purchase {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    min-width: 230px;
}

.pricing-summary__price-label {
    color: #8c627b;
    font-size: 0.77rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.pricing-summary__price {
    color: #db2777;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/*
==================================================
PROCEED TO PAYMENT — ΠΡΑΣΙΝΟ
==================================================
*/

.pricing-summary__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 47px;
    padding: 11px 20px;
    border: none;
    border-radius: 11px;
    background: #16a34a;
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.pricing-summary__button:hover:not(:disabled) {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 7px 17px rgba(22, 163, 74, 0.2);
}

.pricing-summary__button:focus-visible {
    outline: 3px solid #86efac;
    outline-offset: 3px;
}

/*
Το κουμπί παραμένει πράσινο ακόμη και
όταν δεν έχει συνδεθεί με Checkout.
*/

.pricing-summary__button:disabled {
    background: #16a34a;
    color: #ffffff;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/*
==================================================
ΕΝΗΜΕΡΩΤΙΚΟ ΜΗΝΥΜΑ
==================================================
*/

.pricing-page__notice {
    max-width: 780px;
    margin: 22px auto 0;
    text-align: center;
}

.pricing-page__notice p {
    margin: 0;
    color: #7c90a8;
    font-size: 0.86rem;
    line-height: 1.6;
}

/*
==================================================
TABLET
==================================================
*/

@media (max-width: 768px) {
    .pricing-page {
        padding: 38px 16px 50px;
    }

    .pricing-selector {
        padding: 22px;
    }

    .pricing-selector__fields {
        gap: 17px;
    }

    .pricing-summary__content {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .pricing-summary__purchase {
        align-items: flex-start;
        width: 100%;
        min-width: 0;
    }

    .pricing-summary__button {
        max-width: 340px;
    }
}

/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 560px) {
    .pricing-page {
        padding: 32px 13px 45px;
    }

    .pricing-page__header {
        margin-bottom: 22px;
    }

    .pricing-page__title {
        font-size: 1.95rem;
    }

    .pricing-page__description {
        font-size: 0.92rem;
    }

    .pricing-selector {
        padding: 20px 17px;
        border-radius: 15px;
    }

    .pricing-selector__header {
        margin-bottom: 20px;
    }

    .pricing-selector__header h2 {
        font-size: 1.25rem;
    }

    .pricing-selector__fields {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pricing-summary {
        padding: 21px 18px;
        border-radius: 15px;
    }

    .pricing-summary__heading {
        font-size: 1.3rem;
    }

    .pricing-summary__price {
        font-size: 1.6rem;
    }

    .pricing-summary__button {
        max-width: none;
    }
}

/*
==================================================
ACCESSIBILITY
==================================================
*/

@media (prefers-reduced-motion: reduce) {
    .pricing-page *,
    .pricing-page *::before,
    .pricing-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
