/* ==========================================================================
   Sanmarg Prakashan - Dedicated Styles for Plans & Memberships
   File: plans-membership.css
   ========================================================================== */

:root {
    --sp-theme-red: #b42231;
    --sp-theme-red-hover: #981725;
    --sp-theme-red-subtle: rgba(180, 34, 49, 0.06);
    --sp-theme-red-border: rgba(180, 34, 49, 0.16);
    --sp-theme-saffron: #f4801f;
    --sp-theme-gold: #c8963e;
    --sp-text-dark: #1e293b;
    --sp-text-body: #334155;
    --sp-text-muted: #64748b;
    --sp-card-bg: #ffffff;
    --sp-bg-warm: #faf7f2;
    --sp-border: #e2e8f0;
    --sp-border-subtle: #f1f5f9;
    --sp-shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.05);
    --sp-shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --sp-shadow-hover: 0 16px 36px -6px rgba(180, 34, 49, 0.16), 0 6px 16px -3px rgba(0, 0, 0, 0.04);
    --sp-radius: calc(18 * 100vw / 1705);
    --sp-radius-sm: calc(10 * 100vw / 1705);
}

/* ==========================================================================
   PLANS & MEMBERSHIPS STYLING
   ========================================================================== */

.plan-page-wrapper {
    background: linear-gradient(180deg, #faf7f2 0%, #ffffff 380px, #ffffff 100%);
    padding: calc(55 * 100vw / 1705) 0 calc(80 * 100vw / 1705);
}

/* Hero Badge */
.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(8 * 100vw / 1705);
    background: var(--sp-theme-red-subtle);
    color: var(--sp-theme-red);
    border: 1px solid var(--sp-theme-red-border);
    padding: calc(6 * 100vw / 1705) calc(16 * 100vw / 1705);
    border-radius: 999px;
    font-size: var(--fs-13);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: calc(12 * 100vw / 1705);
}

.plan-hero-header {
    text-align: center;
    margin-bottom: calc(45 * 100vw / 1705);
}

.plan-hero-header h1 {
    font-size: var(--fs-34);
    font-weight: 700;
    color: var(--sp-text-dark);
    margin-bottom: calc(10 * 100vw / 1705);
}

.plan-hero-header p {
    font-size: var(--fs-16);
    color: var(--sp-text-muted);
    max-width: calc(600 * 100vw / 1705);
    margin: 0 auto;
}

/* Plans Grid */
.plans-grid-row {
    row-gap: calc(30 * 100vw / 1705);
}

.sp-plan-card {
    background: var(--sp-card-bg);
    border: 1.5px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: calc(36 * 100vw / 1705) calc(30 * 100vw / 1705);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sp-shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sp-plan-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(5 * 100vw / 1705);
    background: linear-gradient(90deg, var(--sp-theme-red), var(--sp-theme-saffron));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sp-plan-card:hover {
    transform: translateY(calc(-8 * 100vw / 1705));
    border-color: var(--sp-theme-red-border);
    box-shadow: var(--sp-shadow-hover);
}

.sp-plan-card:hover::after {
    opacity: 1;
}

.sp-plan-card.featured-card {
    border-color: var(--sp-theme-red);
    box-shadow: 0 16px 36px -4px rgba(180, 34, 49, 0.18);
}

.sp-plan-card.featured-card::after {
    opacity: 1;
}

.sp-plan-badge {
    position: absolute;
    top: calc(18 * 100vw / 1705);
    right: calc(20 * 100vw / 1705);
    background: linear-gradient(135deg, var(--sp-theme-red) 0%, var(--sp-theme-saffron) 100%);
    color: #ffffff;
    font-size: var(--fs-11);
    font-weight: 700;
    text-transform: uppercase;
    padding: calc(4 * 100vw / 1705) calc(12 * 100vw / 1705);
    border-radius: 999px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(180, 34, 49, 0.25);
}

.sp-plan-title {
    font-size: var(--fs-22);
    font-weight: 700;
    color: var(--sp-text-dark);
    margin-bottom: calc(14 * 100vw / 1705);
    padding-right: calc(50 * 100vw / 1705);
    line-height: 1.3;
}

.sp-plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: calc(8 * 100vw / 1705);
    margin-bottom: calc(8 * 100vw / 1705);
}

.sp-plan-price {
    font-size: var(--fs-38);
    font-weight: 800;
    color: var(--sp-theme-red);
    line-height: 1;
}

.sp-plan-info {
    display: inline-flex;
    align-items: center;
    gap: calc(6 * 100vw / 1705);
    font-size: var(--fs-13-5);
    font-weight: 600;
    color: var(--sp-theme-gold);
    background: rgba(200, 150, 62, 0.08);
    border: 1px solid rgba(200, 150, 62, 0.2);
    padding: calc(4 * 100vw / 1705) calc(12 * 100vw / 1705);
    border-radius: 999px;
    margin-bottom: calc(22 * 100vw / 1705);
}

.sp-plan-description {
    font-size: var(--fs-14-5);
    color: var(--sp-text-body);
    line-height: 1.7;
    margin-bottom: calc(24 * 100vw / 1705);
    flex-grow: 1;
}

.sp-plan-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-plan-description ul li {
    position: relative;
    padding-left: calc(24 * 100vw / 1705);
    margin-bottom: calc(10 * 100vw / 1705);
    font-size: var(--fs-14);
    color: var(--sp-text-body);
}

.sp-plan-description ul li::before {
    content: '';
    position: absolute;
    left: calc(4 * 100vw / 1705);
    top: calc(8 * 100vw / 1705);
    width: calc(6 * 100vw / 1705);
    height: calc(6 * 100vw / 1705);
    border-radius: 50%;
    background: var(--sp-theme-red);
    box-shadow: 0 0 0 calc(3 * 100vw / 1705) rgba(180, 34, 49, 0.15);
}

/* Plan Language Select Dropdown */
.sp-plan-language-wrap {
    margin-bottom: calc(22 * 100vw / 1705);
}

.sp-plan-language-wrap select.form-select,
.sp-plan-language-wrap div.nice-select {
    width: 100% !important;
    height: calc(48 * 100vw / 1705) !important;
    line-height: calc(46 * 100vw / 1705) !important;
    border-radius: var(--sp-radius-sm) !important;
    border: 1.5px solid var(--sp-border) !important;
    font-size: var(--fs-14) !important;
    color: var(--sp-text-dark) !important;
    background: #fafafc !important;
    padding-left: calc(16 * 100vw / 1705) !important;
    float: none !important;
}

.sp-plan-language-wrap div.nice-select:focus,
.sp-plan-language-wrap div.nice-select.open {
    border-color: var(--sp-theme-red) !important;
    box-shadow: 0 0 0 3px rgba(180, 34, 49, 0.1) !important;
}

.sp-plan-language-wrap div.nice-select ul.list {
    width: 100% !important;
    border-radius: var(--sp-radius-sm) !important;
    box-shadow: var(--sp-shadow-md) !important;
}

/* Plan Action Button */
.sp-plan-btn {
    width: 100%;
    height: calc(52 * 100vw / 1705);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(8 * 100vw / 1705);
    background: linear-gradient(135deg, var(--sp-theme-red) 0%, var(--sp-theme-red-hover) 100%);
    color: #ffffff !important;
    font-size: var(--fs-15);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(180, 34, 49, 0.28);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
}

.sp-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(180, 34, 49, 0.38);
    background: linear-gradient(135deg, var(--sp-theme-red-hover) 0%, #7d121c 100%);
}

.sp-plan-btn:active {
    transform: translateY(0);
}

/* Responsive Rules */
@media (max-width: 991.98px) {
    .sp-plan-card {
        padding: 28px 22px;
    }

    .sp-plan-price {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .plan-page-wrapper {
        padding: 28px 0 46px;
    }

    .plan-hero-header {
        margin-bottom: 26px;
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
    }

    .plan-hero-header h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .plan-hero-header p {
        font-size: 14.5px;
        line-height: 1.6;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .plans-grid-row {
        row-gap: 18px;
    }

    .sp-plan-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .sp-plan-badge {
        top: 14px;
        right: 14px;
        font-size: 10px;
        padding: 3px 10px;
    }

    .sp-plan-title {
        font-size: 19px;
        margin-bottom: 10px;
        padding-right: 70px;
    }

    .sp-plan-price-wrap {
        gap: 6px;
        margin-bottom: 6px;
    }

    .sp-plan-price {
        font-size: 28px;
    }

    .sp-plan-info {
        font-size: 12px;
        padding: 3px 10px;
        margin-bottom: 14px;
    }

    .sp-plan-description {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .sp-plan-meta-row {
        gap: 8px;
        margin-bottom: 16px;
    }

    .sp-plan-meta-chip {
        font-size: 12px;
        padding: 4px 10px;
    }

    .sp-plan-features-list {
        margin-bottom: 20px;
    }

    .sp-plan-feature-item {
        font-size: 13px;
        margin-bottom: 8px;
        gap: 8px;
    }

    .sp-plan-feature-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .sp-plan-language-wrap {
        margin-bottom: 16px;
    }

    .sp-plan-language-label {
        font-size: 12.5px;
        margin-bottom: 6px;
    }

    .sp-plan-btn {
        height: 48px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .plan-hero-header h1 {
        font-size: 23px;
    }
}
