/* Package Page Specific Styles - Fixed Version */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Page Header Enhancements */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.3;
}

/* Package Cards Base Styling */
.package-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    margin-bottom: 2rem;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover::before {
    opacity: 1;
}

.package-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Featured Package Styling */
.package-card.featured {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
}

.package-card.featured .package-header,
.package-card.featured .package-content,
.package-card.featured .package-footer {
    position: relative;
    z-index: 2;
}

.package-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 1;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: #333;
    padding: 8px 20px 8px 15px;
    font-weight: bold;
    font-size: 0.875rem;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

.featured-badge::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
    border-left: 10px solid #ff6b6b;
}

/* Package Header */
.package-header {
    padding: 2rem;
    text-align: center;
    position: relative;
}

/* Package Images */
.package-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    background: #f8f9fa;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

/* Package Icon Fallback */
.package-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.package-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.package-card:hover .package-icon::before {
    animation: shine 0.6s ease-in-out;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.package-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

/* Package Title */
.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.package-card.featured .package-title {
    color: white;
}

/* Price Display */
.package-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.package-card.featured .price-amount {
    color: #ffd93d;
}

.price-suffix {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
}

.package-card.featured .price-suffix {
    color: rgba(255, 255, 255, 0.8);
}

.price-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cost Highlight */
.cost-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Package Content */
.package-content {
    padding: 0 2rem 2rem;
}

.package-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.package-card.featured .package-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Package Features */
.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.package-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
}

.package-card.featured .package-features li {
    color: rgba(255, 255, 255, 0.9);
}

.package-features li i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 16px;
}

.package-card.featured .package-features li i {
    color: #ffd93d;
}

/* Example Section */
.example-section {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.package-card.featured .example-section {
    background: rgba(255, 255, 255, 0.1);
}

.example-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.package-card.featured .example-title {
    color: white;
}

.example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.package-card.featured .example-item {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.example-price {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
}

.package-card.featured .example-price {
    color: #ffd93d;
}

/* Package Footer */
.package-footer {
    padding: 0 2rem 2rem;
}

/* Custom Package Styles */
.package-card.custom {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.package-card.custom .package-icon {
    background: linear-gradient(135deg, #374151, #1f2937);
}

.package-card.custom:hover {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Compatibility Section */
.compatibility-section {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.compatibility-info {
    background: rgba(248, 250, 252, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.compatibility-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.compatibility-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.compatibility-list.compatible li i {
    color: #10b981;
    margin-right: 0.75rem;
    width: 20px;
}

.compatibility-list.limited li i {
    color: #f59e0b;
    margin-right: 0.75rem;
    width: 20px;
}

/* Note Styling */
.note {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Consultation CTA */
.consultation-cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    color: white;
    text-align: center;
}

.consultation-cta h4 {
    color: white;
    margin-bottom: 1rem;
}

.consultation-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Contact Form Enhancements */
#contact-form input,
#contact-form select,
#contact-form textarea {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .package-card.featured {
        transform: none;
    }

    .compatibility-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .package-header {
        padding: 1.5rem;
    }

    .package-content {
        padding: 0 1.5rem 1.5rem;
    }

    .package-footer {
        padding: 0 1.5rem 1.5rem;
    }

    .package-image {
        width: 100px;
        height: 100px;
    }

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

    .package-icon i {
        font-size: 1.5rem;
    }

    .package-title {
        font-size: 1.25rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .compatibility-section {
        padding: 1.5rem;
    }

    .compatibility-info {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .package-image {
        width: 80px;
        height: 80px;
    }

    .package-icon {
        width: 50px;
        height: 50px;
    }

    .package-icon i {
        font-size: 1.25rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .consultation-cta {
        padding: 1.5rem;
    }

    .package-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation Classes */
.package-card {
    opacity: 0;
    transform: translateY(30px);
    animation: packageFadeIn 0.6s ease forwards;
}

.package-card:nth-child(1) {
    animation-delay: 0.1s;
}

.package-card:nth-child(2) {
    animation-delay: 0.2s;
}

.package-card:nth-child(3) {
    animation-delay: 0.3s;
}

.package-card:nth-child(4) {
    animation-delay: 0.4s;
}

.package-card:nth-child(5) {
    animation-delay: 0.5s;
}

.package-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes packageFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Additional Utility Classes */
.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Grid System */
.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .xl\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}