/* Build Your Own Course Styles */

.details-form .field {
    margin-bottom: 1rem;
}

.field-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.field-label .required {
    color: #dc3545;
    margin-left: 2px;
}

.source-news,
.interested-in {
    min-height: 300px;
}

.source-news h4,
.interested-in h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.module-item {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.module-item:hover {
    background-color: #f0f0f0;
    border-left: 3px solid #28a745;
}

.interested .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deleteList {
    height: 25px;
    width: 25px;
    padding: 0;
    line-height: 1;
    font-size: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.radio-list li {
    margin-bottom: 1rem;
}

.radiobox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.radiobox input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radiobox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.radiobox input:checked ~ .checkmark {
    background-color: #28a745;
    border-color: #28a745;
}

.radiobox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radiobox input:checked ~ .checkmark:after {
    display: block;
}

.radiobox .checkmark:after {
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.price {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.discounts {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

.check-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-box-list li {
    margin-bottom: 0.75rem;
}

.checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.checkbox input:checked ~ .checkmark {
    background-color: #28a745;
    border-color: #28a745;
}

.checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.card.style-2 {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.card.style-2 .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.accordion-button {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f3ff;
    color: #0056b3;
}

.accordion-button h4 {
    margin: 0;
    font-size: 1.25rem;
}

.panel {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.panel-body {
    padding: 1.25rem;
}

.list-group.news-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .radio-list li {
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }
}
