/* Pricing Page Styles */
.pricing-intro {
    padding: 160px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(16, 16, 24, 0.95) 100%);
}

.pricing-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-intro p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Toggle Section */
.pricing-toggle {
    padding: 40px 0;
    background: var(--bg-darker);
    text-align: center;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.toggle-label.active {
    color: #00B0FF;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    /* Improve touch target size */
    min-height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    /* Ensure proper touch interaction */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    left: -9999px;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Improve touch interaction */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* Ensure proper sizing */
    width: 100%;
    height: 100%;
    /* Improve rendering on high DPI displays */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #00B0FF, #60EFFF);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 176, 255, 0.3);
    /* Improve rendering on high DPI displays */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

input:checked + .toggle-slider {
    background-color: rgba(0, 176, 255, 0.2);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Focus states for accessibility */
.toggle-switch input:focus + .toggle-slider {
    outline: 2px solid #00B0FF;
    outline-offset: 2px;
}

.toggle-switch input:focus:not(:focus-visible) + .toggle-slider {
    outline: none;
}

/* Hover effects */
.toggle-slider:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

input:checked + .toggle-slider:hover {
    background-color: rgba(0, 176, 255, 0.25);
}

.toggle-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pricing Cards Section */
.pricing-cards {
    padding: 80px 0;
    background: var(--bg-darker);
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjusted gap for better fitting */
    flex-wrap: wrap;
    align-items: flex-start;
}

.pricing-card {
    flex: 1 1 250px; /* Allow cards to shrink and grow, with a preferred width of 250px */
    min-width: 250px; /* Minimum width for each card */
    max-width: 300px; /* Maximum width for each card */
    padding: 40px;
    margin-top: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #00ffff, #0066ff);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.features-list li {
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

/* Add-on Services Section */
.addon-services {
    padding: 80px 0;
    background: var(--bg-dark);
}

.addon-services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-card .price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
}

/* Important Notes Section */
.important-notes {
    padding: 60px 0;
    background: var(--bg-dark);
}

.notes-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.notes-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00B0FF, #60EFFF);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-header i {
    font-size: 1.5rem;
    color: #00B0FF;
}

.notes-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 176, 255, 0.2);
    transform: translateY(-2px);
}

.note-item i {
    font-size: 1.2rem;
    color: #ff6b6b;
    margin-top: 2px;
    flex-shrink: 0;
}

.note-item:nth-child(2) i {
    color: #00B0FF;
}

.note-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.note-item strong {
    color: #fff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-intro h1 {
        font-size: 2.8rem;
    }

    /* Removed flex-direction: column here to allow natural wrapping */
    /* .cards-container will now wrap based on flex-wrap: wrap and card min-width */

    /* Removed explicit width and max-width for pricing-card here */
    /* .pricing-card will now adjust based on its flex properties */
}

@media (max-width: 768px) {
    .pricing-intro {
        padding: 100px 0 40px;
    }

    .pricing-intro h1 {
        font-size: 2.2rem;
    }

    /* Mobile Toggle Improvements */
    .pricing-toggle {
        padding: 30px 20px;
    }

    .toggle-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 15px;
    }

    .toggle-label {
        font-size: 1rem;
        text-align: center;
        min-width: 120px;
        white-space: normal;
        line-height: 1.3;
    }

    .toggle-switch {
        width: 70px;
        height: 40px;
        margin: 10px 0;
        min-height: 44px;
        min-width: 44px;
    }

    .toggle-slider:before {
        height: 32px;
        width: 32px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }

    .toggle-description {
        font-size: 0.9rem;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .notes-card {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .notes-header h3 {
        font-size: 1.5rem;
    }

    .note-item {
        padding: 15px;
        gap: 12px;
    }

    .note-item p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .pricing-intro h1 {
        font-size: 1.8rem;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    /* Extra Small Mobile Toggle Improvements */
    .pricing-toggle {
        padding: 25px 15px;
    }

    .toggle-container {
        gap: 12px;
        padding: 0 10px;
    }

    .toggle-label {
        font-size: 0.95rem;
        min-width: 100px;
        white-space: normal;
        line-height: 1.2;
    }

    .toggle-switch {
        width: 65px;
        height: 38px;
        min-height: 44px;
        min-width: 44px;
    }

    .toggle-slider:before {
        height: 30px;
        width: 30px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(27px);
    }

    .toggle-description {
        font-size: 0.85rem;
        max-width: 250px;
        padding: 0 10px;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
    .pricing-toggle {
        padding: 20px 10px;
    }

    .toggle-container {
        gap: 10px;
        padding: 0 5px;
    }

    .toggle-label {
        font-size: 0.9rem;
        min-width: 90px;
        line-height: 1.1;
    }

    .toggle-switch {
        width: 60px;
        height: 35px;
        min-height: 44px;
        min-width: 44px;
    }

    .toggle-slider:before {
        height: 27px;
        width: 27px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(25px);
    }

    .toggle-description {
        font-size: 0.8rem;
        max-width: 220px;
        padding: 0 5px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pricing-toggle {
        padding: 20px 0;
    }

    .toggle-container {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .toggle-label {
        font-size: 0.95rem;
        min-width: auto;
        white-space: nowrap;
    }

    .toggle-switch {
        width: 65px;
        height: 38px;
        margin: 0 5px;
    }

    .toggle-description {
        font-size: 0.85rem;
        max-width: 350px;
    }
}