/* WordPress-friendly styling that won't conflict with themes */
.placement-vacancy-form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    box-sizing: border-box;
}

.placement-vacancy-form * {
    box-sizing: border-box;
}

.placement-header {
    background: #2271b1;
    color: white;
    padding: 25px;
    border-radius: 5px 5px 0 0;
    margin: -20px -20px 20px -20px;
}

.placement-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.placement-header h2:before {
    content: "💼";
    margin-right: 10px;
    font-size: 28px;
}

.placement-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.placement-section-title {
    font-size: 18px;
    color: #2271b1;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
    display: flex;
    align-items: center;
}

.placement-section-title:before {
    content: "▸";
    margin-right: 8px;
    font-size: 20px;
}

.placement-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.placement-field {
    flex: 1 0 300px;
    padding: 0 10px;
    margin-bottom: 15px;
}

.placement-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #3c434a;
}

.placement-required:after {
    content: " *";
    color: #d63638;
}

.placement-input, .placement-select, .placement-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.placement-input:focus, .placement-select:focus, .placement-textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.placement-textarea {
    min-height: 100px;
    resize: vertical;
}

.vacancy-card {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #c3c4c7;
}

.vacancy-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3338;
    display: flex;
    align-items: center;
}

.vacancy-counter {
    background: #2271b1;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.btn-remove-vacancy {
    background: #d63638;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
}

.btn-remove-vacancy:hover {
    background: #c02c2e;
}

.btn-add-vacancy {
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.btn-add-vacancy:hover {
    background: #135e96;
}

.btn-add-vacancy:before {
    content: "+";
    margin-right: 5px;
    font-size: 18px;
}

.placement-submit {
    background: #00a32a;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
}

.placement-submit:hover {
    background: #008a20;
}

.placement-agreement {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
}

.placement-checkbox {
    margin-right: 8px;
}

.placement-message {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    display: none;
}

.placement-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.placement-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .placement-field {
        flex: 1 0 100%;
    }
    
    .vacancy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-remove-vacancy {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .placement-vacancy-form {
        padding: 10px;
    }
    
    .placement-header {
        padding: 15px;
        margin: -10px -10px 15px -10px;
    }
    
    .placement-section {
        padding: 15px;
    }
}