/* HR Form CSS - Test UI Style */

/* === PAGE BACKGROUND === */
.hr-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
}

/* === FORM CARD === */
.hr-form-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* === HEADER === */
.hr-form-header {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.hr-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #2d3091;
}

.hr-form-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* === PROGRESS BAR === */
.hr-progress-container {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 20px;
}

.hr-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
    overflow: hidden;
}

.hr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d3091, #667eea);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.hr-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: left;
}

#currentStepText {
    font-weight: 600;
    color: #2d3091;
}

/* === STEP DOTS === */
.hr-steps-mini {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.hr-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.hr-step-dot:hover {
    border-color: #2d3091;
    color: #2d3091;
}

.hr-step-dot.active {
    background: #2d3091;
    border-color: #2d3091;
    color: white;
    transform: none;
}

.hr-step-dot.completed {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
}

.hr-step-dot.active.completed {
    background: #2d3091;
    border-color: #2d3091;
    color: white;
}

/* === STEP CONTENT === */
.hr-step-content {
    display: none;
    padding: 0;
}

.hr-step-content.active {
    display: block;
    animation: hrFadeIn 0.3s ease;
}

@keyframes hrFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SECTION === */
.hr-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 0;
}

.hr-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #2d3091;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.hr-section-title i {
    font-size: 18px;
    color: #2d3091;
}

.hr-section-hint {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: auto;
    text-transform: none;
    letter-spacing: 0;
}

/* === FORM INPUTS === */
.form-inner {
    margin-bottom: 20px;
}

.form-inner > label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-inner > label .text-danger {
    color: #e74c3c;
    margin-left: 2px;
}

.form-inner input[type="text"],
.form-inner input[type="email"],
.form-inner input[type="tel"],
.form-inner input[type="date"],
.form-inner input[type="number"],
.form-inner select,
.form-inner textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #fafbfc;
    font-family: inherit;
    color: #222;
}

.form-inner input::placeholder,
.form-inner textarea::placeholder {
    color: #bbb;
    font-weight: 400;
}

.form-inner input:focus,
.form-inner select:focus,
.form-inner textarea:focus {
    border-color: #2d3091;
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 48, 145, 0.08);
    background: white;
}

.form-inner input.has-error,
.form-inner select.has-error,
.form-inner textarea.has-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08);
}

.form-inner .error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-inner .form-text {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.form-inner textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Wrapper */
.hr-select-wrapper {
    position: relative;
}

.hr-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.hr-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    transition: color 0.2s;
    display: flex;
}

.hr-select-wrapper:focus-within .hr-select-arrow {
    color: #2d3091;
}

/* === RADIO & CHECKBOX GROUPS === */
.hr-radio-group,
.hr-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hr-radio-group > label,
.hr-checkbox-group > label {
    flex: 1 1 auto;
    min-width: 140px;
}

/* Gender - equal width side by side */
[data-field-wrapper="gender"] .hr-radio-group {
    flex-wrap: nowrap;
}

[data-field-wrapper="gender"] .hr-radio-group > label {
    flex: 1 1 0;
    min-width: 0;
}

.hr-radio-group.vertical {
    flex-direction: column;
    gap: 8px;
}

.hr-radio-group.vertical > label {
    flex: unset;
    min-width: unset;
}

.hr-radio,
.hr-checkbox {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.hr-radio:hover,
.hr-checkbox:hover {
    border-color: #c5cae9;
    background: #f8f9ff;
}

.hr-radio input[type="radio"],
.hr-checkbox input[type="checkbox"] {
    display: none;
}

/* Option Letter Badge */
.hr-option-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f0f0;
    font-weight: 700;
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
    transition: all 0.2s;
}

/* Option Text */
.hr-option-text {
    flex: 1;
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
    font-weight: 500;
}

/* Option Check Icon */
.hr-option-check {
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
    color: #2d3091;
    display: flex;
}

/* Checked States */
.hr-radio:has(input:checked),
.hr-checkbox:has(input:checked) {
    border-color: #2d3091;
    background: #f0f2ff;
}

.hr-radio:has(input:checked) .hr-option-letter,
.hr-checkbox:has(input:checked) .hr-option-letter {
    background: #2d3091;
    color: white;
}

.hr-radio:has(input:checked) .hr-option-text,
.hr-checkbox:has(input:checked) .hr-option-text {
    color: #2d3091;
    font-weight: 600;
}

.hr-radio:has(input:checked) .hr-option-check,
.hr-checkbox:has(input:checked) .hr-option-check {
    opacity: 1;
}

/* === FILE INPUT === */
.hr-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.hr-file-dropzone:hover {
    border-color: #2d3091;
    background: #f0f2ff;
}

.hr-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #f0f2ff;
    border-radius: 14px;
    transition: all 0.2s;
}

.hr-file-dropzone:hover .hr-file-icon {
    background: #e0e3ff;
    transform: translateY(-2px);
}

.hr-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3091;
}

.hr-file-hint {
    font-size: 12px;
    color: #999;
}

/* === ALERTS === */
.hr-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.hr-alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hr-alert-info {
    background: #f0f2ff;
    color: #444;
    border-left: 4px solid #2d3091;
    border-radius: 0 12px 12px 0;
}

.hr-alert-info i {
    color: #2d3091;
}

.hr-alert-warning {
    background: #fff8e1;
    color: #5d4037;
    border-left: 4px solid #ffc107;
    border-radius: 0 12px 12px 0;
}

.hr-alert-danger {
    background: #ffeef0;
    color: #c62828;
    border-left: 4px solid #e74c3c;
    border-radius: 0 12px 12px 0;
}

/* === DYNAMIC ITEMS === */
.dynamic-item {
    background: #fafafa;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.dynamic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dynamic-item-header span {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.remove-item-btn {
    background: #fee;
    color: #e74c3c;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.remove-item-btn:hover {
    background: #e74c3c;
    color: white;
}

.hr-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9ff;
    border: 2px dashed #2d3091;
    color: #2d3091;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.hr-add-btn:hover {
    background: #f0f2ff;
    border-style: solid;
}

/* === STEP NAVIGATION === */
.hr-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.hr-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hr-nav-btn.prev {
    background: #f0f0f0;
    color: #555;
}

.hr-nav-btn.prev:hover {
    background: #e0e0e0;
}

.hr-nav-btn.next {
    background: #2d3091;
    color: white;
}

.hr-nav-btn.next:hover {
    background: #1a1f6e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,48,145,0.3);
}

/* === SUBMIT BUTTON === */
.hr-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hr-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}

.hr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === CONSENT ITEMS === */
.hr-consent-item {
    background: #fafbfc;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px solid #eee;
    transition: all 0.2s;
}

.hr-consent-item:has(input:checked) {
    background: #f0f2ff;
    border-color: #2d3091;
}

.hr-consent-item .hr-checkbox {
    border: none;
    padding: 0;
    background: transparent;
}

.hr-consent-item .hr-checkbox input[type="checkbox"] {
    display: inline-block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2d3091;
    flex-shrink: 0;
}

.hr-consent-item .hr-checkbox span {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* === SUMMARY CARD === */
.hr-summary-card {
    background: #f8f9fb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.hr-summary-card h4 {
    color: #222;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.hr-summary-card p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* === SUCCESS MESSAGE === */
.hr-success {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.hr-success i {
    font-size: 64px;
    color: #2e7d32;
    margin-bottom: 24px;
}

.hr-success h3 {
    font-size: 26px;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
}

.hr-success p {
    font-size: 15px;
    color: #666;
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hr-application-id {
    background: #f0f2ff;
    padding: 16px 28px;
    border-radius: 12px;
    display: inline-block;
    font-size: 15px;
    color: #444;
}

.hr-application-id strong {
    color: #2d3091;
    font-size: 22px;
    display: block;
    margin-top: 4px;
}

/* === NO LICENSE MESSAGE === */
.hr-no-license {
    text-align: center;
    padding: 40px;
    background: #fff5f5;
    border-radius: 12px;
    border: 2px solid #ffe0e0;
}

.hr-no-license i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 16px;
}

.hr-no-license h4 {
    font-size: 20px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 12px;
}

.hr-no-license p {
    font-size: 14px;
    color: #666;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.hr-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2d3091;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hr-contact-btn:hover {
    background: #1a1f6e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,48,145,0.3);
    color: white;
}

/* === TERMINATION === */
.hr-termination {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.hr-termination i {
    font-size: 64px;
    color: #e74c3c;
    margin-bottom: 24px;
}

.hr-termination h3 {
    font-size: 26px;
    font-weight: 800;
    color: #c62828;
    margin-bottom: 12px;
}

.hr-termination p {
    font-size: 15px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.hr-termination-message {
    margin-top: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hr-form-header {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .hr-form-header h2 {
        font-size: 22px;
    }

    .hr-section {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .hr-section-title {
        font-size: 12px;
    }

    .hr-radio-group,
    .hr-checkbox-group {
        flex-direction: column;
    }

    .hr-radio,
    .hr-checkbox {
        width: 100%;
        padding: 12px 14px;
    }

    .hr-option-letter {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .hr-step-nav {
        flex-direction: column;
        gap: 12px;
    }

    .hr-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .hr-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .hr-steps-mini {
        gap: 6px;
    }

    .hr-step-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .dynamic-item {
        padding: 18px 14px;
    }

    .hr-no-license {
        padding: 28px 18px;
    }

    .hr-success,
    .hr-termination {
        padding: 40px 20px;
        border-radius: 12px;
    }

    .hr-file-dropzone {
        padding: 24px 16px;
    }

    .form-inner input[type="text"],
    .form-inner input[type="email"],
    .form-inner input[type="tel"],
    .form-inner input[type="date"],
    .form-inner input[type="number"],
    .form-inner select,
    .form-inner textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

}

/* === TOAST NOTIFICATION === */
.hr-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.hr-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.hr-toast-content i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.hr-toast-content span {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.hr-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.hr-toast-close:hover {
    opacity: 1;
}

.hr-toast-danger {
    background: #fff;
    border-left: 4px solid #e74c3c;
}

.hr-toast-danger .hr-toast-content i {
    color: #e74c3c;
}

.hr-toast-danger .hr-toast-content span {
    color: #333;
}

.hr-toast-danger .hr-toast-close i {
    color: #999;
}

.hr-toast-warning {
    background: #fff;
    border-left: 4px solid #f39c12;
}

.hr-toast-warning .hr-toast-content i {
    color: #f39c12;
}

.hr-toast-warning .hr-toast-content span {
    color: #333;
}

.hr-toast-warning .hr-toast-close i {
    color: #999;
}

.hr-toast-info {
    background: #fff;
    border-left: 4px solid #3498db;
}

.hr-toast-info .hr-toast-content i {
    color: #3498db;
}

.hr-toast-info .hr-toast-content span {
    color: #333;
}

.hr-toast-info .hr-toast-close i {
    color: #999;
}

.hr-toast-success {
    background: #fff;
    border-left: 4px solid #27ae60;
}

.hr-toast-success .hr-toast-content i {
    color: #27ae60;
}

.hr-toast-success .hr-toast-content span {
    color: #333;
}

.hr-toast-success .hr-toast-close i {
    color: #999;
}

@media (max-width: 576px) {
    .hr-toast {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: none;
    }
}