/* Booking Courses Frontend Styles */

/* Simple Form Container */
.booking-courses-simple-form {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}
.next-level .elementor-button-text{
	color:#fff;
}
.booking-courses-simple-form h3 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
    font-size: 24px;
}

.course-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.course-info p {
    margin: 8px 0;
    font-size: 16px;
}

.course-info strong {
    color: #555;
    min-width: 80px;
    display: inline-block;
}

/* Inline Form Container */
.booking-courses-form-container {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-courses-form-container h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    font-size: 24px;
}

.booking-courses-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 2px dashed #0073aa;
}

/* Shortcode Styles */
.booking-courses-shortcode {
    margin: 20px 0;
}

.booking-courses-shortcode h3,
.booking-courses-shortcode h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Compact Form Style */
.booking-courses-compact {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* .booking-form-compact .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
} */

.booking-form-compact .form-group {
    margin-bottom: 0;
}

.booking-form-compact .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.booking-form-compact .form-group input,
.booking-form-compact .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.booking-form-compact .form-group input:focus,
.booking-form-compact .form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.booking-form-compact .form-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.booking-form-compact .booking-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-form-compact .booking-submit:hover {
    background: #005a87;
}


.booking-trigger-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

.booking-trigger-btn:hover {
    background: #005a87;
}

/* Modal Styles */
.booking-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.booking-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.booking-close:hover {
    color: #000;
}

/* Form Styles */
#booking-courses-form h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.booking-section {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.booking-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    font-size: 18px;
}

/* Availability Options */
.availability-options {
    display: grid;
    gap: 10px;
}

.availability-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.availability-option:hover {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.availability-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.availability-option input[type="radio"]:checked + .availability-text {
    font-weight: bold;
    color: #0073aa;
}

.availability-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: #e6f3ff;
}

.availability-text {
    font-size: 16px;
    color: #333;
}

/* Form Rows */


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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Product Options */
.product-options {
    display: grid;
    gap: 10px;
}

.product-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.product-option:hover {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.product-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.product-option:has(input[type="radio"]:checked) {
    border-color: #0073aa;
    background-color: #e6f3ff;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

/* Actions */
.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.booking-cancel,
.booking-submit {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.booking-cancel {
    background-color: #f1f1f1;
    color: #666;
    border: 1px solid #ddd;
}

.booking-cancel:hover {
    background-color: #e1e1e1;
}

.booking-submit {
    background-color: #0073aa;
    color: white;
}

.booking-submit:hover {
    background-color: #005a87;
}

.booking-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading State */
.booking-submit.loading {
    position: relative;
    color: transparent;
}

.booking-submit.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
    
  
    
    .booking-actions {
        flex-direction: column;
    }
    
    .booking-cancel,
    .booking-submit {
        width: 100%;
    }
}

/* Error Messages */
.booking-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.booking-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Booking Details Table Styles */
div#booking-details-table tr td {
    font-family: "Source Sans Pro", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-color: transparent;
    border: none;
}
div#booking-details-table tr td:first-child {
    font-weight: 700;
    color: #000;
}
#booking-details-table tr td{
    border: none;
    
}

/* Course Progression Styles */
.booking-progression-warning {
    background: #730101;
    margin-bottom: 20px;
    box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 10px;
}

.progression-message h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.progression-message p {
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.progression-message .button {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.progression-message .button:hover {
    background: #005a87;
    color: white;
}

.booking-submit:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.booking-submit:disabled:hover {
    background: #ccc !important;
    transform: none !important;
}

/* Course Progression Status Styles */
.booking-progression-status {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-progression-status h4 {
    color: #000;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.booking-progression-status h5 {
    color: #333;
    margin: 15px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.completed-levels ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.completed-levels li {
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    border-left: 4px solid #28a745;
    font-weight: 500;
}

.next-level {
    background: #cacaca24;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #000;
}

.next-level-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px !important;
	color:#252525;
}

.all-levels-completed {
    background: #fff3e0;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
    text-align: center;
}

.all-levels-completed h5 {
    color: #f57c00;
    margin: 0 0 10px 0;
}

.all-levels-completed p {
    color: #ef6c00;
    margin: 0;
    font-weight: 500;
}

/* Detailed Progression Styles */
.level-progress {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.level-progress.level-complete {
    background: #d4edda;
    border-color: #c3e6cb;
}

.level-progress.level-incomplete {
background: #ffffff;
    border-color: #00000026;
}

.level-progress h5 {
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.level-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.level-status.complete {
    background: #28a745;
    color: white;
}

.level-status.incomplete {
     background: #730101;
    color: #fff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #730101;
    transition: width 0.3s ease;
}

.missing-courses {
    margin-top: 10px;
    padding: 10px;
    background:rgb(114 100 100 / 10%);
    border-radius: 4px;
    border-left: 3px solid #000;
}

.missing-courses p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #856404;
}

.missing-courses ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.missing-courses li {
    margin: 4px 0;
    font-size: 14px;
    color: #252525;
}

/* Completed Courses Display Styles */
.completed-courses {
    margin-top: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
    border-left: 3px solid #730101;
}
.completed-courses p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #155724;
    font-weight: 600;
}

.completed-courses ul {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

.completed-courses li {
    margin: 6px 0;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex
;
    align-items: center;
    transition: all 0.3s 
ease;
    background: #7301012e;
    color: #000000;
    border-left: 3px solid #730101;
}

/* All Courses Display Styles (keeping for backward compatibility) */
.all-courses {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.all-courses p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

.all-courses ul {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

.all-courses li {
    margin: 6px 0;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.all-courses li.course-completed {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.all-courses li.course-pending {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.course-status {
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
}

.course-status.completed {
    color: #000000;
}

.course-status.pending {
    color: #ffc107;
}