/* css/exigo-plugin.css */

.exigo-registration-options {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.exigo-registration-options h2 {
    text-align: center;
    color: #00A9E0;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.exigo-registration-container {
    padding: 20px;
}

.registration-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .registration-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

.existing-customer, .new-customer {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.existing-customer:hover, .new-customer:hover {
    transform: translateY(-2px);
}

.existing-customer h3, .new-customer h3 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.existing-customer p, .new-customer p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Formularios */
#exigo-login-form, #exigo-new-customer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

#exigo-login-form input, 
#exigo-new-customer-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#exigo-login-form input:focus, 
#exigo-new-customer-form input:focus {
    border-color: #00A9E0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 169, 224, 0.2);
}

button[type="submit"], 
.exigo-button {
    background: #00A9E0;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    width: 100%;
}

button[type="submit"]:hover,
.exigo-button:hover {
    background: #0090c1;
    transform: translateY(-1px);
}

/* Loader */
#exigo-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00A9E0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Información del reclutador */
#recruiter-info {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
}

.recruiter-info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recruiter-info-box p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #495057;
}

.recruiter-info-box strong {
    color: #333;
    font-weight: 600;
    margin-right: 0.5rem;
}

.recruiter-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.recruiter-actions button {
    flex: 1;
}

/* Formulario de registro */
#exigo-registration-form {
    display: none;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00A9E0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

#exigo-registration-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

#exigo-registration-form input:focus {
    border-color: #00A9E0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 169, 224, 0.1);
}

#exigo-registration-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

#exigo-registration-form label.required:after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

#exigo-registration-form h3 {
    color: #00A9E0;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
}

.button-secondary {
    background: #6c757d;
}

.button-secondary:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 767px) {
    .exigo-registration-options {
        padding: 1rem;
    }

    .existing-customer, .new-customer {
        padding: 1.5rem;
    }

    .exigo-registration-options h2 {
        font-size: 2rem;
    }

    .existing-customer h3, .new-customer h3 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Añadir al css existente */
#exigo-registration-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    appearance: none; /* Remueve los estilos nativos del navegador */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

#exigo-registration-form select:focus {
    border-color: #00A9E0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 169, 224, 0.1);
}

#exigo-registration-form select:hover {
    border-color: #00A9E0;
}

#exigo-registration-form select option {
    padding: 0.5rem;
}