/* Service Package Cards - Premium Matrix Layout */
.service-package-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.service-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.service-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Premium Package Grid */
.package-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.package-option {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.package-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.package-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.pkg-qty {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.pkg-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pkg-base-price {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
}

.pkg-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.pkg-save {
    font-size: 11px;
    color: #10b981;
    font-weight: 700;
    margin-top: 4px;
}

/* Card Actions (Bottom Buttons) */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-order-now {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-order-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-custom {
    background: transparent;
    color: var(--text-secondary);
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

/* Features List */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-features i {
    color: #10b981;
}

/* Custom Order Modal Styling */
.custom-order-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.custom-order-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1b2e;
    /* Dark theme modal */
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
}

/* Range Slider */
.range-container {
    margin: 30px 0;
}

input[type=range] {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

.qty-display {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    color: white;
    /* Make quantity white */
    margin-bottom: 20px;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.breakdown-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--primary);
    /* Blue for total price */
    font-size: 20px;
    font-weight: 700;
}

.breakdown-row.strike {
    text-decoration: line-through;
    font-size: 13px;
}

.save-badge {
    color: #10b981;
    font-weight: 700;
}


.service-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.service-icon {
    font-size: 36px;
}

.service-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Package Options */
.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.package-option {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-option:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.package-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.package-qty {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.package-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.regular-price {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.sale-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.package-savings {
    font-size: 11px;
    color: #10b981;
    font-weight: 700;
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.feature-item i {
    color: #10b981;
    font-size: 14px;
}

/* Buttons */
.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

.custom-order-btn {
    width: 100%;
    font-size: 14px;
}

/* Custom Order Modal */
.custom-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Quantity Slider */
.quantity-slider-container {
    margin-bottom: 30px;
}

.quantity-slider-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

#custom-qty-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

#custom-qty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

#custom-qty-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.quantity-display {
    text-align: center;
    margin-top: 15px;
}

#custom-qty-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

/* Price Calculator */
.price-calculator {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: line-through;
}

.sale-row {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    margin: 0 -25px;
    padding: 15px 25px;
    border-radius: 12px;
}

.price-value-large {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.savings-row {
    padding-top: 15px;
}

.savings-value {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}

/* Currency Selector */
.currency-selector {
    position: relative;
    display: inline-block;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    border-color: var(--primary);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
}

.currency-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.currency-option:hover {
    background: var(--bg-secondary);
}

.currency-option:first-child {
    border-radius: 10px 10px 0 0;
}

.currency-option:last-child {
    border-radius: 0 0 10px 10px;
}

.currency-code {
    font-weight: 700;
    color: var(--text-primary);
}

.currency-symbol {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .package-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }
}