/* ============================================
   PACKAGE CONFIGURATION - Modern Teal Theme
   ============================================ */

/* Page Background */
body {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
}

@media (min-width: 992px) {
    .sticky-lg-top {
  
        z-index: 99 !important;
    }
}

/* Package Selection Cards */
.package-option {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-option:hover {
    transform: translateY(-3px);
    border-color: #14b8a6 !important;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.15) !important;
}

.package-option[data-active="true"] {
    border-color: #0d9488 !important;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1), 0 8px 24px rgba(13, 148, 136, 0.15) !important;
}

/* Currency Select */
#currencySelect {
    transition: all 0.3s ease;
}

#currencySelect:hover {
    border-color: #9ca3af !important;
}

#currencySelect:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1) !important;
    outline: none !important;
}

/* Billing Period Selection */
.period-option {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.period-option:hover {
    border-color: #14b8a6 !important;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
    transform: translateY(-2px);
}

.period-option.selected {
    border-color: #0d9488 !important;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1), 0 8px 24px rgba(13, 148, 136, 0.15) !important;
}

.period-option.selected .period-radio {
    border-color: #0d9488 !important;
}

.period-option.selected .period-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0d9488;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Period Quantity Controls */
#decreasePeriod,
#increasePeriod {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

#decreasePeriod:hover,
#increasePeriod:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

#decreasePeriod:active,
#increasePeriod:active {
    transform: scale(0.95);
}

#decreasePeriod:disabled,
#increasePeriod:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%) !important;
    box-shadow: none;
}

/* User Range Display */
#userRangeDisplay {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
    }
}

/* Price Summary Card Enhancements */
#addToCartBtn {
    position: relative;
    overflow: hidden;
}

#addToCartBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    transition: left 0.5s ease;
}

#addToCartBtn:hover::before {
    left: 100%;
}

#addToCartBtn:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%) !important;
    color: #0d9488 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25) !important;
}

#addToCartBtn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2) !important;
}

/* Discount Input */
#discountCodeInput:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#discountCodeInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#applyDiscountBtn:active {
    transform: scale(0.95);
}

/* Success/Error Messages */
#discountMessage.success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

#discountMessage.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ef4444;
}

#errorMessage {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Loading Spinner Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Trust Badges */
.trust-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Back Button Hover Effect */
a[href="/#pricing"]:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(-4px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .package-option[data-active="true"],
    .period-option.selected {
        box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1), 0 4px 12px rgba(13, 148, 136, 0.12) !important;
    }
}

/* Currency Tabs (if they exist elsewhere) */
.pricing-currency-tabs {
    user-select: none;
}

.currency-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-tab-btn:hover {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}

.currency-tab-btn.is-active {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Pricing Card Wrappers */
.pricing-card-wrapper {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.pricing-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.pricing-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.pricing-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.pricing-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.pricing-card-wrapper:nth-child(5) { animation-delay: 0.5s; }

.pricing-card-wrapper:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.15) !important;
}

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

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.text-primary {
    color: #0d9488 !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card-wrapper {
        transform: scale(1) !important;
    }
    
    #pricingCardsContainer {
        grid-template-columns: 1fr !important;
    }
}
