/* =========================================
   ACF Form - Professional/Clean Style
   ========================================= */

/* --- 1. Base Layout (Mobile First) --- */
.emp-wrapper {
    width: 100%;
    margin: 0;
    padding: 16px 0;
    font-family: Roboto, system-ui, -apple-system, sans-serif;
    color: #1d1b20;
}

/* --- 2. Grid System --- */
.acf-fields.-top {
    display: grid;
    grid-template-columns: 1fr; /* 1 Column on Mobile */
    gap: 20px;
}

.acf-field {
    margin: 0 !important;
    border: none !important;
}

/* --- 3. Labels --- */
.acf-label label {
    font-size: 12px;
    font-weight: 700; /* Bolder labels */
    color: #444;      /* Darker grey */
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.acf-required { color: #d32f2f; margin-left: 2px; }

/* --- 4. Inputs --- */
.acf-input input[type="text"],
.acf-input input[type="email"],
.acf-input input[type="date"],
.acf-input select,
.acf-input textarea {
    width: 100%;
    height: 50px; /* Standard height */
    padding: 0 16px;
    background-color: #ffffff;
    border: 1px solid #ccc; /* Classic grey border */
    border-radius: 6px;     /* Small rounded corners */
    font-size: 15px;
    color: #000;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Textarea specific */
.acf-input textarea {
    min-height: 120px;
    padding-top: 16px;
    resize: vertical;
}

/* Focus State */
.acf-input input:focus,
.acf-input select:focus,
.acf-input textarea:focus {
    border-color: #000; /* Black border on focus */
    outline: none;
    padding-left: 15px; 
}

/* --- 5. ICON CONFIGURATION --- */
.acf-field[data-key="field_69100a338469d"] input, /* Institution Name */
.acf-field[data-key="field_691b0ec96a71f"] input, /* Email */
.acf-field[data-key="field_691b0f016a720"] input, /* Phone */
.acf-field[data-key="field_69100b4867976"] input  /* Job Title */
{
    padding-left: 48px !important; 
    background-repeat: no-repeat;
    background-position: 14px center; 
    background-size: 20px 20px;       
}

/* Icons (Dark Grey) */
.acf-field[data-key="field_69100a338469d"] input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23555" viewBox="0 0 24 24"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2V9h-2V7h8v12zm-2-4h-2v2h2v-2zm0-4h-2v2h2V9z"/></svg>');
}
.acf-field[data-key="field_691b0ec96a71f"] input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23555" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}
.acf-field[data-key="field_691b0f016a720"] input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23555" viewBox="0 0 24 24"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}
.acf-field[data-key="field_69100b4867976"] input {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23555" viewBox="0 0 24 24"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/></svg>');
}

/* FIX: Maintain padding on focus for icon fields only */
.acf-field[data-key="field_69100a338469d"] input:focus, 
.acf-field[data-key="field_691b0ec96a71f"] input:focus, 
.acf-field[data-key="field_691b0f016a720"] input:focus, 
.acf-field[data-key="field_69100b4867976"] input:focus {
    padding-left: 47px !important; 
}

/* --- 6. BUTTONS (Redesigned) --- */

/* Submit Button: Solid Black, Rectangular */
.fea-submit-button {
    background-color: #000000; /* Deep Black */
    color: #ffffff;
    height: 52px; /* Nice click area */
    border: none;
    border-radius: 6px; /* Standard corners, not pill */
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow */
}

.fea-submit-button:hover {
    background-color: #333; /* Dark Grey on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Delete Button: White with Red Border */
.fea-delete-button {
    background-color: #fff;
    color: #d32f2f; /* Standard Red */
    border: 2px solid #d32f2f; /* Visible Red Border */
    height: 52px;
    border-radius: 6px; /* Matches submit button */
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.fea-delete-button:hover {
    background-color: #d32f2f; /* Fills red */
    color: #fff; /* Text turns white */
}

/* --- 7. Section Headers --- */
.acf-field[data-key="field_69100a338469d"], 
.acf-field[data-key="field_69102f7b756f1"] {
    margin-top: 32px !important;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.acf-field[data-key="field_69100a338469d"]::before,
.acf-field[data-key="field_69102f7b756f1"]::before {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    content: "Details";
}

.acf-field[data-key="field_69100a338469d"]::before { content: "Institution Details"; }
.acf-field[data-key="field_69102f7b756f1"]::before { content: "Employment Details"; }

/* --- 8. "Select Post" Control Bar --- */
.acf-field[data-key="field_6910bf046d6aa"] {
    background-color: #f9f9f9; 
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px !important;
}

/* --- 9. Desktop Styles (Min Width 768px) --- */
@media (min-width: 768px) {
    .emp-wrapper {
        max-width: 800px;
        margin: 40px auto;
        padding: 50px;
        background: #ffffff;
        border-radius: 12px; /* Standard radius */
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }

    .acf-fields.-top {
        grid-template-columns: 1fr 1fr; /* 2 Columns */
        gap: 30px;
    }

    /* Full width overrides */
    .acf-field[data-key="field_6910bf046d6aa"],
    .acf-field[data-key="field_69100a338469d"],
    .acf-field[data-key="field_69100b4867976"],
    .acf-field[data-key="field_69100b6267977"],
    .acf-field[data-key="field_69102f7b756f1"],
    .acf-field.acf-field-submit-button,
    .acf-field.acf-field-delete-post {
        grid-column: span 2;
    }
}