/* ===================================================
   FORM GLOBAL
=================================================== */
.bringer-form-section { padding: 60px 0; }

.bringer-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.bringer-form-wrapper .form-group {
    margin-bottom: 24px;
    min-width: 0;
}

.bringer-form-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #ffffff;
    opacity: 0.85;
}

.bringer-form-wrapper .required-field::after {
    content: " *";
    color: #ff4757;
}

/* ===== Input / Select / Textarea ===== */
#formKaryawan input[type="text"],
#formKaryawan input[type="email"],
#formKaryawan input[type="number"],
#formKaryawan input[type="date"],
#formKaryawan input[type="tel"],
#formKaryawan select,
#formKaryawan textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    opacity: 1;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* ===== Placeholder ===== */
#formKaryawan input::placeholder,
#formKaryawan textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

/* ===== Autofill Chrome Mobile ===== */
#formKaryawan input:-webkit-autofill,
#formKaryawan input:-webkit-autofill:hover,
#formKaryawan input:-webkit-autofill:focus,
#formKaryawan select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Select ===== */
#formKaryawan select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

#formKaryawan input[type="file"] {
    padding: 12px 18px;
    cursor: pointer;
    -webkit-text-fill-color: unset;
    color: rgba(255, 255, 255, 0.7);
}

#formKaryawan input:focus,
#formKaryawan select:focus,
#formKaryawan textarea:focus {
    border-color: #ff4757;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

#formKaryawan input.is-invalid,
#formKaryawan select.is-invalid,
#formKaryawan textarea.is-invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

#formKaryawan select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#formKaryawan select option {
    background: #1a1a1a;
    color: #ffffff;
}

#formKaryawan textarea {
    resize: vertical;
    min-height: 100px;
}

.bringer-form-wrapper .form-helper {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.6;
    color: #ffffff;
}

/* ===== Grid 2 & 3 Kolom ===== */
.bringer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bringer-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* ===== Submit ===== */
.bringer-submit-wrap {
    text-align: center;
    margin-top: 40px;
}

.bringer-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 50px;
    background: #ff4757;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.bringer-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.bringer-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Alerts ===== */
.bringer-alert {
    display: none;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
}

.bringer-alert-success {
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.bringer-alert-danger {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* ===== Section Title & Divider ===== */
.bringer-form-section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff4757;
    margin-bottom: 8px;
    display: block;
}

.bringer-form-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 35px 0 25px;
}

/* ===== Spinner ===== */
.bringer-spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bringer-spin 0.8s linear infinite;
}

@keyframes bringer-spin { to { transform: rotate(360deg); } }

/* ===================================================
   BANNER DAERAH BUTUH KARYAWAN
=================================================== */
.bringer-need-banner {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(255, 71, 87, 0.05));
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.bringer-need-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.2), transparent);
    border-radius: 50%;
}

.bringer-need-banner h3 {
    color: #ff4757;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bringer-need-banner h3 .pulse-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse-need 1.5s ease-in-out infinite;
}

@keyframes pulse-need {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    50%       { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
}

.bringer-need-banner p {
    color: #ffffff;
    opacity: 0.8;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.bringer-need-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.bringer-need-chip {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bringer-need-chip:hover {
    background: rgba(255, 71, 87, 0.35);
    transform: translateY(-2px);
}

.bringer-need-chip .qty {
    background: #ff4757;
    color: #fff;
    -webkit-text-fill-color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.bringer-need-loading {
    color: #ffffff;
    opacity: 0.5;
    font-size: 13px;
    font-style: italic;
}

/* ===================================================
   RESPONSIVE
=================================================== */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
    .bringer-form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
    .bringer-form-wrapper {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .bringer-form-row,
    .bringer-form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #formKaryawan input[type="text"],
    #formKaryawan input[type="email"],
    #formKaryawan input[type="number"],
    #formKaryawan input[type="date"],
    #formKaryawan input[type="tel"],
    #formKaryawan input[type="file"],
    #formKaryawan select,
    #formKaryawan textarea {
        font-size: 16px;
        padding: 13px 14px;
    }

    #formKaryawan select {
        background-position: right 12px center;
        padding-right: 36px;
    }

    .bringer-need-banner {
        padding: 18px 16px;
    }

    .bringer-need-banner h3 {
        font-size: 14px;
    }

    .bringer-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 14px;
    }

    .bringer-form-section-title {
        font-size: 12px;
    }
}

/* Sangat kecil (≤ 380px) */
@media (max-width: 380px) {
    .bringer-form-wrapper {
        padding: 18px 12px;
    }

    .bringer-need-chip {
        font-size: 12px;
        padding: 6px 12px;
    }
}