/* Scoped Wrapper untuk mencegah konflik dengan tema WordPress */
.recruitment-client-form-wrapper {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    background: transparent !important;
    /* Hanya background wrapper, bukan body seluruh web */
    padding: 20px;
    border-radius: 8px;
}

.recruitment-client-form-wrapper * {
    box-sizing: border-box;
}

.recruitment-client-form-wrapper .form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.recruitment-client-form-wrapper form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recruitment-client-form-wrapper .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .recruitment-client-form-wrapper .form-grid {
        grid-template-columns: 1fr;
        /* Responsif di HP */
        gap: 20px;
    }
}

.recruitment-client-form-wrapper label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

/* Input Styles */
.recruitment-client-form-wrapper input[type="text"],
.recruitment-client-form-wrapper input[type="email"],
.recruitment-client-form-wrapper input[type="number"],
.recruitment-client-form-wrapper select,
.recruitment-client-form-wrapper textarea {
    width: 100%;
    height: 38px;
    /* Sedikit diperbesar agar pas dengan WP themes */
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    background: #fff;
    margin-bottom: 0;
    /* Margin diatur container */
}

.recruitment-client-form-wrapper textarea {
    height: 80px;
    resize: vertical;
}

/* Margin Bottom Utilities */
#companyName,
#picName,
#picEmail,
#deadline,
#gender,
#maxAge,
#jobTitle,
#salaryRange,
#workExp,
#education,
#majorGroup,
#discloseGroup {
    margin-bottom: 18px;
    display: block;
}

.recruitment-client-form-wrapper .calendar-input {
    position: relative;
    margin-bottom: 18px;
}

.recruitment-client-form-wrapper .calendar-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #555;
    font-size: 18px;
    cursor: pointer;
}

.recruitment-client-form-wrapper .calendar-input input {
    padding-left: 45px;
}

/* Checkbox & Radio */
.recruitment-client-form-wrapper .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recruitment-client-form-wrapper .checkbox-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.recruitment-client-form-wrapper .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0047A0;
    margin: 0;
}

.recruitment-client-form-wrapper .radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recruitment-client-form-wrapper .radio-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.recruitment-client-form-wrapper .radio-group input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #0047A0;
    transform: scale(1.2);
    margin-right: 6px;
    margin: 0;
}

/* Submit Button */
.recruitment-client-form-wrapper .submit-row {
    margin-top: 30px;
}

.recruitment-client-form-wrapper .submit-row button {
    width: 100%;
    height: 38px;
    border-radius: 6px;
    background-color: #0047A0;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s;
}

.recruitment-client-form-wrapper .submit-row button:hover {
    background: #006178;
}

/* Overlay & Popups */
.custom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.custom-overlay .spinner {
    width: 60px !important;
    height: 60px !important;
    border: 5px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 5px solid #ffffff !important;
    border-radius: 50% !important;
    animation: recruitment-spin 0.8s linear infinite !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) !important;
    background: transparent !important;
    /* Killer for the purple circle */
    display: block !important;
}

.custom-overlay .loading-text {
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    display: block !important;
}

.custom-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #0047A0 !important;
    /* Blue background */
    color: white !important;
    /* White text */
    padding: 30px 45px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.custom-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.custom-popup h3 {
    color: white !important;
    margin: 0 0 12px;
    font-size: 22px;
}

.custom-popup p {
    margin: 0 !important;
    font-size: 18px !important;
    color: white !important;
    font-weight: 700 !important;
}

@keyframes recruitment-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}