/* ==========================================================================
   Lumina HR Connect - Candidate Registration Multi-Step Form & Animations
   ========================================================================== */

/* CTA Announcement Banner */
.candidate-cta-banner {
    background: linear-gradient(135deg, #02276E 0%, #0769C4 100%);
    border-radius: 18px;
    padding: 40px 45px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(2, 39, 110, 0.18);
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.candidate-cta-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.candidate-cta-banner .offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffaa17;
    color: #02276E;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(255, 170, 23, 0.35);
    animation: badgePulse 2.5s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.candidate-cta-banner h2 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.candidate-cta-banner p {
    color: #e2eeff;
    font-size: 16px;
    line-height: 26px;
    max-width: 820px;
    margin-bottom: 22px;
}

.candidate-cta-banner .cta-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.candidate-cta-banner .contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.candidate-cta-banner .contact-chip:hover {
    background: #ffffff;
    color: #02276E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.candidate-cta-banner .contact-chip i {
    font-size: 16px;
}

.candidate-cta-banner .contact-chip.whatsapp-chip:hover i {
    color: #25D366;
}

/* Sectors Showcase Grid */
.sector-showcase-section {
    margin-bottom: 60px;
}

.sector-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 8px 24px rgba(2, 39, 110, 0.06);
    border: 1px solid #e7eff8;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(7, 105, 196, 0.12);
    border-color: #b7d6f5;
}

.sector-card .sector-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e4f2ff 0%, #cce5ff 100%);
    color: #0769C4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sector-card:hover .sector-icon {
    background: #0769C4;
    color: #ffffff;
    transform: rotate(5deg) scale(1.05);
}

.sector-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #02276E;
    margin-bottom: 12px;
}

.sector-card p {
    font-size: 14px;
    color: #666;
    line-height: 22px;
    margin-bottom: 15px;
}

.sector-card .roles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sector-card .role-pill {
    background: #f0f6fd;
    color: #02276E;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #dce8f5;
    font-weight: 500;
}

/* ==========================================================================
   Candidate Multi-Step Form Wrapper
   ========================================================================== */
.registration-form-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(2, 39, 110, 0.10);
    border: 1px solid #e1ecf8;
    padding: 45px 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .registration-form-card {
        padding: 30px 20px;
    }
    .candidate-cta-banner {
        padding: 30px 20px;
    }
}

/* Form Header & Progress */
.form-header-area {
    text-align: center;
    margin-bottom: 35px;
}

.form-header-area .form-badge {
    display: inline-block;
    background: #e6f1fc;
    color: #0769C4;
    font-weight: 600;
    font-size: 13px;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.form-header-area h2 {
    font-size: 32px;
    font-weight: 700;
    color: #02276E;
    margin-bottom: 8px;
}

.form-header-area p {
    color: #666;
    font-size: 15px;
    max-width: 620px;
    margin: 0 auto;
}

/* Step Progress Indicator */
.step-progress-wrapper {
    margin-bottom: 40px;
}

.step-indicator-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-track {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e6eef7;
    z-index: 1;
    border-radius: 4px;
}

.progress-track-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #0769C4, #28a745);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: transparent;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #d8e6f5;
    color: #8aa4c2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-node.active .step-circle {
    border-color: #0769C4;
    background: #0769C4;
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(7, 105, 196, 0.18);
    transform: scale(1.08);
}

.step-node.completed .step-circle {
    border-color: #28a745;
    background: #28a745;
    color: #ffffff;
}

.step-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7b8fa7;
    transition: color 0.3s ease;
    text-align: center;
}

.step-node.active .step-label {
    color: #02276E;
    font-weight: 700;
}

.step-node.completed .step-label {
    color: #28a745;
}

@media (max-width: 600px) {
    .step-label {
        display: none;
    }
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .progress-track {
        top: 19px;
        left: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   Form Steps & Animations
   ========================================================================== */
.form-step {
    display: none;
    animation: fadeInSlide 0.45s ease-out forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title-box {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #e7eff8;
}

.step-title-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #02276E;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.step-title-box p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Form Controls & Floating Style */
.form-group-item {
    margin-bottom: 22px;
}

.form-group-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #02276E;
    margin-bottom: 7px;
}

.form-group-item label .req {
    color: #e53935;
    margin-left: 3px;
}

.form-group-item .form-text-hint {
    font-size: 12px;
    color: #7b8fa7;
    margin-top: 4px;
}

.custom-input,
.custom-select,
.custom-textarea {
    width: 100%;
    height: 52px;
    background: #fbfdff;
    border: 1.5px solid #dce8f5;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #111111;
    transition: all 0.25s ease;
    outline: none;
}

.custom-textarea {
    height: 105px;
    resize: vertical;
}

.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
    border-color: #0769C4;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(7, 105, 196, 0.12);
}

.custom-input.is-invalid,
.custom-select.is-invalid {
    border-color: #e53935;
    background: #fff8f8;
}

.invalid-feedback-msg {
    display: none;
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.custom-input.is-invalid + .invalid-feedback-msg,
.custom-select.is-invalid + .invalid-feedback-msg {
    display: block;
}

/* Sector Selection Cards */
.sector-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 24px;
}

.sector-option-card {
    background: #f7faff;
    border: 2px solid #dce8f5;
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.sector-option-card:hover {
    border-color: #0769C4;
    background: #ffffff;
    transform: translateY(-2px);
}

.sector-option-card.selected {
    border-color: #0769C4;
    background: #f0f7ff;
    box-shadow: 0 6px 18px rgba(7, 105, 196, 0.15);
}

.sector-option-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 13px;
    color: #0769C4;
}

.sector-option-card i {
    font-size: 26px;
    color: #0769C4;
    margin-bottom: 10px;
    display: block;
}

.sector-option-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #02276E;
    margin-bottom: 3px;
}

.sector-option-card .card-desc {
    font-size: 12px;
    color: #7b8fa7;
}

/* Dynamic Role Section Box */
.role-questions-box {
    background: #f8fbff;
    border: 1.5px solid #dbe8f7;
    border-radius: 16px;
    padding: 28px 24px;
    margin-top: 15px;
    animation: fadeInSlide 0.35s ease;
}

.role-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #02276E;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Location Pills Multi-Select */
.locations-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.loc-pill {
    background: #f2f7fc;
    border: 1px solid #d4e3f3;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #02276E;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.loc-pill:hover {
    background: #e4effb;
    border-color: #0769C4;
}

.loc-pill.selected {
    background: #0769C4;
    border-color: #0769C4;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(7, 105, 196, 0.25);
}

/* File Upload Zone */
.upload-dropzone {
    border: 2px dashed #0769C4;
    background: #fbfdff;
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-dropzone:hover {
    background: #f0f7ff;
    border-color: #02276E;
}

.upload-dropzone i {
    font-size: 38px;
    color: #0769C4;
    margin-bottom: 10px;
    display: block;
}

.upload-dropzone h5 {
    font-size: 16px;
    font-weight: 600;
    color: #02276E;
    margin-bottom: 4px;
}

.upload-dropzone p {
    font-size: 13px;
    color: #7b8fa7;
    margin: 0;
}

.uploaded-file-preview {
    display: none;
    margin-top: 12px;
    background: #eef6fd;
    border: 1px solid #c7e0f8;
    border-radius: 8px;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #02276E;
}

.uploaded-file-preview .remove-file-btn {
    color: #e53935;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

/* Candidate Review Summary Card */
.review-summary-card {
    background: #f8fbff;
    border: 1.5px solid #dce8f5;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.review-summary-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #02276E;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 18px;
}

.review-item {
    font-size: 13.5px;
}

.review-item .r-label {
    color: #7b8fa7;
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.review-item .r-val {
    color: #02276E;
    font-weight: 600;
}

/* Consent Box */
.consent-box-wrap {
    background: #fffcf4;
    border: 1.5px solid #f6e3ba;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 25px;
}

.consent-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    line-height: 22px;
    margin: 0;
}

.consent-check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #0769C4;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-check-label a {
    color: #0769C4;
    text-decoration: underline;
    font-weight: 600;
}

/* Form Action Buttons */
.form-actions-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e7eff8;
}

.btn-step-prev {
    background: #eef3f9;
    color: #02276E;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-step-prev:hover {
    background: #dce7f3;
    color: #02276E;
}

.btn-step-next,
.btn-step-submit {
    background: #0769C4;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 13px 34px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(7, 105, 196, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-step-next:hover,
.btn-step-submit:hover {
    background: #02276E;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 39, 110, 0.30);
}

.btn-step-submit {
    background: #28a745;
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.25);
}

.btn-step-submit:hover {
    background: #218838;
}

/* ==========================================================================
   Confirmation / Success Screen (Step 5)
   ========================================================================== */
.submission-success-card {
    text-align: center;
    padding: 50px 20px;
    animation: fadeInSlide 0.5s ease-out;
}

.success-icon-bubble {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e6f9ed;
    border: 3px solid #28a745;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: 0 auto 24px;
    animation: checkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
    0% { transform: scale(0.4); opacity: 0; }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.submission-success-card h3 {
    font-size: 30px;
    font-weight: 700;
    color: #02276E;
    margin-bottom: 12px;
}

.success-message-text {
    font-size: 16px;
    color: #444;
    line-height: 26px;
    max-width: 650px;
    margin: 0 auto 24px;
    background: #f4f9ff;
    border: 1px solid #d4e5f7;
    padding: 18px 22px;
    border-radius: 12px;
}

.ref-id-badge {
    display: inline-block;
    background: #02276E;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.8px;
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-whatsapp-success {
    background: #25D366;
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.30);
}

.btn-whatsapp-success:hover {
    background: #1ebd5a;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary-action {
    background: #eef3f9;
    color: #02276E;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary-action:hover {
    background: #dce7f3;
    color: #02276E;
}

/* Date of Birth 3-Part Selector */
.dob-picker-group {
    display: flex;
    gap: 8px;
}

.dob-picker-group .dob-col {
    flex: 1;
}

.dob-picker-group .dob-year-col {
    flex: 1.35;
}

.dob-picker-group select.custom-select {
    padding: 10px 12px;
    font-size: 14.5px;
    height: 52px;
    text-align-last: center;
}

.dob-picker-group select.custom-select:focus {
    border-color: #0769C4;
}

@media (max-width: 480px) {
    .dob-picker-group {
        gap: 5px;
    }
    .dob-picker-group select.custom-select {
        padding: 8px 6px;
        font-size: 13.5px;
    }
}

