/* Modern Subcategory Card Design */

.modern-subcategory-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #f0f0f0;
    position: relative;
}

.modern-subcategory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0078ff 0%, #00c6ff 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px 16px 0 0;
}

.modern-subcategory-card:hover::before {
    transform: scaleX(1);
}

.modern-subcategory-card:hover {
    border-color: #0078ff;
    box-shadow: 0 8px 28px rgba(0, 120, 255, 0.15);
    transform: translateY(-6px);
}

.modern-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfd 100%);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f0f0f0;
}

.modern-subcategory-card:hover .modern-card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-bottom-color: #e0e8ff;
}

.modern-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-subcategory-card:hover .modern-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 120, 255, 0.3);
}

.modern-card-info {
    flex: 1;
    min-width: 0;
}

.modern-card-title {
    margin: 0 0 4px 0;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.modern-card-subtitle {
    margin: 0;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.modern-card-toggle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0078ff;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e0e8ff;
}

.modern-card-toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-subcategory-card:hover .modern-card-toggle {
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%);
    color: white;
    border-color: #0078ff;
    transform: translateX(4px);
}

/* Services Container */
.modern-services-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfd 100%);
    padding: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

.modern-services-container::-webkit-scrollbar {
    width: 6px;
}

.modern-services-container::-webkit-scrollbar-track {
    background: transparent;
}

.modern-services-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0078ff 0%, #00c6ff 100%);
    border-radius: 3px;
}

.modern-services-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0060d0 0%, #0099e6 100%);
}

/* Service Options */
.service-option {
    padding: 16px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-option:last-child {
    margin-bottom: 0;
}

.service-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0078ff 0%, #00c6ff 100%);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-option:hover::before {
    transform: scaleY(1);
}

.service-option:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-color: #0078ff;
    box-shadow: 0 4px 14px rgba(0, 120, 255, 0.12);
    transform: translateX(4px);
}

/* Checkbox Styling */
.service-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #0078ff;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-option input[type="checkbox"]:hover {
    border-color: #0078ff;
    box-shadow: 0 0 0 4px rgba(0, 120, 255, 0.1);
}

.service-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #0078ff 0%, #00c6ff 100%);
    border-color: #0078ff;
    box-shadow: 0 0 0 4px rgba(0, 120, 255, 0.15);
}

/* Service Content */
.service-option > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.service-option strong {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.4;
    word-break: break-word;
}

.service-option span span {
    color: #0078ff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Custom Price Input */
.custom-price-input {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid #0078ff !important;
    border-radius: 10px !important;
    font-size: 0.98rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%) !important;
    margin-top: 8px !important;
    transition: all 0.3s !important;
    font-weight: 600;
    color: #1a1a2e;
}

.custom-price-input::placeholder {
    color: #999;
    font-weight: 400;
}

.custom-price-input:focus {
    background: white !important;
    border-color: #00c6ff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.15) !important;
}

/* Animations */
@keyframes slideInService {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-subcategory-card {
    animation: slideInService 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modern-subcategory-card:nth-child(1) { animation-delay: 0.05s; }
.modern-subcategory-card:nth-child(2) { animation-delay: 0.1s; }
.modern-subcategory-card:nth-child(3) { animation-delay: 0.15s; }
.modern-subcategory-card:nth-child(4) { animation-delay: 0.2s; }
.modern-subcategory-card:nth-child(5) { animation-delay: 0.25s; }

/* Responsive */
@media (max-width: 768px) {
    .modern-card-header {
        padding: 16px;
        gap: 12px;
    }

    .modern-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .modern-card-title {
        font-size: 0.95rem;
    }

    .modern-card-toggle {
        width: 36px;
        height: 36px;
    }

    .service-option {
        padding: 14px;
        gap: 12px;
    }
}

