body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Meiryo", "Hiragino Sans", Roboto, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
}

.page-header {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-container {
    background-color: #fff;
    /* border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; */
    /* margin: -80px auto 60px auto; */
    margin: 30px auto 60px auto;
    padding: 20px 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

h1 {
    color: #333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    padding-top: 20px;
}

.subheading {
    color: #555;
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 30px;
}

fieldset {
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

legend {
    color: #333;
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
}

.form-group > label {
    color: #555;
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.form-control {
    background-color: #fff; /* 确保背景色，尤其对于 select */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
    padding: 10px;
    width: 100%;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-control {
    padding-right: 35px;
    flex-grow: 1;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none; /* 针对 Safari/Chrome 的兼容性 */
    -moz-appearance: none;    /* 针对 Firefox 的兼容性 */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* 确保select的padding-right足够放下箭头 */
}
.input-wrapper select.form-control { /* 如果select在wrapper内，其padding-right优先级可能需要更高 */
    padding-right: 35px;
}


.status-icon {
    font-size: 1.1em;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.status-icon.success { color: green; }
.status-icon.error { color: #dc3545; }

textarea.form-control {
    line-height: 1.5;
    resize: vertical;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-control.is-invalid { border-color: #dc3545; }
.form-control.is-valid { border-color: green; }

.form-control.is-valid:focus {
    border-color: green;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

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

.form-row .column {
    flex: 1;
    min-width: calc(50% - 10px);
}

.badge {
    border-radius: 3px;
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
    padding: 3px 8px;
    text-transform: uppercase;
    vertical-align: middle;
}
.badge-required {
    background-color: #e53935;
    color: white;
}
.badge-optional {
    background-color: #6c757d;
    color: white;
}

.error-text {
    color: #dc3545;
    display: none;
    font-size: 0.8em;
    margin-top: 5px;
    width: 100%;
}

.help-text {
    color: #666;
    font-size: 0.8em;
    margin-top: 5px;
}

.file-upload-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-upload-button {
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    padding: 8px 15px;
    white-space: nowrap;
}
.file-upload-button:hover {
    background-color: #0056b3;
}
.file-upload-filename {
    color: #555;
    font-size: 0.9em;
}

.request-type-fieldset .radio-options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.request-type-fieldset .radio-option-item {
    align-items: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex: 0 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    padding: 10px 15px;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.request-type-fieldset .radio-option-item:hover {
    border-color: #bdbdbd;
}

.request-type-fieldset .radio-option-item input[type="radio"] {
    border-width: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.request-type-fieldset .radio-option-item .custom-radio-mark {
    background-color: #fff;
    border: 1.5px solid #a0a0a0;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-block;
    flex-shrink: 0;
    height: 18px;
    margin-right: 10px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 18px;
}

.request-type-fieldset .radio-option-item .radio-option-text {
    color: #333;
    font-size: 14px;
    line-height: 1.2;
}

.request-type-fieldset .radio-option-item input[type="radio"]:checked + .custom-radio-mark::after {
    content: '';
    background-color: #4285f4;
    border-radius: 50%;
    height: 8px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
}

.request-type-fieldset .radio-option-item input[type="radio"]:checked + .custom-radio-mark {
   border-color: #4285f4;
}
.request-type-fieldset .radio-option-item.is-selected {
    border-color: #4285f4 !important;
}

.request-type-fieldset .radio-option-item.is-invalid {
    border-color: #dc3545 !important;
}

.request-type-fieldset .radio-option-item input[type="radio"]:focus + .custom-radio-mark {
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4);
}

#requestTypeError {
    color: #dc3545;
    display: none;
    font-size: 0.8em;
    margin-top: 5px;
    width: 100%;
}

.submit-button {
    background-color: #17a2b8;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
    margin: 30px 0;
    padding: 12px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #138496;
}

.copyright {
    display: block;
    margin: 10px;
    text-align: center;
}

.feedback-container {
    margin: 40px auto;
    max-width: 700px;
    padding: 30px;
}
.feedback-container h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}
.feedback-container p, .feedback-container ul {
    margin-bottom: 20px;
}
.feedback-container ul {
    list-style-position: inside;
    padding-left: 0;
}
.feedback-container li {
    color: #d9534f;
    margin-bottom: 8px;
}

.back-button, .back-button-a {
    background-color: #5cb85c; /* Default to green for back-button */
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.back-button-a { /* Specific style for the link if it needs to be different */
    background-color: #17a2b8;
}

.back-button:hover {
    background-color: #4cae4c;
}
.back-button-a:hover {
    background-color: #138496;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .form-row .column {
        min-width: 100%;
        flex-basis: 100%;
    }
    .request-type-fieldset .radio-option-item {
        flex: 1 1 100%;
        min-width: auto;
    }
    .form-container {
        margin-top: -20px;
        padding: 15px 20px;
    }
    h1 {
        font-size: 1.5em;
    }
    legend {
        font-size: 1em;
    }
}