.workplace-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.workplace-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.workplace-form .form-row.full {
    flex-direction: column;
}

.workplace-form .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.workplace-form label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Inputs and textareas */
.workplace-form input.text,
.workplace-form input.title,
.workplace-form input[type=email],
.workplace-form input[type=password],
.workplace-form input[type=tel],
.workplace-form input[type=text],
.workplace-form input[type=date],
.workplace-form input[type=number],
.workplace-form select,
.workplace-form textarea {
    -webkit-appearance: none;
    background-color: #eee;
    width: 100%;
    border: none;
    border-radius: 4px;
    color: #444;
    font-size: 14px;
    padding: 14px;
    min-height: 48px;
    transition: all 0.2s ease;
}

.workplace-form input[type=date],
.workplace-form input[type=number] {
    line-height: normal;
    height: 48px;
}

.workplace-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.workplace-form input[type="checkbox"] {
    width: auto;
    min-height: auto;
    height: auto;
    margin-right: 8px;
    cursor: pointer;
}

.workplace-form .checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.workplace-form input:focus,
.workplace-form textarea:focus,
.workplace-form select:focus {
    outline: 2px solid var(--gcid-primary-color, #0073aa);
}

/* === FILE INPUT STYLING === */
.workplace-form input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.workplace-form .file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workplace-form .file-upload-label {
    display: inline-block;
    padding: 3px 18px;
    background-color: var(--gcid-primary-color, #0073aa);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.workplace-form .file-upload-label:hover {
    background-color: #005d8f;
}

.workplace-form .file-upload-name {
    font-size: 14px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === SUBMIT BUTTON === */
.workplace-form button[type="submit"] {
    background-color: var(--gcid-primary-color, #0073aa);
    color: white;
    border: none;
    cursor: pointer;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 4px;
    align-self: flex-end;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.workplace-form button[type="submit"]:hover {
    background-color: #005d8f;
    transform: translateY(-1px);
}

/* === CAPTCHA === */
.workplace-captcha-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workplace-captcha-container label {
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
}

.captcha-image-wrapper {
    display: inline-block;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    max-width: fit-content;
}

.captcha-image {
    display: block;
    width: 200px;
    height: 60px;
}

.workplace-captcha-container input[type="text"] {
    max-width: 250px;
    background-color: #eee;
    border: none;
    border-radius: 4px;
    color: #444;
    font-size: 16px;
    padding: 12px 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.workplace-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* === BANNERS === */
.workplace-form-banner {
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.workplace-form-banner-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.workplace-form-banner-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.workplace-form-success {
    color: green;
}

.workplace-form-error {
    color: red;
}

/* Responsive */
@media (max-width: 600px) {
    .workplace-form .form-row {
        flex-direction: column;
    }

    .workplace-form button[type="submit"] {
        align-self: stretch;
    }
}