/**
 * EMLearn – Form Styles
 *
 * Covers the LDGR group-code registration form and the
 * custom join-with-code form.
 *
 * @package EMLearn
 */

/* ---- Hide Group Editing (front-end) ---- */
.ldgr-right-button-container,
.ldgr-u-left {
    display: none !important;
}

/* ---- LDGR Group Code Registration Form ---- */
#ldgr-group-code-registration-form {
    background-color: #f9f9f9;
    padding: 30px;
    border: 2px solid #ccc;
    border-radius: 8px;
    max-width: 700px;
    margin: auto;
}

#ldgr-group-code-registration-form input[type="text"],
#ldgr-group-code-registration-form input[type="email"],
#ldgr-group-code-registration-form input[type="password"] {
    padding: 12px !important;
    border-radius: 5px !important;
    border: 1px solid #999 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px;
    font-size: 16px;
}

#ldgr-group-code-registration-form label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

#ldgr-group-code-registration-form .ldgr-btn {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

#ldgr-group-code-registration-form .ldgr-btn:hover {
    background-color: #005177;
}

/* ---- LDGR Enrol Button (Outline / Divi style) ---- */
#ldgr-user-enroll-form-submit {
    display: inline-block;
    background-color: transparent;
    color: #007bff !important;
    border: 2px solid #007bff;
    border-radius: 3px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: Calibri, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    cursor: pointer;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

#ldgr-user-enroll-form-submit:hover {
    background-color: #007bff;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#ldgr-user-enroll-form-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

.ldgr-group-code-registration-form {
    text-align: center;
}

/* ---- LearnDash UI Overrides ---- */

/* Hide course accordion on lesson pages */
.ld-accordion--course {
    display: none !important;
}

/* Hide quiz "Review" button */
input.wpProQuiz_button2[name="review"] {
    display: none !important;
}

/* Hide Mark Complete button (handled programmatically) */
.learndash_mark_complete_button {
    display: none !important;
}

/* Hide course featured image on single course pages */
.single-sfwd-courses .ld-featured-image {
    display: none !important;
}
