/* ==========================================================================
   Mobile-First Responsive Styles
   Breakpoints: 576px (sm), 768px (md), 992px (lg), 1200px (xl)
   ========================================================================== */

/* Base Styles (Mobile First - < 576px) */
[v-cloak] {
    display: none;
}

/* Ensure all elements use border-box sizing */
.membership-card *,
.membership-card *::before,
.membership-card *::after {
    box-sizing: border-box;
}

/* Step Fade Animations */
.step {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gladstone_memberships {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.membership_selector {
    margin: 0 auto;
    position: relative;
}

.membership_selector h2 {
    font-size: 28px;
    font-weight: 700;
    color: #06477d;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.5px;
}

.step-1 h2,
.step-2 h2 {
    color: #ffffff;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    color: #06477d;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* STEP 1: Region Selection */
.region-selection {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.region-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.region-button {
    padding: 20px;
    background: linear-gradient(135deg, #009fe3 0%, #0075ad 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100%;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.region-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* STEP 2: Category Selection */
.category-selection {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.category-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.category-button-card {
    background: linear-gradient(135deg, #009fe3 0%, #0075ad 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 100px;
    justify-content: center;
}

.category-button-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-button-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* STEP 3: Membership Cards */
.membership-cards-section {

}

/* Two Column Layout Wrapper - Mobile stacked */
.membership-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
    align-items: flex-start;
}

.category-description-sidebar {
    flex: none;
    width: 100%;
    position: static;
}

h2.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: block;
    text-align: left;
    border-bottom: 2px solid #fff;
}

.category-description {
    padding: 0;
    border-radius: 12px;
}

.category-description h3,
.category-description h4 {
    color: #009fe3;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 26px;
    font-weight: 700;
}

.category-description p {
    line-height: 1.7;
    color: #fff;
    margin-bottom: 16px;
}

.category-description ul {
    margin: 15px 0;
    padding-left: 25px;
}

.category-description li {
    margin-bottom: 5px;
    line-height: 16px;
    color: #fff;
}

/* Location Selector - Mobile stacked */
.location-selector {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-selector .subtitle {
    text-align: left;
    font-size: 16px;
    color: #06477d;
    margin: 0;
    font-weight: 500;
    white-space: normal;
}

.location-selector label {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #06477d;
    margin-bottom: 0;
}

.location-selector select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.location-selector select:hover {
    border-color: #009fe3;
}

.location-selector select:focus {
    outline: none;
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

/* Membership Cards Slider */
.membership-cards-slider {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.slider-container {
    position: relative;
    padding: 0 0 45px 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.slider-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 20px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.slider-track:active {
    cursor: grabbing;
}

.membership-card {
    background: #0075ad;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    transform: scale(0.9);
    cursor: pointer;
}

.membership-card:hover:not(.active) {
    transform: scale(0.9);
}

.membership-card {
    position: relative;
}

.membership-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;                       /* start hidden */
    transition: opacity 0.5s ease;    /* fade effect */
}

.membership-card:has(+ .active):after {
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 60%, rgba(255, 255, 255, 0) 100%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    pointer-events: none;
}

.membership-card.active + .membership-card:after {
    background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 60%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    pointer-events: none;
}

.membership-card.active {
    opacity: 1;
    transform: scale(0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 2;
    position: relative;
    cursor: default;
}

.card-header {
    padding: 45px 20px 0 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.card-header h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.card-body {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.contract-type-selector {
    margin-bottom: 30px;
}

.contract-type-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.contract-type-selector select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    color: #06477d;
    transition: all 0.3s ease;
    font-weight: 500;
    box-sizing: border-box;
}

.contract-type-selector select:hover {
    border-color: #009fe3;
}

.contract-type-selector select:focus {
    outline: none;
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

/* Payment Date Selector (same styling as contract type) */
.payment-date-selector {
    margin-bottom: 0;
}

.payment-date-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.payment-date-selector select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #06477d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-sizing: border-box;
}

.payment-date-selector select:hover {
    border-color: #009fe3;
}

.payment-date-selector select:focus {
    outline: none;
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.price-display {
    padding: 0;
    text-align: left;
    margin: 0;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #06477d;
    letter-spacing: -1px;
}

.price-loading {
    font-size: 18px;
    color: #666;
    font-style: italic;
    font-weight: 500;
}

.membership-content {
    margin-top: 20px;
    line-height: 1.6;
}

.membership-content h3,
.membership-content h4 {
    color: #06477d;
    margin-top: 20px;
}

.membership-content ul {
    padding-left: 25px;
}

.membership-content li {
    margin-bottom: 8px;
}

.card-footer {
    padding: 10px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.btn-join-now {
    display: inline-block;
    padding: 12px;
    background: linear-gradient(135deg, #009fe3 0%, #0075ad 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
    letter-spacing: 0.5px;
}

.btn-join-now:hover {
    background: linear-gradient(135deg, #06477d 0%, #004a6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
}

.btn-join-now.disabled {
    background: transparent;
    cursor: not-allowed;
    color: #004a6b;
    box-shadow: none;
}

.btn-join-now.disabled:hover {
    transform: none;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    background: linear-gradient(135deg, #009fe3 0%, #0075ad 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    bottom: 15px;
    top: auto;
}

.slider-arrow span {
    position: absolute;
    top: calc(50% - 3px);
    left: calc(50% + 1px);
    transform: translate(-50%, -50%);
}

.slider-arrow:hover {
    background: linear-gradient(135deg, #06477d 0%, #004a6b 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(0, 159, 227, 0.4);
}

.slider-arrow:active {
    transform: scale(1.05);
}

.slider-arrow-prev {
    left: 0;
}

.slider-arrow-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-dot.active {
    background: linear-gradient(135deg, #009fe3 0%, #0075ad 100%);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 159, 227, 0.4);
}

.slider-dot:hover {
    background-color: #009fe3;
    transform: scale(1.2);
}

.no-memberships {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-top: 40px;
    border: 2px dashed #ddd;
}

.no-memberships p {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   Mobile/Tablet Overflow Fixes (below 1200px)
   ========================================================================== */
@media (max-width: 1199px) {
    .membership-cards-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .membership-content-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .membership-cards-slider {
        max-width: 100%;
        overflow: hidden;
    }
}

/* ==========================================================================
   Small devices (landscape phones, 576px and up)
   ========================================================================== */
@media (min-width: 576px) {
    .membership_selector h2 {
        font-size: 32px;
    }

    .region-selection {
        max-width: 700px;
    }

    .category-selection {
        max-width: 700px;
    }

    .region-buttons {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .region-button {
        min-width: 200px;
        padding: 22px;
        min-height: 110px;
    }

    .category-button-card {
        padding: 22px;
        min-height: 110px;
    }

    .category-button-card h3 {
        font-size: 19px;
    }

    h2.category-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .card-header h3 {
        font-size: 26px;
    }

    .card-body {
        padding: 22px;
    }

    .btn-join-now {
        padding: 10px;
        font-size: 16px;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .slider-arrow-prev {
        left: 4%;
    }

    .slider-arrow-next {
        right: 4%;
    }
}

/* ==========================================================================
   Medium devices (tablets, 768px and up)
   ========================================================================== */
@media (min-width: 768px) {
    .membership_selector h2 {
        font-size: 36px;
    }

    .region-selection {
        max-width: 900px;
    }

    .category-selection {
        max-width: 900px;
    }

    .region-button {
        font-size: 19px;
        padding: 25px;
        min-height: 140px;
    }

    .category-buttons {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .category-button-card {
        padding: 25px;
        min-height: 140px;
    }

    .category-button-card h3 {
        font-size: 20px;
    }

    .category-icon {
        width: 55px;
        height: 55px;
    }

    /* Two-column layout starts at tablet */
    .membership-content-wrapper {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }

    .category-description-sidebar {
        flex: 0 0 300px;
        position: sticky;
        top: 20px;
    }

    h2.category-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .category-description h3,
    .category-description h4 {
        font-size: 30px;
    }

    /* Location selector - horizontal layout */
    .location-selector {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 25px 20px;
        margin: 40px 0;
    }

    .location-selector .subtitle {
        text-align: center;
        font-size: 18px;
        white-space: nowrap;
    }

    .location-selector label {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        font-size: 16px;
    }

    .location-selector select {
        max-width: 400px;
    }

    .slider-container {
        padding: 0 30px;
    }

    .slider-track {
        gap: 10px;
    }

    .slider-dots {
        position: static;
        transform: none;
        margin-top: 35px;
        bottom: auto;
    }

    .membership-card {
        flex: 0 0 90%;
        width: auto;
        transform: scale(0.9);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .membership-card:hover:not(.active) {
        transform: scale(0.92);
    }

    .membership-card.active {
        opacity: 1;
        transform: scale(1);
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .slider-arrow:hover {
        transform: translateY(-50%) scale(1.15);
    }

    .slider-arrow:active {
        transform: translateY(-50%) scale(1.05);
    }

    .slider-arrow-prev {
        left: 15px;
    }

    .slider-arrow-next {
        right: 15px;
    }

    .card-header {
        padding: 45px 15px 15px 15px;
    }

    .card-header h3 {
        font-size: 28px;
    }

    .card-body {
        padding: 15px;
    }

    .price {
        font-size: 18px;
    }

    .card-footer {
        padding: 15px;
    }

    .btn-join-now {
        padding: 7px;
        font-size: 16px;
    }

    .no-memberships {
        padding: 60px 30px;
    }

    .no-memberships p {
        font-size: 20px;
    }
}

/* ==========================================================================
   Large devices (desktops, 992px and up)
   ========================================================================== */
@media (min-width: 992px) {
    .membership_selector h2 {
        font-size: 40px;
    }

    .region-selection {
        max-width: 1000px;
    }

    .category-selection {
        max-width: 1000px;
    }

    .region-button {
        font-size: 20px;
        min-height: 150px;
    }

    .category-button-card {
        min-height: 150px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .membership-content-wrapper {
        gap: 30px;
        margin: 30px 0;
    }

    .category-description-sidebar {
        flex: 0 0 33.333%;
    }

    h2.category-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .location-selector {
        padding: 28px 25px;
    }

    .location-selector .subtitle {
        font-size: 19px;
    }

    .location-selector label {
        font-size: 17px;
        gap: 12px;
    }

    .location-selector select {
        max-width: 430px;
    }

    .slider-container {
        padding: 0 45px;
    }

    .membership-card {
        flex: 0 0 85%;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }

    .slider-arrow-prev {
        left: 20px;
    }

    .slider-arrow-next {
        right: 20px;
    }

    .card-header {
        padding: 45px 20px 15px 20px;
    }

    .card-header h3 {
        font-size: 30px;
    }

    .card-body {
        padding: 20px;
    }

    .price {
        font-size: 28px;
    }

    .card-footer {
        padding: 15px 30px;
    }

    .btn-join-now {
        padding: 15px;
        font-size: 18px;
    }

    .no-memberships {
        padding: 70px 35px;
    }
}

/* ==========================================================================
   Extra large devices (large desktops, 1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
    .membership_selector h2 {
        font-size: 42px;
    }

    .category-description-sidebar {
        flex: 0 0 33.333%;
    }

    h2.category-title {
        font-size: 32px;
    }

    .location-selector {
        padding: 30px;
    }

    .location-selector .subtitle {
        font-size: 20px;
    }

    .location-selector label {
        font-size: 18px;
        gap: 15px;
    }

    .location-selector select {
        max-width: 450px;
    }

    .slider-container {
        padding: 0 55px;
    }

    .membership-card {
        flex: 0 0 60%;
    }

    .slider-arrow {
        width: 55px;
        height: 55px;
        font-size: 50px;
    }

    .slider-arrow-prev {
        left: 25px;
    }

    .slider-arrow-next {
        right: 25px;
    }

    .card-header {
        padding: 45px 30px 0 30px;
    }

    .card-header h3 {
        font-size: 32px;
    }

    .card-body {
        padding: 30px;
    }

    .price {
        font-size: 30px;
    }

    .card-footer {
        padding: 15px 30px;
    }

    .btn-join-now {
        padding: 15px;
        font-size: 18px;
    }

    .no-memberships {
        padding: 80px 40px;
    }
}
