.error-highlight {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

#error-container {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.alert h5 {
    color: #721c24;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

.fa-exclamation-triangle {
    color: #dc3545;
}

.calendar-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--main-color);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.calendar-day:hover:not(.disabled) {
    background-color: #e9f5f2;
}

.calendar-day.selected {
    background-color: var(--main-color);
    color: white;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--main-color);
}

.visit-type-container {
    margin: 20px 0;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-content svg {
    color: #8E8E93;
    transition: all 0.3s ease;
}

.radio-option:hover .radio-content {
    border-color: var(--main-color);
}

.radio-option input[type="radio"]:checked + .radio-content {
    border-color: var(--main-color);
    background-color: #f8f9fa;
}

.radio-option input[type="radio"]:checked + .radio-content svg {
    color: var(--main-color);
}

.radio-content span {
    font-weight: 600;
    color: #333;
}

@media (max-width: 576px) {
    .radio-group {
        flex-direction: column;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.alert i {
    font-size: 1.2em;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-left: 8px;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}