/**
 * Bullhorn Candidate Registration — Styles
 * Branded for iMultiply Resourcing
 * Version: 1.1.0
 */


/* ============================================
   POPUP OVERLAY
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(4px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 20px !important;
    margin: 0 !important;
    animation: bhRegFadeIn 0.3s ease;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

@keyframes bhRegFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ============================================
   POPUP CONTAINER
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-container {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 36px 32px !important;
    max-width: 480px !important;
    width: 100% !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border: 3px solid #2B7A78 !important;
    background-image: none !important;
    animation: bhRegSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    float: none !important;
}

@keyframes bhRegSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ============================================
   CLOSE BUTTON
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #9CA3AF !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    z-index: 10 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-close:hover {
    background: #F3F4F6 !important;
    color: #1F2937 !important;
}


/* ============================================
   HEADER — Georgia headings
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-header {
    margin-bottom: 24px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-title {
    font-family: Georgia, 'Times New Roman', Times, serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2B7A78 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.3px;
    line-height: 1.2 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-subtitle {
    font-size: 14px !important;
    color: #6B7280 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}


/* ============================================
   FORM LAYOUT
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}


/* ============================================
   INPUT FIELDS
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-input-group {
    position: relative !important;
    margin: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9CA3AF !important;
    font-size: 16px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-input {
    width: 100% !important;
    padding: 12px 14px 12px 42px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1F2937 !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-input::placeholder {
    color: #9CA3AF !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-input:focus {
    outline: none !important;
    border-color: #2B7A78 !important;
    box-shadow: 0 0 0 3px rgba(43, 122, 120, 0.12) !important;
}


/* ============================================
   NAME ROW — Two columns
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-row {
    display: flex !important;
    gap: 12px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-row .bh-input-group {
    flex: 1 !important;
}

@media (max-width: 480px) {
    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-row {
        flex-direction: column !important;
        gap: 14px !important;
    }
}


/* ============================================
   FILE UPLOAD
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload {
    position: relative !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-input {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: 2px dashed #D1D5DB !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    background: #F9FAFB !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-label:hover {
    border-color: #91C13E !important;
    background: #F3F4F6 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-icon {
    font-size: 24px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-text {
    flex: 1 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-text strong {
    color: #2B7A78 !important;
    display: block !important;
    font-size: 14px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-file-upload-text small {
    color: #6B7280 !important;
    font-size: 12px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-file-name {
    margin-top: 6px !important;
    font-size: 13px !important;
    color: #6B7280 !important;
    padding-left: 4px !important;
}


/* ============================================
   LINKEDIN FIELD + HELPER BUTTON
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-group {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-input-wrap {
    flex: 1 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-icon::before {
    content: "🔗" !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 14px !important;
    background: #0A66C2 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0 !important;
    border: none !important;
    cursor: pointer !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-btn:hover,
.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-btn:focus {
    background: #004182 !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    background: #fff !important;
    color: #0A66C2 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-help {
    margin: -6px 0 0 0 !important;
    font-size: 12px !important;
    color: #9CA3AF !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

@media (max-width: 480px) {
    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-group {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-btn {
        justify-content: center !important;
        padding: 10px 14px !important;
    }
}


/* ============================================
   RIGHT TO WORK RADIO GROUP
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-rtw-group {
    padding: 14px 16px !important;
    background: #F9FAFB !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-rtw-label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1F2937 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-required {
    color: #EF4444 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-rtw-options {
    display: flex !important;
    gap: 12px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-radio {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #1F2937 !important;
    padding: 8px 20px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all 0.2s ease;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-radio:hover {
    border-color: #91C13E !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-radio input[type="radio"] {
    accent-color: #91C13E !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-radio:has(input:checked) {
    border-color: #91C13E !important;
    background: rgba(145, 193, 62, 0.08) !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-rtw-decline {
    margin-top: 10px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-rtw-decline p {
    margin: 0 !important;
    padding: 10px 14px !important;
    background: #FEF3C7 !important;
    border: 1px solid #FCD34D !important;
    border-radius: 8px !important;
    color: #92400E !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}


/* ============================================
   SUBMIT BUTTON — iMultiply green
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-submit {
    width: 100% !important;
    padding: 14px 24px !important;
    background: #91C13E !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    margin-top: 6px !important;
    box-shadow: 0 4px 12px rgba(145, 193, 62, 0.3) !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-submit:hover:not(:disabled) {
    background: #7DA832 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 193, 62, 0.4) !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-submit:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}


/* ============================================
   MESSAGES
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-reg-messages {
    margin-bottom: 8px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-error {
    background: #FEE2E2 !important;
    border: 1px solid #FCA5A5 !important;
    color: #DC2626 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-error::before {
    content: "⚠️" !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-success {
    background: #D1FAE5 !important;
    border: 1px solid #6EE7B7 !important;
    color: #059669 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-success::before {
    content: "✓" !important;
    font-size: 16px !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
}


/* ============================================
   FOOTER
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-footer {
    margin-top: 16px !important;
    text-align: center !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-footer-text {
    font-size: 12px !important;
    color: #9CA3AF !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-footer-text a {
    color: #2B7A78 !important;
    text-decoration: none !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-footer-text a:hover {
    text-decoration: underline !important;
}


/* ============================================
   LOADING SPINNER
   ============================================ */

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-loading {
    position: relative !important;
    pointer-events: none !important;
    color: transparent !important;
}

.bh-popup-overlay[data-popup-type="registration"] .bh-popup-loading::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
    border: 3px solid #fff !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: bhRegSpin 0.8s linear infinite !important;
}

@keyframes bhRegSpin {
    to { transform: rotate(360deg); }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .bh-popup-overlay[data-popup-type="registration"] {
        padding: 10px !important;
    }

    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-container {
        padding: 28px 20px !important;
        border-radius: 10px !important;
    }

    .bh-popup-overlay[data-popup-type="registration"] .bh-popup-title {
        font-size: 24px !important;
    }

    .bh-popup-overlay[data-popup-type="registration"] .bh-popup-input {
        padding: 10px 12px 10px 38px !important;
        font-size: 14px !important;
    }

    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-submit {
        padding: 12px 20px !important;
    }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .bh-popup-overlay[data-popup-type="registration"],
    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-container,
    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-close,
    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-submit,
    .bh-popup-overlay[data-popup-type="registration"] .bh-reg-linkedin-btn {
        animation: none !important;
        transition: none !important;
    }
}
