/* Person Type Cards Styling */
.person-types-section {
    /* margin-bottom: 20px; */
    padding: 20px;
}

.section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.person-type-cards1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.person-type-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.person-type-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.person-type-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.person-type-card.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-min-max {
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* Selected Person Type View */
.selected-person-type-view {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.selected-card-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
}

.selected-card-wrapper .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.selected-card-wrapper .card-price {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 10px;
}

.btn-change {
    font-size: 14px;
    text-decoration: underline;
}

.number-selection {
    margin-top: 15px;
}

.number-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.number-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.number-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.number-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.number-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .person-type-cards {
        grid-template-columns: 1fr;
    }
    
    .number-buttons {
        justify-content: center;
    }
    
    .number-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Loading Animation */
.person-type-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.person-type-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

/* Animation for smooth transitions */
.person-type-card {
    animation: fadeInUp 0.3s ease;
}

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