/* ================================================================
   PLANS SECTION
   Premium telecom plans showcase with sliding cards
   ================================================================ */

.plans-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 25, 30, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.plans-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 201, 80, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Header */
.plans-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.plans-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(224, 25, 30, 0.1);
    border: 1px solid rgba(224, 25, 30, 0.25);
    border-radius: 50px;
    color: var(--main-red);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.plans-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-dark-blue);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.plans-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
}

/* ================================================================
   SLIDER CONTAINER
   ================================================================ */
.plans-slider-container {
    position: relative;
    z-index: 1;
    padding-bottom: 4rem; /* Space for controls */
}

.plans-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.plans-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ================================================================
   PLAN CARD
   ================================================================ */
.plan-card {
    flex: 0 0 calc(25% - 0.94rem);
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(2, 6, 24, 0.06);
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-green);
    box-shadow: 0 20px 40px rgba(0, 201, 80, 0.15);
}

/* Top Red Bar */
.plan-card-topbar {
    background: linear-gradient(135deg, var(--main-red) 0%, #c01519 100%);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.plan-card-topbar::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.plan-card-topbar i {
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.plan-card-category {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Badge (Best Seller, Popular, etc.) */
.plan-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--main-green);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 201, 80, 0.3);
}

/* Card Body */
.plan-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title & Subtitle */
.plan-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--main-dark-blue);
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.plan-card-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

/* Compare Link */
.plan-card-compare {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--main-red);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: gap 0.25s ease;
}

.plan-card-compare:hover {
    gap: 8px;
    color: #c01519;
}

/* Divider */
.plan-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0.5rem 0 1rem 0;
}

/* Specifications List */
.plan-card-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.plan-card-specs li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    color: var(--main-grey);
    line-height: 1.4;
}

.plan-card-specs li i {
    color: var(--main-green);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Price Section */
.plan-card-price-section {
    background: linear-gradient(135deg, rgba(0, 201, 80, 0.05) 0%, rgba(0, 201, 80, 0.02) 100%);
    border: 1px solid rgba(0, 201, 80, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.plan-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.35rem;
}

.plan-card-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--main-dark-blue);
    letter-spacing: -0.02em;
    line-height: 1;
}

.plan-card-price-currency {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--main-dark-blue);
}

.plan-card-price-period {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.plan-card-original-price {
    font-size: 0.88rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 0.35rem;
}

.plan-card-savings {
    display: inline-block;
    padding: 3px 10px;
    background: var(--main-green);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Terms */
.plan-card-terms {
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-style: italic;
}

/* Order Now Button */
.plan-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.25rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.25);
}

.plan-order-btn:hover {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 25, 30, 0.4);
}

.plan-order-btn i {
    transition: transform 0.3s ease;
}

.plan-order-btn:hover i {
    transform: translateX(3px);
}

/* ================================================================
   SLIDER CONTROLS - Bottom Center
   ================================================================ */
.plans-slider-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 5;
}

.plans-slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--main-dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 6, 24, 0.08);
}

.plans-slider-btn:hover {
    background: var(--main-green);
    border-color: var(--main-green);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 201, 80, 0.3);
}

.plans-slider-dots {
    display: flex;
    gap: 8px;
    padding: 0 0.5rem;
}

.plans-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.plans-slider-dot:hover {
    background: var(--main-green);
    transform: scale(1.2);
}

.plans-slider-dot.active {
    background: var(--main-green);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 201, 80, 0.4);
}

/* ================================================================
   PLAN ORDER MODAL
   ================================================================ */
.plan-order-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(2, 6, 24, 0.2);
}

.plan-order-modal-header {
    background: linear-gradient(135deg, var(--main-dark-blue) 0%, #0a2540 100%);
    padding: 1.75rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plan-order-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224, 25, 30, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.plan-order-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.plan-order-header-icon {
    width: 56px;
    height: 56px;
    background: rgba(224, 25, 30, 0.15);
    border: 1px solid rgba(224, 25, 30, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-red);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.plan-order-header-text {
    color: #ffffff;
}

.plan-order-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.plan-order-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.plan-order-subtitle strong {
    color: var(--main-red);
    font-weight: 700;
}

.plan-order-modal-body {
    padding: 2rem;
    background: #ffffff;
}

.plan-order-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--main-grey);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-order-label i {
    color: var(--main-red);
    font-size: 0.85rem;
}

.optional-tag {
    color: #9ca3af;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    margin-left: 4px;
}

.plan-order-input-wrapper {
    position: relative;
}

.plan-order-input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--main-dark-blue);
    background: #fafafa;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.plan-order-input::placeholder {
    color: #9ca3af;
}

.plan-order-input:focus {
    outline: none;
    border-color: var(--main-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(224, 25, 30, 0.1);
}

.plan-order-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.plan-order-textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 80px;
}

.plan-order-error {
    display: none;
    color: var(--main-red);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.plan-order-error.show {
    display: block;
}

.plan-order-input.is-invalid {
    border-color: var(--main-red);
    background: #fff5f5;
}

.btn-plan-order-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(224, 25, 30, 0.25);
}

.btn-plan-order-submit:hover:not(:disabled) {
    background: #c01519;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 25, 30, 0.4);
}

.btn-plan-order-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Large Tablet / Small Desktop */
@media (max-width: 1199.98px) {
    .plan-card {
        flex: 0 0 calc(33.333% - 0.84rem);
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .plan-card {
        flex: 0 0 calc(50% - 0.625rem);
    }
    
    .plans-title {
        font-size: 2rem;
    }
    
    .plan-card-price {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .plans-section {
        padding: 3rem 0;
    }
    
    .plan-card {
        flex: 0 0 100%;
    }
    
    .plans-title {
        font-size: 1.75rem;
    }
    
    .plans-subtitle {
        font-size: 0.95rem;
    }
    
    .plans-header {
        margin-bottom: 2rem;
    }
    
    .plan-card-body {
        padding: 1.25rem;
    }
    
    .plan-card-title {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .plans-title {
        font-size: 1.5rem;
    }
    
    .plan-order-modal-body {
        padding: 1.25rem;
    }
    
    .plan-order-modal-header {
        padding: 1.25rem;
    }
    
    .plan-order-header-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .plan-order-title {
        font-size: 1.15rem;
    }
}