/* courses/course-panel.css */

/* --- General Section & Container Styling --- */
.course-section {
    padding: 30px 5%; /* Top/Bottom: 30px, Sides: 5% (PC) */
    background-color: #f9f9f9;
    min-height: 80vh;
}

.course-container {
    max-width: 1000px;
    margin: 0 auto; /* Center the container on larger screens */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow for professionalism */
}

/* --- Typography --- */
.course-title {
    font-size: 1.8rem; /* Further decreased size as requested */
    color: #0056b3; /* Trust Blue (Updated) */
    font-weight: 700;
    text-align: center; /* Center the header (Updated) */
    text-transform: uppercase; /* Block letters (Updated) */
    letter-spacing: 1px; /* Further reduced spacing as requested */
    /* white-space: nowrap; and overflow: hidden; removed to allow wrapping on mobile */
    border-bottom: none; /* No horizontal line (Updated) */
    display: block; /* Ensure it takes full width for centering (Updated) */
    padding-bottom: 0;
    margin-bottom: 25px; /* Adjust margin for spacing without subtitle */
}

/* NEW: Styling for Intake II subtitle */
.course-intake-subtitle {
    display: block; /* Forces new line */
    font-size: 1.2rem; /* Decreased font size */
    color: #E6A800; /* Dark Yellow */
    font-weight: 600; /* Slightly less bold */
    margin-top: 5px; /* Small separation from main title */
}

/* NEW: Styling for the 'Apply Now' Button */
.apply-now-btn {
    display: block; /* Makes it take full width of container */
    max-width: fit-content; /* Limits the width for centering on desktop */
    margin: -10px auto 35px auto; /* Centered, reduced top margin, increased bottom margin to separate from next H3 */
    padding: 12px 25px;
    border: none; /* Border changed to yellow highlight color */
    border-radius: 8px;
    background-color: #000000; /* Dark Background */
    color: #ffffff; /* Very Light Yellow Text (Lighter) */
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none; /* Remove underline from anchor tag */
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Box-shadow removed for a simpler, trusty look */
}

.apply-now-btn:hover,
.apply-now-btn:focus {
    background-color: #000000; /* Slightly lighter dark color for simple hover */
    color: #ffff00; /* Pure White (Maximum lightness on hover) */
    /* Box-shadow removed for a simpler, trusty look */
    outline: none;
}
/* END NEW */

/* .course-subtitle block removed */

h3 {
    font-size: 1.3rem; /* Further decreased size as requested */
    color: #696969; /* Dark silver/Dim Gray as requested */
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px; /* Restored for visual separation */
    border-bottom: 2px solid #f0f0f0; /* Restored for visual separation */
    text-transform: uppercase; /* Uppercase */
    letter-spacing: 1px; /* Adjusted: Reduced spacing */
}

.course-note {
    background-color: #fff8e1; /* Light yellow background for notice */
    color: #333333;
    padding: 15px;
    border-left: 5px solid #ffc107;
    margin: 30px 0;
    font-size: 1rem;
    line-height: 1.6;
}

#deadline {
    color: #d32f2f; /* Red color for emphasis on deadline */
    font-weight: 700;
}

/* --- Course Details Table (Tables) --- */
.course-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.course-table th,
.course-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

.course-table th {
    width: 30%; /* Set width for the description column */
    min-width: 120px; /* Prevents TH from collapsing too much */
    background-color: #f0f4f8; /* Very light blue/gray for professionalism */
    color: #1C1C1C;
    font-weight: 600;
}

.course-table td {
    color: #444444;
}

.course-table tr:last-child th,
.course-table tr:last-child td {
    border-bottom: none;
}

/* --- Registration Form --- */
.course-form {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #E6A800; /* Border to highlight the application area */
    border-radius: 6px;
    background-color: #ffffff;
}

.course-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0078AA; /* Darker Sky Blue (Brand Color) - Overrides generic h3 color */
    border-bottom: 1px dashed #cccccc; /* Overrides generic h3 border */
    padding-bottom: 10px;
    /* Inherits: font-size, uppercase, and letter-spacing from generic h3 */
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333333;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    /* Removed transition for performance */
    /* transition: border-color 0.3s; */
}

.form-group input:focus,
.form-group select:focus {
    border-color: #6A0DAD; /* Highlight on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2);
}

/* NEW: Styling for Checkbox Group (Hidden, but keeping its styles clean) */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    padding: 0; 
    border: 1px solid #cccccc;
}

.checkbox-group label {
    display: inline;
    font-weight: 400;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #444;
}

.checkbox-group label a {
    color: #6A0DAD;
    text-decoration: underline;
    font-weight: 600;
}

/* START: Submit Button CSS (Centered, Responsive, Professional) */
.submit-btn {
    /* Centering: Set width and use auto margins */
    display: block; 
    width: 100%; /* Default: Full width on small screens */
    max-width: 350px; /* Max width for centering on larger screens */
    margin: 25px auto 0 auto; /* Center horizontally, 25px top margin */
    
    padding: 14px 25px; /* Comfortable padding */
    border: none;
    border-radius: 8px; /* Slightly more rounded */
    
    /* Trusty & Professional Look */
    background-color: #0078AA; /* Darker Sky Blue (Brand Color - Trust) */
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Subtle Shadow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* Hover/Focus State for Usability/Feedback */
.submit-btn:hover,
.submit-btn:focus {
    background-color: #005f8a; /* Slightly darker on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Lift up slightly */
    outline: none; 
}

/* Active/Click State */
.submit-btn:active {
    background-color: #004c70; /* Darker for 'pressed' look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

/* Disabled State (When processing) */
.submit-btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
/* END: Submit Button CSS */


.success-message {
    color: green;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    opacity: 0; /* Hidden by default, shown by JavaScript */
    transition: opacity 0.5s; /* Kept for the JS success message fade-in */
}

/* --- Responsive Adjustments --- */

/* Mobile Responsiveness (Screen width <= 600px) */
@media (max-width: 600px) {
    .course-section {
        padding: 20px 2%; /* Reduced side padding */
    }

    .course-container {
        padding: 15px;
    }

    .course-title {
        font-size: 1.4rem;
    }
    
    .course-intake-subtitle {
        font-size: 1rem;
    }

    /* Adjust the new button's margin for better mobile flow */
    .apply-now-btn {
        font-size: 1rem;
        padding: 10px 20px;
        margin-bottom: 25px;
    }

    h3 {
        font-size: 1.1rem;
        margin-top: 25px;
    }

    .course-table th,
    .course-table td {
        display: table-cell;
        width: auto;
        padding: 10px;
    }

    .course-table th {
        background-color: #f0f4f8;
        border-bottom: 1px solid #eeeeee;
    }
    
    .course-table tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
    }

    .course-form {
        padding: 20px;
    }

    .submit-btn {
        padding: 12px 15px; /* Slightly reduced padding for mobile */
        font-size: 1.05rem; /* Slightly reduced font size for mobile */
    }
}