.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.form-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.form-header p {
    opacity: 0.9;
    font-size: 16px;
}

form {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #ffffff;
    border-radius: 5px;
    flex: 1;
}

.f {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.required {
    color: #dc3545;
}

.optional {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.input-icon-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-icon-container input {
    flex: 1;
    margin: 0;
}

.input-icon-container i {
    color: #333;
}

input,
select,
textarea {
    border-radius: 5px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    padding: .5rem .75rem;
    color: #333;
    margin-bottom: .75rem;
    font-size: 15px;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    background-color: #f8f9fa;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    border-color: #667eea;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.w100 {
    width: 100%;
}

.h250 {
    height: 250px;
}

button[type="submit"],
button.submit,
.form-btn {
    background-color: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: .5rem;
    font-size: 16px;
    font-weight: 600;
}

button[type="submit"]:hover,
button.submit:hover,
.form-btn:hover {
    background-color: #5568d3;
}

button[type="submit"]:focus,
button.submit:focus,
.form-btn:focus {
    outline: 2px solid #5568d3;
    outline-offset: 2px;
}

button[type="submit"]:active,
button.submit:active,
.form-btn:active {
    background-color: #4552b8;
    transform: scale(0.98);
}

button[type="submit"]:disabled,
button.submit:disabled,
.form-btn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.error-message,
.ep1,
.ep2 {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    display: none;
}

.success-message {
    color: #155724;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    background-color: #d4edda;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.errorPrompt {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.goodPrompt {
    border: 2px solid #28a745 !important;
    background-color: #f0f9f4;
}

.initPrompt {
    border: 1px solid #ced4da;
}

fieldset.form-section {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    border: 2px groove #FFF;
}

fieldset legend {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.form-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-cta .form-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-fields .fr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-fields input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.radio-fields label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #ced4da;
    background-color: #f8f9fa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
    background-color: #e7f1ff;
}

small {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Grid layout for form fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    .form-cta {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    form {
        padding: 1rem;
    }

    .form-header {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 24px;
    }
}

.radio-box-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.radio-box-container .radio-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #eaeaea;
    border-radius: 5px;
    box-shadow: var(--bs-light);
    cursor: pointer;
}



.radio-box-container .radio-box:has(input:checked) {
    background: #667eea;
}

radio-box__benefits .fa-circle-check {
    color: #00AF19;
}