/* Clean Seamless Form Styles for Medical Crew Leave */
.application-form-section {
    max-width: 800px;
    margin: 35px auto 40px;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
}

.section-title {
    color: #a31515;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    font-family: inherit;
}

.section-subtitle {
    color: #555555;
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
}

#reused_form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.form-control {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 1.5px solid #bdc3c7 !important;
    border-radius: 6px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    height: auto !important;
}

.form-control:focus {
    border-color: #a31515 !important;
    box-shadow: 0 0 0 3px rgba(163, 21, 21, 0.2) !important;
    outline: none !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 6px 0;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    margin: 0 !important;
}

.radio-inline input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #a31515;
    cursor: pointer;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: #a31515;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    margin-top: 10px;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #7b0f0f;
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:disabled {
    background-color: #e57373;
    cursor: not-allowed;
    box-shadow: none;
}

#success_message {
    padding: 25px 20px;
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
}

#success_message h3 {
    color: #2e7d32;
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
}

#success_message p {
    color: #2e7d32;
    font-size: 15px;
    margin-bottom: 0;
}

#error_message {
    padding: 20px;
    background: #ffebee;
    border: 1.5px solid #ef9a9a;
    border-radius: 8px;
    margin: 25px 0;
    color: #c62828;
}

#error_message h3 {
    color: #c62828;
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
}

#error_message ul {
    margin-bottom: 0;
    padding-left: 20px;
}

@media (max-width: 650px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .radio-options {
        flex-direction: column;
        gap: 12px;
    }
}
