.gg-job-form input::placeholder,
.gg-job-form textarea::placeholder {
    color: #9aa3b5;
    opacity: 1;
}

.gg-job-description-label {
    color: #40485a;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* Keep the job-detail controls clear of the site header. */
.gg-job-detail-container {
    padding-top: 32px;
}

.gg-job-back {
    align-items: center;
    color: #40485a;
    display: inline-flex;
    font-size: 16px;
    gap: 10px;
    margin-bottom: 40px;
    text-decoration: none;
}

.gg-job-back:hover,
.gg-job-back:focus {
    color: #4c1d95;
}

.gg-job-back-icon {
    align-items: center;
    background: #f4f4f6;
    border-radius: 50%;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 19px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 1px 1px 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 36px;
}

.gg-job-back:hover .gg-job-back-icon,
.gg-job-back:focus .gg-job-back-icon {
    background: #ece7f7;
    transform: translateX(-2px);
}

.gg-job-form select {
    color: #40485a;
}

.gg-job-form select:invalid {
    color: #9aa3b5;
}

/* The country selector remains active even before a country is selected. */
.gg-job-form select[name="country_id"],
.gg-job-form select[name="country_id"]:invalid {
    background-color: #ffffff;
    color: #40485a;
    cursor: pointer;
    opacity: 1;
}

.gg-location-selects {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gg-location-selects select {
    min-width: 0;
}

.gg-location-selects select:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.gg-location-selects .gg-location-native-select {
    display: none;
}

.gg-location-picker {
    min-width: 0;
    position: relative;
}

.gg-location-picker::after {
    color: #9aa3b5;
    content: '';
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    height: 7px;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-65%) rotate(45deg);
    width: 7px;
}

.gg-location-picker-input {
    background-color: #ffffff !important;
    box-sizing: border-box;
    cursor: text;
    padding-right: 38px !important;
    width: 100%;
}

.gg-location-picker--disabled .gg-location-picker-input {
    cursor: not-allowed;
    opacity: 0.7;
}

.gg-location-options {
    background: #ffffff;
    border: 1px solid #ded8eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 18px rgba(40, 23, 81, 0.14);
    box-sizing: border-box;
    left: 0;
    margin-top: 2px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
}

.gg-location-option {
    background: transparent;
    border: 0;
    color: #272d3b;
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 9px 14px;
    text-align: left;
    width: 100%;
}

.gg-location-option:hover,
.gg-location-option:focus,
.gg-location-option--active {
    background: #f4f4f4;
}

.gg-location-empty {
    color: #6a7180;
    margin: 0;
    padding: 10px 14px;
}

@media (max-width: 640px) {
    .gg-location-selects {
        gap: 12px;
        grid-template-columns: 1fr;
    }
}

.gg-job-form .gg-country-native-select {
    display: none;
}

.gg-country-picker {
    position: relative;
}

.gg-country-picker .gg-country-search {
    background-color: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

.gg-country-options {
    background: #ffffff;
    border: 1px solid #ded8eb;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(40, 23, 81, 0.14);
    box-sizing: border-box;
    left: 0;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
}

.gg-country-option {
    background: transparent;
    border: 0;
    color: #272d3b;
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 9px 14px;
    text-align: left;
    width: 100%;
}

.gg-country-option:hover,
.gg-country-option:focus,
.gg-country-option--active {
    background: #f4f1fb;
}

.gg-country-empty {
    color: #6a7180;
    margin: 0;
    padding: 10px 14px;
}

.gg-job-form .gg-field-error {
    color: #c62828;
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.gg-job-form .gg-field-has-error input,
.gg-job-form .gg-field-has-error select,
.gg-job-form .gg-field-has-error textarea {
    border-color: #c62828;
}

.gg-job-form .gg-field-has-error .gg-country-search {
    border-color: #c62828;
}

.gg-job-form .gg-field-has-error .gg-location-picker-input {
    border-color: #c62828;
}

.gg-upload-box {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    height: 72px !important;
    justify-content: center;
    max-height: 72px !important;
    min-height: 72px !important;
    padding: 0 16px !important;
    position: relative;
}

.gg-upload-file {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 12px 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

/* The file input is an overlay in the page's existing design. */
.gg-upload-box.gg-upload-has-file input[type="file"] {
    pointer-events: none;
}

.gg-upload-file-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-upload-remove {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: #272d3b;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    position: relative;
    z-index: 3;
}

.gg-form-notice {
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 12px 16px;
}

.gg-form-notice--success {
    background: #eaf8ef;
    color: #176b35;
}

.gg-form-notice--error {
    background: #ffeded;
    color: #a61b1b;
}
