/* Course Management Plugin Styles */

.course-management-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.course-media {
    flex: 1;
    max-width: 500px;
}

.course-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.course-carousel {
    position: relative;
}

.carousel-slide {
    display: none;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.course-description {
    flex: 1;
}

.course-description h2 {
    margin-top: 0;
    color: #333;
}

.course-location,
.course-deadline {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

/* Location link styling */
.course-location a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-location a:hover {
    color: #005a87;
    text-decoration: underline;
}

.course-location a:visited {
    color: #0073aa;
}

.course-dates {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
    background: #e8f4fd;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #b8daff;
}

/* Course Details Styling */
.course-details {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
}

.course-details strong {
    color: #495057;
}

.course-deadline {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.course-text {
    line-height: 1.6;
    color: #666;
}

.course-booking-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Course Action Buttons */
.course-action-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.course-action-btn {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-action-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.interest-btn {
    background: #28a745;
}

.interest-btn:hover {
    background: #218838;
}

/* Form Container */
.form-container {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field.field-width-full {
    grid-column: 1 / -1;
}

.form-field.field-width-half {
    grid-column: span 1;
}

.form-field {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 15px;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label {
    font-weight: normal;
    margin: 0;
    line-height: 1.6;
    color: #333;
    cursor: pointer;
}

.checkbox-label strong {
    font-weight: 600;
    color: #222;
}

/* Aggression Confirmation - Warning callout style */
.form-field:has(input[name="aggression_confirm"]) {
    background: #fffbf0;
    border-left: 4px solid #ff9800;
    padding: 18px;
    border-radius: 4px;
    margin-top: 20px;
}

.form-field:has(input[name="aggression_confirm"]) .checkbox-field {
    margin-top: 0;
}

.form-field:has(input[name="aggression_confirm"]) .checkbox-label {
    color: #333;
}

.form-field:has(input[name="aggression_confirm"]) .checkbox-label small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* GDPR Consent - Prominent bordered box */
.gdpr-checkbox {
    background: white;
    border: 2px solid #2271b1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.gdpr-checkbox .checkbox-field {
    margin-top: 0;
}

.gdpr-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #2271b1;
}

.gdpr-checkbox .checkbox-label {
    font-size: 15px;
    color: #2271b1;
}

.gdpr-checkbox .checkbox-label strong {
    color: #135e96;
    font-size: 16px;
}

/* Hover effects */
.form-field:has(input[name="aggression_confirm"]):hover {
    background: #fff8e1;
}

.gdpr-checkbox:hover {
    border-color: #135e96;
    box-shadow: 0 3px 12px rgba(34, 113, 177, 0.15);
}

/* Checked states */
.form-field:has(input[name="aggression_confirm"]:checked) {
    border-left-color: #4caf50;
    background: #f1f8f4;
}

.gdpr-checkbox:has(input[type="checkbox"]:checked) {
    border-color: #4caf50;
    background: #f6fdf9;
}

/* Error states */
.checkbox-field.checkbox-error {
    padding: 15px;
    border: 2px solid #dc3545;
    background: #f8d7da;
    border-radius: 6px;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .form-field:has(input[name="aggression_confirm"]),
    .gdpr-checkbox {
        padding: 15px;
    }
    
    .gdpr-checkbox .checkbox-label strong {
        font-size: 15px;
    }
}

.form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* Submit Button (Book Now / Register Interest) */
.submit-btn {
    background: #007cba;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
    min-width: 160px;
}

.submit-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Cancel Button */
.cancel-btn {
    background: #6c757d;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    min-width: 160px;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.cancel-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Alternative: If you want the submit button to be green for "Book Now" */
.course-form[data-form-type="booking"] .submit-btn {
    background: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.course-form[data-form-type="booking"] .submit-btn:hover:not(:disabled) {
    background: #218838;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-submit {
        flex-direction: column;
        width: 100%;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .submit-btn,
    .cancel-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}
