/* ===== Course schedule: outer card (teal) ===== */
.course-schedule-container .course-table-wrapper {
    background: #3fbfb6; /* teal background - chỉnh nếu cần */
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 18px 0;
}

/* inner white area */
.course-schedule-container .course-table-wrapper > .inner-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px 18px;
}

/* If inner wrapper doesn't exist, apply to table wrapper's direct table */
.course-schedule-container .course-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed; /* stable column widths */
}

/* header row */
.course-schedule-container .course-table-wrapper thead th {
    background: transparent; /* we set header background below on thead wrapper */
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    padding: 20px 18px;
}

/* Create header bar (teal) with padding + rounded corners on top */
.course-schedule-container .course-table-wrapper thead {
    display: table-header-group;
    background: #3fbfb6;
}

.course-schedule-container .course-table-wrapper thead th:first-child {
    padding-left: 28px;
}

.course-schedule-container .course-table-wrapper thead th:last-child {
    padding-right: 28px;
}

/* body cells */
.course-schedule-container .course-table-wrapper tbody td {
    padding: 20px 18px;
    color: #2b2b2b;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.2;
    border-bottom: 1px solid #f1f1f1;
}

/* last row remove border */
.course-schedule-container .course-table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

/* Column widths (adjust as necessary) */
.course-schedule-container .course-table-wrapper thead th:nth-child(1),
.course-schedule-container .course-table-wrapper tbody td:nth-child(1) {
    width: 18%;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(2),
.course-schedule-container .course-table-wrapper tbody td:nth-child(2) {
    width: 12%;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(3),
.course-schedule-container .course-table-wrapper tbody td:nth-child(3) {
    width: 14%;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(4),
.course-schedule-container .course-table-wrapper tbody td:nth-child(4) {
    width: 10%;
    text-align: center;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(5),
.course-schedule-container .course-table-wrapper tbody td:nth-child(5) {
    width: 8%;
    text-align: center;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(6),
.course-schedule-container .course-table-wrapper tbody td:nth-child(6) {
    width: 8%;
    text-align: center;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(7),
.course-schedule-container .course-table-wrapper tbody td:nth-child(7) {
    width: 18%;
}

.course-schedule-container .course-table-wrapper thead th:nth-child(8),
.course-schedule-container .course-table-wrapper tbody td:nth-child(8) {
    width: 12%;
    text-align: center;
}

/* Status badge */
.course-schedule-container .badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #1e9b36; /* green */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

/* Register button */
/* Use .register-btn existing class — if different, change selector */
.course-schedule-container .register-btn,
.course-schedule-container .btn-register {
    background: #2fbfb6;
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.03);
}

/* small secondary look for disabled / plain buttons */
.course-schedule-container .register-btn:active {
    transform: translateY(1px);
}

/* make table rows clearer on hover */
.course-schedule-container .course-table-wrapper tbody tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* Styling for thead text color contrast (if header background is teal) */
.course-schedule-container .course-table-wrapper thead th {
    color: #ffffff;
}

/* Make the white table have inner rounded corners */
.course-schedule-container .course-table-wrapper {
    position: relative;
}

/* Add inner white rounded box overlay if there isn't an inner wrapper */
.course-schedule-container .course-table-wrapper > table {
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 980px) {
    .course-schedule-container .course-table-wrapper thead th,
    .course-schedule-container .course-table-wrapper tbody td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .course-schedule-container .course-table-wrapper thead th:nth-child(1),
    .course-schedule-container .course-table-wrapper tbody td:nth-child(1) {
        width: 30%;
    }

    .course-schedule-container .course-table-wrapper thead th:nth-child(7),
    .course-schedule-container .course-table-wrapper tbody td:nth-child(7) {
        width: 20%;
    }

    .course-schedule-container .course-table-wrapper thead th:nth-child(8),
    .course-schedule-container .course-table-wrapper tbody td:nth-child(8) {
        width: 12%;
    }
}

/* ===== Modal base (overlay + centered box) ===== */
#registration-form.registration-modal {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

/* Modal card */
#registration-form .modal-content {
    width: 580px;
    max-width: calc(100% - 40px);
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 4px solid #2bb5ad; /* teal border like sample */
    position: relative;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Header/title */
#registration-form .modal-content h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    color: #0b6b66; /* darker teal-ish */
}

/* Close button top-right */
#registration-form .modal-content .close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

/* ===== Form layout: two columns (desktop) ===== */
#course-registration-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: start;
}

/* full-width rows (use class .full on .form-group if needed) */
#course-registration-form .form-group.full {
    grid-column: 1 / -1;
}

/* label style */
#course-registration-form .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-weight: 600;
    font-size: 13px;
}

/* input / textarea common */
#course-registration-form input[type="text"],
#course-registration-form input[type="email"],
#course-registration-form input[type="tel"],
#course-registration-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    background: #f3f6f6; /* light gray background like sample */
    color: #222;
    font-size: 14px;
    outline: none;
}

/* readonly / disabled look */
#course-registration-form input[readonly],
#course-registration-form input[disabled],
#course-registration-form input[readonly]::-webkit-input-placeholder {
    background: #e9efee;
    color: #333;
}

/* textarea height */
#course-registration-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* form actions row (buttons) - full width */
#course-registration-form .form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

/* buttons style */
#course-registration-form .submit-btn {
    background: #2bb5ad;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

#course-registration-form .cancel-btn {
    background: #ef5350;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

/* subtle focus */
#course-registration-form input:focus,
#course-registration-form textarea:focus {
    border-color: #bfe9e6;
    box-shadow: 0 0 0 3px rgba(43, 181, 173, 0.08);
}

/* small helper - labels & placeholders spacing to mimic sample */
#course-registration-form .form-group input::placeholder,
#course-registration-form textarea::placeholder {
    color: #9aa0a0;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
    #registration-form .modal-content {
        padding: 18px;
    }

    #course-registration-form {
        grid-template-columns: 1fr;
    }

    #course-registration-form .form-group.full {
        grid-column: 1 / -1;
    }

    #course-registration-form .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
}

#facility-filter {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding-right: 30px;
    max-width: 300px;
    width: 100%;
}

.course-schedule-filters {
    display: flex;
    align-items: center;
    justify-content: end;
    justify-content: end;
}

.course-table-wrapper table td, table th {
    background-color: #fff;
}

.course-schedule-container .course-table-wrapper thead th {
    color: #ffffff;
    padding: 8px 6px;
    text-align: center !important;
    font-weight: 500;
}

#course-list-body button.register-btn {
    font-size: 13px;
    font-weight: 500 !important;
}

table caption + thead tr:first-child td, table caption + thead tr:first-child th, table colgroup + thead tr:first-child td,
table colgroup + thead tr:first-child th, table thead:first-child tr:first-child td, table thead:first-child tr:first-child th,
.course-schedule-container .course-table-wrapper tbody td, table td, table th {
    border: 1px solid hsl(175.57deg 48.8% 50.98%) !important;
}

@media (max-width: 767px) {
    .course-schedule-container .course-table-wrapper > table {
        min-width: 1000px;
    }

    .course-schedule-container .course-table-wrapper {
        position: relative;
        overflow: hidden;
        overflow-x: auto;
    }
}
.thank-you-content {
    text-align: center;
    padding: 20px;
}

.checkmark-circle {
    margin: 0 auto 20px;
}
.message-error, .text-danger {
    color: red;
}
/* Container form */
#consultation-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
}

/* Tiêu đề */
#consultation-registration-form h2 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

#consultation-registration-form p {
    text-align: center;
    color: #777;
    margin-bottom: 20px;
}

/* Bố cục 2 cột */
#consultation-registration-form .form-group {
    margin-bottom: 15px;
}

#consultation-registration-form .form-group.half {
    width: calc(50% - 10px);
    display: inline-block;
    vertical-align: top;
}

#consultation-registration-form .form-group.half:first-child {
    margin-right: 15px;
}

/* Input, textarea, select */
#consultation-registration-form input,
#consultation-registration-form textarea,
#consultation-registration-form select {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: transparent;
}

#consultation-registration-form input:focus,
#consultation-registration-form textarea:focus,
#consultation-registration-form select:focus {
    border-color: #00c0b6;
}

/* Nút submit */
#consultation-registration-form .submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #00c0b6;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

#consultation-registration-form .submit-btn:hover {
    background-color: #009e95;
}

/* Responsive mobile */
@media (max-width: 768px) {
    #consultation-registration-form .form-group.half {
        width: 100%;
        margin-right: 0;
    }
}
textarea[name="user_journey"] {
    display: none !important;
}