/* Employer Registration Controller Styles */

/* Main container styles */
.employer-registration-controlled {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.erc-header {
    text-align: center;
    margin-bottom: 30px;
}

.erc-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.erc-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.erc-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.erc-contact-info h3 {
    color: #007cba;
    margin-bottom: 15px;
    font-size: 20px;
}

.erc-contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.erc-contact-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.erc-contact-info li:last-child {
    border-bottom: none;
}

.erc-contact-details {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin: 20px 0;
}

.erc-contact-details p {
    margin: 10px 0;
    color: #333;
}

.erc-secret-access {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.erc-secret-access h3 {
    color: #856404;
    margin-bottom: 10px;
}

.erc-secret-form {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.erc-secret-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.erc-secret-form button {
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.erc-secret-form button:hover {
    background: #005a87;
}

.erc-toggle-secret {
    text-align: center;
    margin-top: 20px;
}

#erc-show-secret {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#erc-show-secret:hover {
    background: #545b62;
}

/* Result messages */
.erc-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

.erc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.erc-loading {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #bee5eb;
    margin: 10px 0;
}

/* Hidden modal styles */
#erc-hidden-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.erc-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.erc-modal-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.erc-secret-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border: 2px dashed #007cba;
}

.erc-secret-display code {
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
    letter-spacing: 2px;
}

.erc-close-modal {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.erc-close-modal:hover {
    background: #005a87;
}

/* CRITICAL: PROTECT CANDIDATE SECTION IN POPUP MODAL - NEVER MODIFY IT */
/* These rules ensure the candidate section in popup modal is completely untouched */

/* Hide any ERC elements in popup modal candidate sections */
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] .erc-contact-message,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] .erc-contact-details,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] .erc-contact-btn,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] [class*="erc-"],
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] .erc-secret-access,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] .erc-toggle-secret {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: scale(0) !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Ensure candidate forms are always visible and functional */
.tab-pane[id*="apus_register_form_candidate"] form.register-form-candidate,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] form.register-form-candidate {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: none !important;
    -ms-user-select: auto !important;
}

/* Ensure candidate inputs are never disabled or hidden */
.tab-pane[id*="apus_register_form_candidate"] input,
.tab-pane[id*="apus_register_form_candidate"] select,
.tab-pane[id*="apus_register_form_candidate"] textarea,
.tab-pane[id*="apus_register_form_candidate"] button,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] input,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] select,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] textarea,
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] button {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    position: static !important;
    left: auto !important;
}

/* CRITICAL: Ensure popup modal candidate section is completely protected */
#apus_register_form .tab-pane[id*="apus_register_form_candidate"] {
    /* No modifications to candidate section in popup modal */
}

/* CRITICAL: Ensure popup modal employer section can be modified */
#apus_register_form .tab-pane[id*="apus_register_form_employer"] {
    /* Allow modifications to employer section in popup modal */
}

/* Animation for success messages */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
