.rcgc-form-wrapper {
    font-family: Arial, sans-serif;
    padding-top: 25px;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.rcgc-form-moodle {
    font-family: Arial, sans-serif;
    padding-top: 25px;
    display: grid;

    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.rcgc-form-wrapper .upload-container,
.rcgc-form-wrapper .login-container,
.rcgc-form-wrapper .register-container,
.rcgc-form-wrapper .dashboard-container {
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.rcgc-form-wrapper .dashboard-container {
    max-width: 100%;
}

/* Títulos y Párrafos */
.rcgc-form-wrapper .upload-container h2,
.rcgc-form-wrapper .login-container h2,
.rcgc-form-wrapper .register-container h2,
.rcgc-form-wrapper .dashboard-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.rcgc-form-wrapper .login-container p,
.rcgc-form-wrapper .register-container p,
.rcgc-form-wrapper .dashboard-container p {
    color: #555;
    line-height: 1.6;
}

/* Formularios */
.rcgc-form-wrapper form,
.rcgc-form-wrapper .upload-container form {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    align-items: center !important;
}

.rcgc-form-wrapper form label,
.rcgc-form-wrapper .upload-container label {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.rcgc-form-wrapper form input[type="text"],
.rcgc-form-wrapper form input[type="password"],
.rcgc-form-wrapper form input[type="email"],
.rcgc-form-wrapper form input[type="file"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.rcgc-form-wrapper form input:focus,
.rcgc-form-wrapper .upload-container input:focus {
    border-color: #004A99;
    outline: none;
}

.rcgc-form-wrapper form input:invalid {
    border-color: #e74c3c;
}

.rcgc-form-wrapper form input:valid {
    border-color: #2ecc71;
}

/* Botones */
.rcgc-form-wrapper .upload-container button,
.rcgc-form-wrapper form button {
    background-color: #004A99;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.rcgc-form-wrapper form button {
    background-color: #28a745;
}

.rcgc-form-wrapper form button:hover,
.rcgc-form-wrapper .upload-container button:hover {
    background-color: #004A99;
}

/* Enlaces */
.rcgc-form-wrapper form a {
    color: #004A99;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
}

.rcgc-form-wrapper form a:hover {
    text-decoration: underline;
}

/* Footer */
.rcgc-form-wrapper footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0073C6;
    color: white;
    text-align: center;
}

/* Fieldsets */
.rcgc-form-wrapper fieldset {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    justify-content: center !important;
}

.rcgc-form-wrapper legend {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Items del formulario */
.rcgc-form-wrapper .form-group,
.rcgc-form-wrapper form .fitem {
    margin-bottom: 20px;
    justify-content: center !important;
}

.rcgc-form-wrapper form .fitem .felement {
    padding: 10px;
}

.rcgc-form-wrapper .fitem,
.rcgc-form-wrapper .fitem .felement {
    display: block !important;
    width: 100% !important;
    justify-content: center !important;
}

.rcgc-form-wrapper .fitem header {
    background-color: #f0f0f0;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
}

.rcgc-form-wrapper .fitem label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 100%;
    color: #333;
    width: 100% !important;
    white-space: normal;
    word-break: normal;
}

/* Input personalizado */
.rcgc-form-wrapper .input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.rcgc-form-wrapper .input-wrapper label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--bs-body-color);
}

.rcgc-form-wrapper .input-rcgc {
    border: 1.5px solid #0073aa;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    font-size: 1rem;

    height: 90px;
    width: 100% !important;
    transition: all 0.2s ease-in-out;
}

.rcgc-form-wrapper .input-rcgc:focus {
    border-color: #005f8d;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    background-color: #eef8ff;
}

/* Stepper */
.rcgc-form-wrapper .rcgc-stepper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.rcgc-form-wrapper .rcgc-stepper .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
}

.rcgc-form-wrapper .rcgc-stepper .step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 30px;
    height: 4px;
    background-color: #ccc;
    transform: translateY(-50%);
    z-index: -1;
}

.rcgc-form-wrapper .rcgc-stepper .step:last-child::after {
    display: none;
}

.rcgc-form-wrapper .rcgc-stepper .step.active,
.rcgc-form-wrapper .rcgc-stepper .step.active::after {
    background-color: #0056b3;
}

.rcgc-form-wrapper .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Asegura 100% en contenedor */
.rcgc-form-wrapper .register-container,
.rcgc-form-wrapper .login-container,
.rcgc-form-wrapper .upload-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}


.rcgc-form-wrapper .mform .d-flex .form-control {
    max-width: 100%;
}

@media (min-width: 768px) {
    .rcgc-form-wrapper .col-md-3 {
        flex: 0 0 25%;
        max-width: 32%;
    }
    .rcgc-form-wrapper  .mform .d-flex .form-control {
    width: 400px;
    max-width: 100% !important;
}
}

.rcgc-form-wrapper  .mform .d-flex .form-control {
    width: 400px;
    max-width: 100% !important;
}

.rcgc-form-wrapper .custom-select {
    /* width: auto; */
    max-width: 100%;
}