/* Registration Form Styles */
.vsg-registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    color: #333 !important;
    /* Force text color globally inside wrapper */
}

.vsg-registration-wrapper label,
.vsg-registration-wrapper p,
.vsg-registration-wrapper span,
.vsg-registration-wrapper strong {
    color: #333;
}

.vsg-form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.vsg-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

.vsg-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.vsg-form-group {
    flex: 1;
    margin-bottom: 15px;
}

.vsg-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.vsg-form-group input[type="text"],
.vsg-form-group input[type="email"],
.vsg-form-group input[type="tel"],
.vsg-form-group input[type="date"],
.vsg-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333 !important;
    background-color: #fff !important;
    box-sizing: border-box;
}

.vsg-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.vsg-course-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.vsg-course-item {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.vsg-course-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.vsg-course-item input {
    margin-right: 10px;
}

.vsg-course-price {
    margin-left: auto;
    color: #007bff;
    font-weight: bold;
}

.vsg-total-price {
    text-align: right;
    font-size: 18px;
    padding: 15px;
    background: #eef5ff;
    border-radius: 4px;
    border: 1px solid #cce0ff;
}

.vsg-total-price span {
    color: #d9534f;
}

.vsg-payment-details {
    margin-top: 10px;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-left: 3px solid #28a745;
    border-radius: 4px;
}

.vsg-payment-details p {
    margin: 0 0 5px 0;
}

.vsg-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    line-height: normal;
}

.vsg-btn:hover {
    background: #0056b3;
}

.vsg-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#vsg-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-weight: bold;
}

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

#vsg-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .vsg-form-row {
        flex-direction: column;
        gap: 0;
    }

    .vsg-course-list {
        grid-template-columns: 1fr;
    }
}

/* Multi-step progress bar */
.vsg-steps-progressbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.vsg-step-progress {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #ccc;
    position: relative;
    padding: 10px 0;
    font-size: 14px;
    transition: color 0.3s;
}

.vsg-step-progress.active {
    color: #007bff;
}

.vsg-step-progress.active::after {
    content: '';
    position: absolute;
    bottom: -17px; /* Align with border-bottom of progressbar */
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    transition: background 0.3s;
}

.vsg-btn-secondary {
    background: #6c757d;
}

.vsg-btn-secondary:hover {
    background: #5a6268;
}

.vsg-step-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Tùy chỉnh màu sắc phần chọn ngày (Datepicker) cho Dark Theme */
.ui-datepicker, 
#ui-datepicker-div {
    background: #1e2531 !important;
    border: 1px solid #485b73 !important;
    color: #fff !important;
    padding: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.5) !important;
}

.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-weight: bold;
}

.ui-datepicker-title,
.ui-datepicker th,
.ui-datepicker td a,
.ui-datepicker td span {
    color: #fff !important;
}

.ui-datepicker th {
    color: #ccc !important;
    font-weight: normal !important;
}

/* Đè các class mạnh nhất của jQuery UI base theme */
.ui-datepicker .ui-state-default, 
.ui-datepicker .ui-widget-content .ui-state-default,
.ui-datepicker .ui-widget-header .ui-state-default {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #fff !important; 
    text-align: center !important;
    border-radius: 5px !important;
    transition: background 0.2s !important;
}

.ui-datepicker .ui-state-hover,
.ui-datepicker .ui-widget-content .ui-state-hover,
.ui-datepicker .ui-widget-header .ui-state-hover,
.ui-datepicker .ui-state-focus {
    background: #485b73 !important;
    color: #fff !important;
    border: 1px solid #485b73 !important;
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-widget-content .ui-state-active,
.ui-datepicker .ui-widget-header .ui-state-active {
    background: #007bff !important;
    border: 1px solid #007bff !important;
    color: #fff !important;
}

.ui-datepicker .ui-state-highlight,
.ui-datepicker .ui-widget-content .ui-state-highlight,
.ui-datepicker .ui-widget-header .ui-state-highlight {
    border: 1px solid #007bff !important;
    background: transparent !important;
    color: #fff !important;
}

.ui-datepicker .ui-icon {
    filter: invert(1) brightness(2) !important; /* Làm nút chuyển tháng thành màu trắng */
}