/* Candidate registration — isolated from employer form-v2.css */

@keyframes ovde-cr-spin {
    to { transform: rotate(360deg); }
}

.ovde-cr-form {
    max-width: 100%;
    border-radius: 20px;
    position: relative;
}

.ovde-cr-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: space-between;
}

.ovde-cr-main {
    width: 100%;
    padding: 20px;
}

#ovde_candidate_registration_form .ovde-cr-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

#ovde_candidate_registration_form .ovde-cr-col-half {
    flex: 1 1 calc(50% - 12px);
    min-width: 240px;
}

#ovde_candidate_registration_form .ovde-cr-col-full {
    flex: 1 1 100%;
}

#ovde_candidate_registration_form label:not(.ovde-cr-checkbox-label) {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

#ovde_candidate_registration_form input[type="text"],
#ovde_candidate_registration_form input[type="email"],
#ovde_candidate_registration_form input[type="tel"],
#ovde_candidate_registration_form input[type="password"],
#ovde_candidate_registration_form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

.ovde-cr-required-mark {
    color: #d63638;
    font-weight: 500;
}

.ovde-cr-section-divider {
    height: 1px;
    margin: 8px 0 24px;
    background-color: #e8e8e8;
    border: none;
}

.ovde-cr-section .ovde-cr-columns:last-child {
    margin-bottom: 0;
}

.ovde-cr-field-instruction {
    font-size: 14px;
    color: #666;
    margin: 4px 0 8px;
}

.ovde-candidate-registration-logged-in {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ovde-candidate-registration-message {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.ovde-candidate-registration-button,
.ovde-cr-submit-btn,
#ovde_cr_submit_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ovde-candidate-registration-button:hover,
.ovde-cr-submit-btn:hover,
#ovde_cr_submit_btn:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.05);
}

.ovde-cr-submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    vertical-align: -3px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ovde-cr-spin 0.65s linear infinite;
    flex-shrink: 0;
    box-sizing: border-box;
}

#ovde_cr_submit_btn.is-loading {
    opacity: 0.88;
    cursor: wait;
    pointer-events: none;
}

#ovde_cr_submit_btn.is-loading .ovde-cr-submit-spinner {
    display: inline-block;
}

.ovde-cr-group-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

#ovde_cr_job_category {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ovde-cr-checkbox-label,
#ovde_cr_job_category .ovde-cr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2px;
    cursor: pointer;
}

.ovde-cr-category-block {
    margin-bottom: 8px;
}

.ovde-cr-submit-wrap {
    text-align: center;
}

.ovde-cr-error {
    margin-top: 16px;
    padding: 12px;
    color: #a80d0d;
    background-color: #ffe6e6;
    border-radius: 4px;
    border: 1px solid #ff9999;
}

@media (max-width: 640px) {
    #ovde_candidate_registration_form .ovde-cr-col-half {
        flex: 1 1 100%;
    }
}
