/* =============================================
   Bianco HR Employment Form — Styles
   ============================================= */

/* --- Wrapper --- */
.biancohr-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* --- Form header --- */
.biancohr-form-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #ca1f27 0%, #a8191f 100%);
    border-radius: 10px;
    color: #fff;
}

.biancohr-form-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.biancohr-form-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Honeypot (hidden from users) --- */
.biancohr-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* --- Sections (fieldsets) --- */
.biancohr-form .biancohr-section {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px 28px 8px;
    margin-bottom: 24px;
    background: #fafbfc;
}

.biancohr-form .biancohr-section legend {
    font-size: 15px;
    font-weight: 700;
    color: #ca1f27;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 10px;
}

/* --- Grid rows --- */
.biancohr-row {
    display: flex;
    gap: 16px;
}

.biancohr-col-2 {
    flex: 1 1 50%;
    min-width: 0;
}

.biancohr-col-3 {
    flex: 0 0 35%;
    min-width: 0;
}

.biancohr-col-3-wide {
    flex: 1 1 65%;
    min-width: 0;
}

/* --- Fields --- */
.biancohr-form .biancohr-field {
    margin-bottom: 18px;
}

.biancohr-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    letter-spacing: 0.2px;
}

.biancohr-form label .required {
    color: #e53935;
    margin-left: 2px;
}

.biancohr-form input[type="text"],
.biancohr-form input[type="email"],
.biancohr-form input[type="tel"],
.biancohr-form input[type="date"],
.biancohr-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.biancohr-form input::placeholder {
    color: #b0b7c3;
    font-weight: 400;
}

.biancohr-form input[type="text"]:focus,
.biancohr-form input[type="email"]:focus,
.biancohr-form input[type="tel"]:focus,
.biancohr-form input[type="date"]:focus,
.biancohr-form textarea:focus {
    border-color: #ca1f27;
    outline: none;
    box-shadow: 0 0 0 3px rgba(202, 31, 39, 0.12);
}

/* --- Date input --- */
.biancohr-form input[type="date"] {
    min-height: 44px;
}

.biancohr-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.biancohr-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* --- Textarea --- */
.biancohr-form textarea {
    resize: vertical;
}

/* --- Upload area --- */
.biancohr-upload-area {
    position: relative;
    border: 2px dashed #d0d5dd;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fff;
}

.biancohr-upload-area:hover,
.biancohr-upload-area.dragover {
    border-color: #ca1f27;
    background: #fef2f3;
}

.biancohr-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.biancohr-upload-icon {
    font-size: 32px;
    margin-bottom: 6px;
    line-height: 1;
}

.biancohr-upload-text {
    margin: 0 0 4px;
    font-size: 14px;
    color: #555;
}

.biancohr-upload-link {
    color: #ca1f27;
    font-weight: 600;
    text-decoration: underline;
}

.biancohr-file-list {
    margin-top: 10px;
}

.biancohr-file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #444;
    gap: 10px;
}

.biancohr-file-item .biancohr-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biancohr-file-item .biancohr-file-size {
    color: #999;
    white-space: nowrap;
    font-size: 12px;
    flex-shrink: 0;
}

.biancohr-file-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.biancohr-file-remove:hover {
    background: #ca1f27;
    color: #fff;
}

/* --- Hints --- */
.biancohr-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

/* --- Payment info --- */
.biancohr-payment-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fef2f3;
    border: 1px solid #f0a0a4;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.biancohr-payment-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.biancohr-payment-info p {
    margin: 0 0 4px;
    font-size: 14px;
}

.biancohr-payment-info .biancohr-hint {
    margin-top: 2px;
}

/* --- Company & bank details --- */
.biancohr-company-details {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: #fafbfc;
}

.biancohr-company-details-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #ca1f27;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.biancohr-company-details-body {
    display: flex;
    gap: 24px;
}

.biancohr-company-col {
    flex: 1 1 50%;
    min-width: 0;
}

.biancohr-company-details p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    word-break: break-all;
}

.biancohr-company-name {
    font-weight: 700;
    font-size: 14px !important;
    color: #333 !important;
}

.biancohr-company-notice {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-style: italic;
    color: #666 !important;
}

/* --- Submit button --- */
.biancohr-submit {
    text-align: center;
    padding-top: 8px;
}

.biancohr-btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    background: #ca1f27;
    color: #fff;
    border: none;
    padding: 15px 36px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.biancohr-btn:hover {
    background: #a8191f;
    transform: translateY(-1px);
}

.biancohr-btn:active {
    transform: translateY(0);
}

.biancohr-btn:disabled {
    background: #b0b7c3;
    cursor: not-allowed;
    transform: none;
}

/* --- Messages --- */
.biancohr-message {
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.biancohr-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    text-align: center;
}

.biancohr-success-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 24px;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.biancohr-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.biancohr-error ul {
    margin: 0;
    padding-left: 18px;
}

.biancohr-error li {
    margin-bottom: 4px;
}

/* --- Field errors --- */
.biancohr-field.biancohr-has-error input,
.biancohr-field.biancohr-has-error input[type="date"],
.biancohr-field.biancohr-has-error textarea {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.biancohr-field .biancohr-field-error {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .biancohr-form-wrapper {
        padding: 16px;
    }

    .biancohr-form .biancohr-section {
        padding: 18px 16px 4px;
    }

    .biancohr-row {
        flex-direction: column;
        gap: 0;
    }

    .biancohr-col-2,
    .biancohr-col-3,
    .biancohr-col-3-wide {
        flex: 1 1 100%;
    }

    .biancohr-btn {
        max-width: 100%;
    }

    .biancohr-company-details-body {
        flex-direction: column;
        gap: 12px;
    }

    .biancohr-company-details p {
        word-break: break-all;
    }
}
