/* ============================================================
   SABAOTH UTILITIES INC. - Employment Form Styles
   Colors: #e3b25a (Gold), #000 (Black), #fff (White)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- WRAPPER ---- */
.sabaoth-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
}

/* ---- PROGRESS / HEADER BLOCK ---- */
.sabaoth-progress-wrap {
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 36px 40px 0;
    border-top: 5px solid #e3b25a;
    position: relative;
    overflow: hidden;
}

.sabaoth-progress-wrap::before {
    content: '';
    position: absolute;
    top: 0; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(227,178,90,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sabaoth-logo-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.sabaoth-logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    padding: 5px;
    border: 1px solid !important;
    background: #fff;
}

.sabaoth-title-block {
    border-left: 2px solid #e3b25a;
    border-top: none;
    padding-left: 16px;
    padding-top: 0;
}

.sabaoth-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px;
    letter-spacing: 1px;
}

.sabaoth-form-subtitle {
    font-size: 14px;
    color: #e3b25a;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.sabaoth-notice {
    background: linear-gradient(135deg, #fff9ee, #fff);
    border: 1px solid rgba(227,178,90,0.35);
    border-left: 4px solid #e3b25a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 13.5px;
    color: #444;
    line-height: 1.6;
}

/* ---- STEP INDICATORS ---- */
.sabaoth-steps-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.sabaoth-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: default;
    flex: 1;
    min-width: 60px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.step-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    transition: color 0.3s;
    text-align: center;
    white-space: nowrap;
}

.sabaoth-step-indicator.active .step-num {
    background: #e3b25a;
    color: #000;
    border-color: #c49840;
    box-shadow: 0 4px 12px rgba(227,178,90,0.4);
    transform: scale(1.1);
}

.sabaoth-step-indicator.active .step-label {
    color: #e3b25a;
    font-weight: 600;
}

.sabaoth-step-indicator.completed .step-num {
    background: #000;
    color: #e3b25a;
    border-color: #000;
}

.sabaoth-step-indicator.completed .step-label {
    color: #555;
}

.sabaoth-step-line {
    flex: 0 1 20px;
    height: 2px;
    background: #e5e5e5;
    margin-bottom: 22px;
    transition: background 0.3s;
}

.sabaoth-step-line.completed {
    background: #e3b25a;
}

/* ---- PROGRESS BAR ---- */
.sabaoth-progress-bar-outer {
    height: 6px;
    background: #efefef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sabaoth-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #c49840, #e3b25a, #f5c96e);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.sabaoth-progress-bar-inner::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%  { opacity: 0; }
    50% { opacity: 1; }
    100%{ opacity: 0; }
}

.sabaoth-step-counter {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 0 0 0;
    padding-bottom: 18px;
    font-weight: 500;
}

/* ---- MAIN FORM CARD ---- */
#sabaoth-employment-form {
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.12);
    padding: 36px 40px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    border-top: none;
}

/* ---- STEP PANELS ---- */
.sabaoth-step-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.sabaoth-step-panel.active {
    display: block;
}

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

/* ---- SECTION HEADERS ---- */
.sabaoth-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 2px solid #000;
    position: relative;
}

.sabaoth-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px;
    height: 2px;
    background: #e3b25a;
}

.section-icon {
    font-size: 22px;
}

.sabaoth-section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.3px;
}

.sabaoth-section-subheader {
    margin-top: 30px;
    margin-bottom: 16px;
}

.sabaoth-section-subheader h4 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: #000;
    margin: 0 0 6px;
    border-left: 4px solid #e3b25a;
    padding-left: 12px;
}

/* ---- FIELD GROUPS ---- */
.sabaoth-field-group {
    margin-bottom: 20px;
}

.sabaoth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 0;
}

.sabaoth-row-2 .sabaoth-field-group {
    margin-bottom: 20px;
}

/* ---- LABELS ---- */
.sabaoth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.sabaoth-sublabel {
    display: block;
    font-weight: 400;
    color: #777;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.5;
}

.req {
    color: #e3b25a;
    font-weight: 700;
}

/* ---- INPUTS ---- */
.sabaoth-input,
.sabaoth-textarea,
.sabaoth-select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #d5d5d5;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    transition: all 0.25s ease;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.sabaoth-input:focus,
.sabaoth-textarea:focus,
.sabaoth-select:focus {
    border-color: #e3b25a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227,178,90,0.15);
}

.sabaoth-input.error,
.sabaoth-textarea.error,
.sabaoth-select.error {
    border-color: #e53935;
    background: #fff8f8;
}

.sabaoth-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.sabaoth-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='%23e3b25a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.sabaoth-signature-input {
    font-style: italic;
    font-size: 16px;
    font-family: 'Playfair Display', serif !important;
    letter-spacing: 0.5px;
    color: #000;
}

/* ---- FILE UPLOAD FIELD ---- */
.sabaoth-file-upload-wrap {
    position: relative;
}

.sabaoth-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.sabaoth-file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px dashed #d5b877;
    border-radius: 8px;
    background: #fffaf0;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.sabaoth-file-label:hover {
    border-color: #e3b25a;
    background: #fff5e0;
}

.sabaoth-file-icon {
    font-size: 20px;
}

.sabaoth-file-text {
    font-size: 14px;
    color: #666;
}

.sabaoth-file-label.has-file {
    border-style: solid;
    border-color: #e3b25a;
    background: #fff;
}

.sabaoth-file-label.has-file .sabaoth-file-text {
    color: #1a1a1a;
    font-weight: 600;
}

.sabaoth-file-label.error {
    border-color: #e53935;
    background: #fff8f8;
}

/* ---- AGREEMENT NAME AUTO-FILL ---- */
.sabaoth-name-fill {
    display: inline-block;
    min-width: 160px;
    border-bottom: 1.5px solid #333;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #000;
    padding: 0 4px 1px;
}

/* ---- SIGNATURE WIDGET ---- */
.sabaoth-signature-pad-wrap {
    position: relative;
}

.sabaoth-signature-canvas {
    width: 100%;
    height: 150px;
    border: 1.5px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
    display: block;
}

.sabaoth-sig-clear {
    margin-top: 8px;
    padding: 7px 16px;
    border: 1.5px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sabaoth-sig-clear:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* ---- RADIO BUTTONS ---- */
.sabaoth-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.sabaoth-radio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    user-select: none;
}

.sabaoth-radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #fff;
}

.sabaoth-radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #e3b25a;
    background: #e3b25a;
    box-shadow: 0 0 0 3px rgba(227,178,90,0.2);
}

.sabaoth-radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}

/* ---- CHECKBOX ---- */
.sabaoth-checkbox-group {
    margin-top: 10px;
}

.sabaoth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    color: #333;
    line-height: 1.6;
    user-select: none;
}

.sabaoth-checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
    margin-top: 1px;
}

.sabaoth-checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #000;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.sabaoth-checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #e3b25a;
    font-size: 13px;
    font-weight: 700;
}

/* ---- REFERENCE BLOCKS ---- */
.sabaoth-reference-block {
    background: #fafafa;
    border: 1.5px solid #ebebeb;
    border-left: 4px solid #e3b25a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    position: relative;
}

.sabaoth-ref-badge {
    position: absolute;
    top: -12px;
    left: 16px;
    background: #000;
    color: #e3b25a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- BEST EFFORT BLOCK ---- */
.sabaoth-best-effort-block {
    background: #f5f0e8;
    border: 1px solid rgba(227,178,90,0.4);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}

/* ---- ACK TEXT ---- */
.sabaoth-ack-text {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: #444;
    line-height: 1.8;
}

.sabaoth-ack-text p {
    margin: 0 0 12px;
}

.sabaoth-ack-text p:last-child {
    margin-bottom: 0;
}

/* ---- STEP NOTE ---- */
.sabaoth-step-note {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

/* ---- NAV BUTTONS ---- */
.sabaoth-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #efefef;
    gap: 12px;
}

.sabaoth-btn {
    padding: 13px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.sabaoth-btn-next {
    background: linear-gradient(135deg, #c49840, #e3b25a);
    color: #000;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(227,178,90,0.35);
}

.sabaoth-btn-next:hover {
    background: linear-gradient(135deg, #b08830, #d4a248);
    box-shadow: 0 6px 20px rgba(227,178,90,0.45);
    transform: translateY(-1px);
}

.sabaoth-btn-prev {
    background: #fff;
    color: #333;
    border: 1.5px solid #d5d5d5;
}

.sabaoth-btn-prev:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.sabaoth-btn-submit {
    background: linear-gradient(135deg, #000, #222);
    color: #e3b25a;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
}

.sabaoth-btn-submit:hover {
    background: linear-gradient(135deg, #111, #333);
    box-shadow: 0 6px 22px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

.sabaoth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- ERROR MESSAGE ---- */
.sabaoth-error-msg {
    background: #fff0f0;
    border: 1.5px solid #f5c6c6;
    border-left: 4px solid #e53935;
    color: #c62828;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-top: 16px;
    font-weight: 500;
}

/* ---- SUCCESS SCREEN ---- */
.sabaoth-success-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.12);
    padding: 60px 40px;
    text-align: center;
    border-top: 5px solid #e3b25a;
}

.sabaoth-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #000, #222);
    color: #e3b25a;
    border-radius: 50%;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.sabaoth-success-wrap h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #000;
    margin: 0 0 12px;
}

.sabaoth-success-wrap p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    .sabaoth-progress-wrap,
    #sabaoth-employment-form {
        padding: 22px 18px;
    }

    .sabaoth-logo-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /*.sabaoth-logo {*/
    /*    height: 26px;*/
    /*    max-height: 26px;*/
    /*    max-width: 110px;*/
    /*}*/

    .sabaoth-title-block {
        border-left: none;
        border-top: 3px solid #e3b25a;
        padding-left: 0;
        padding-top: 12px;
    }

    .sabaoth-row-2 {
        grid-template-columns: 1fr;
    }

    .sabaoth-steps-bar {
        gap: 2px;
    }

    .step-label {
        font-size: 9px;
    }

    .step-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .sabaoth-nav-buttons {
        flex-direction: column-reverse;
    }

    .sabaoth-btn {
        width: 100%;
        text-align: center;
    }

    .sabaoth-btn-next,
    .sabaoth-btn-submit {
        margin-left: 0;
    }
}
