@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Freckle+Face&display=swap');
:root {
    --grey: #515151;

    --bright-blue: #6B7DAC;
    --light-blue: #F4F7FE;
    --blue: #4A5F91;
    --blue10percent: #ffffffb3;
    --green: #33a44a;
    --light-green: #e6f9e8;
    --lavender: #f977d6;
    --lavender: #be469e;

    --screen-heigth: 100vh;

    --big-heading: 45px;
    --medium-heading: 25px;
    --small-heading: 16px;
}

/* Hero section */
#hero-section {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    padding: 0 1.5rem;
    height: var(--screen-heigth);
}
.texts{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: start;
    grid-row-start: 2;
    margin: 0 10%;
}
.texts h1 {
    margin: 0;
    font-size: var(--big-heading);
    opacity: .9;
}
.texts p {
    margin: 0;
    padding-bottom: 15px;
    font-size: var(--medium-heading);
    font-weight: 600;
    color: var(--grey);
}
.heroimage-container {
    grid-row: 1/3;
    margin: auto 0;
}
.heroimage-container img {
    width: min(100%, 800px);
    transform: translateY(70px) scaleX(-1);
    margin-left: 5%;
    margin-right: 4%;
}
.pbtn {
    background-color: var(--blue);
    color: var(--light-blue);
    width: 25%;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 20px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: background-color .2s, color .2s;
    margin-top: 16px;
}
.pbtn:hover {
    background-color: var(--light-blue);
    color: var(--blue);
}


/* --- CARD GRID --- */
.cards_grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

#plans-section {
    padding: 50px 0 80px 0;
    position: relative;
    overflow: hidden; /* Keeps the blobs inside */
    background-color: #f8fafd; /* Very light base */
    background-color: var(--grey);
    padding-bottom: 100px;
}
/* Floating Blobs */
.plans-section::before,
.plans-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: moveBlobs 20s infinite alternate;
}

.plans-section::before {
    background: var(--light-blue);
    top: -100px;
    left: -100px;
}

.plans-section::after {
    background: var(--lavender);
    bottom: 10%;
    right: -100px;
    animation-delay: -5s;
}

/* Watermark Layer */
.watermark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* This now spans the whole scrollable area */
    pointer-events: none;
    z-index: 1;
    opacity: 0.05; /* Keep it very subtle */
    color: var(--bright-blue);

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 icons across */
    grid-template-rows: repeat(6, 1fr);    /* 6 icons deep - adjusts to page height */
    gap: 20px;
    padding: 50px;
}

/* Make icons look "randomly" placed */
.watermark-bg i {
    font-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shift every second icon to the left and every third to the right for a "messy" look */
.watermark-bg i:nth-child(2n) { transform: translateX(-30px) rotate(15deg); }
.watermark-bg i:nth-child(3n) { transform: translateX(40px) rotate(-15deg); font-size: 60px; }
.watermark-bg i:nth-child(odd) { transform: translateY(20px); }

#plans-section h1 {
    text-align: center;
    font-size: var(--big-heading);
    margin-top: 50px;
    margin-bottom: 60px;
    color: var(--light-blue);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- CARD SYMMETRY --- */
.card {
    background: white;
    backdrop-filter: blur(40px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: min(370px, 27%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card.featured {
    border: 2px solid var(--lavender);
    transform: scale(1.02);
}

.card:hover {
    transform: translateY(-5px);
}

.highlighted {
    margin-top: -20px;
}

.card-content {
    padding-bottom: 20px;
}

.top-bar {
    padding: 12px 15px;
    text-align: center;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}
.top-bar h2 {
    margin: 0;
    font-size: var(--medium-heading);
}

.green { background-color: var(--green); }
.blue { background-color: var(--blue); }
.pink { background-color: var(--lavender); }

.price-container {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price {
    font-size: var(--big-heading);
    font-weight: 700;
    color: #333;
    margin: 0;
}

.mini-text {
    font-size: var(--small-heading);
    color: #777;
    margin: 0;
}

.benefits-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    text-align: center;
}

.benefits-list li {
    padding: 8px 0;
    color: #555;
    font-size: var(--small-heading);
}

.benefits-list i {
    margin-right: 10px;
    color: #555b55;
}

/* Button at the bottom of the card */
.plan-btn {
    width: 80%;
    margin: 0 auto 25px auto;
    padding: 12px;
    border: none;
    border-radius: 15px;
    background-color: var(--grey);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.plan-btn:hover { background-color: #555; }
.btn-blue { background-color: var(--blue); }
.btn-blue:hover { background-color: var(--bright-blue); }


/* --- MODAL STYLES (New) --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    backdrop-filter: blur(5px); /* Glass effect */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    display: none; /* Keep it hidden by default */
    background: white;
    width: 90%;
    max-width: 450px;
    max-height: 90vh; 
    margin: 5vh auto; 
    border-radius: 12px;
    position: relative;
    flex-direction: column;
    overflow: hidden; 
    animation: slideUp 0.3s ease-out;
}
/* Add a specific footer style for the fixed button */
.modal-footer {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #eee; /* Visual separator */
    flex-shrink: 0; /* Prevents footer from squishing */
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes moveBlobs {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.modal-header {
    padding: 30px 20px 20px;
    text-align: center;
    color: white;
}

.green-bg { background: linear-gradient(135deg, var(--green), #337650); }
.blue-bg { background: linear-gradient(135deg, var(--blue), #5b90c6); }
.pink-bg { background: linear-gradient(135deg, var(--lavender), #d63031); }

.modal-header i { font-size: 2rem; margin-bottom: 10px; }

/* Ensure the body is the only part that scrolls */
.modal-body {
    padding: 25px;
    overflow-y: auto; /* Enable vertical scrolling */
    flex-grow: 1; /* Allows body to take available space */
}
/* Make the scrollbar look cleaner */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}
.offer-icon {
    margin-left: 3px;
    font-size: 1.8rem;
    color: #e84393;
}
.offer-text {
    margin-left: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #444;
}
.offer-text p {
    margin: 5px 0;
    font-size: 0.95rem;
}
.small-outline-btn {
    margin: 8px 0 15px 10px;
    background: transparent;
    border: 1px solid #e84393;
    color: #e84393;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.modal-desc {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    margin-top: 0;
}

/* --- Green Modal Specifics --- */
.credit-package-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.credit-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.credit-card:hover {
    border-color: var(--green);
    background-color: #f6fff8;
}

/* When selected */
.credit-card input[type="radio"]:checked + .credit-info {
    color: var(--green);
}

.credit-card.active {
    border-color: var(--green);
    background-color: #f6fff8;
    box-shadow: 0 4px 12px rgba(51, 164, 74, 0.1);
}

.credit-info {
    display: flex;
    flex-direction: column;
}

.credit-amount {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--blue);
}

.credit-subtitle {
    font-size: 0.85rem;
    color: var(--grey);
}

.credit-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--green);
}

/* Feature List in Modal */
.modal-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-features li {
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-features i {
    color: var(--green);
    font-size: 1rem;
}

/* Blue Plan Selector */
.selector-container {
    text-align: center;
    margin-bottom: 30px;
}

.selector-container label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #44474d;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Hide the actual circular radio input */
.radio-option input[type="radio"] {
    display: none;
}

/* Design the text span as a custom pill button */
.radio-option span {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f0f3f9;
    color: var(--bright-blue);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect */
.radio-option:hover span {
    background-color: #E6EBF6;
}

/* Style for the SELECTED state using the :checked pseudo-class */
.radio-option input[type="radio"]:checked + span {
    background-color: var(--bright-blue);
    color: white;
    border-color: var(--bright-blue);
    box-shadow: 0 4px 12px rgba(107, 125, 172, 0.3);
    transform: translateY(-2px); /* Gives a subtle "lift" effect when selected */
}

.dynamic-price-area {
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 20px 0;
}
#blue-display-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bright-blue);
}

.modal-cta {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.green-btn { background-color: var(--green); }
.blue-btn { background-color: var(--blue); }
.pink-btn { background-color: var(--lavender); }

.trial-text {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

/* Container for the options */
.group-option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: left;
    transition: transform 0.2s ease;
}

.group-option-card:hover {
    border-color: #f977d6; /* Using your lavender/pink accent */
    background-color: #fff9fe;
}

/* Highlight the custom squad option slightly more */
.group-option-card.highlight {
    background-color: #fcfcfc;
    border-left: 4px solid #f977d6;
}

.option-icon {
    font-size: 1.5rem;
    color: #f977d6;
    background: #fff0f9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.option-content strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.option-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* Divider with text */
.modal-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    border-bottom: 1px solid #eee;
}

.modal-divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: bold;
}

.text-link {
    color: #f977d6;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* Modal specific CTA padding */
.cta-area {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}


/* --- NEW PINK MODAL STYLES --- */

/* The "Bring 2 Friends" Box */
.create-group-offer {
    background: #fff0f6; /* Light pink background */
    border: 1px dashed #e84393;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.offer-text { flex-grow: 1; }
.offer-text strong { display: block; font-size: 0.95rem; color: #d63031; }
.offer-text p { font-size: 0.8rem; margin: 0; color: #555; }

.small-outline-btn {
    background: transparent;
    border: 1px solid #e84393;
    color: #e84393;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.small-outline-btn:hover { background: #e84393; color: white; }

/* Tabs Navigation */
.schedule-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #e84393;
    border-bottom: 3px solid #e84393;
}

/* Group List Items */
.group-option {
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Hide default radio, style the container */
.group-option input { display: none; }

.time-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s;
}

/* When radio is checked */
.group-option input:checked + .time-info {
    border-color: #e84393;
    background-color: #fff0f6;
    font-weight: bold;
}

.level-tag {
    font-size: 0.75rem;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    color: #555;
}

/* DSICOUNT seciton */
.special-offers {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.offers-header h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.offers-header p {
    color: var(--grey);
    margin-bottom: 40px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(74, 95, 145, 0.1);
    border: 1px solid var(--light-blue);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-icon {
    font-size: 40px;
    color: var(--grey);
    margin-bottom: 5px;
}

.offer-card h3 {
    color: var(--blue);
    margin: 15px 0px;
    font-size: 1.5rem;
}

.discount-badge {
    background: var(--green);
    color: var(--light-green);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Referral Specific Styling */
.referral-split {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    background: var(--light-blue);
    padding: 15px;
    border-radius: 15px;
}

.split-item {
    display: flex;
    flex-direction: column;
}

.split-item strong {
    font-size: 0.8rem;
    color: var(--blue);
}

.split-discount {
    color: var(--lavender);
    font-weight: 800;
    font-size: 1.1rem;
}

.split-divider {
    width: 1px;
    height: 30px;
    background: rgba(74, 95, 145, 0.2);
}


@media (max-width: 1200px) {
    :root {
        --big-heading: 40px;
        --medium-heading: 22px;
        --small-heading: 14px;
    }

    .cards_grid {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: min(90%, 300px);
    }
    .highlighted {
        margin-top: 0;
    }

    #hero-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        padding: 2rem 1.5rem;
    }
    .heroimage-container {
        grid-row: 1;
        margin: 80px auto 15px auto;
        display: flex;
    }
    .heroimage-container img {
        margin: 0;
        transform: translateY(0) scaleX(-1);
        width: min(100%, 700px);
    }
    .pbtn {
        width: 50%;
        margin: 0;
    }
    .texts {
        grid-row: 2;
        align-items: center;
        margin: 0;
    }
    .texts h1 {
        font-size: var(--big-heading);
        text-align: center;
    }
}

@media (max-height: 850px) {
    .modal-header { padding: 15px 10px; }
    .modal-header i { font-size: 1.5rem; }
    .modal-body { padding: 15px; }    
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .watermark-bg {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 1fr);
        padding: 20px;
    }
    .watermark-bg i { font-size: 60px; }
}