/* Frontend styling for application form */

/* Success notification banner styling */
.govuk-notification-banner {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 30px;
    border: 5px solid #00703c;
    background-color: #00703c;
}

.govuk-notification-banner:focus {
    outline: 3px solid #fd0;
    outline-offset: 0;
}

.govuk-notification-banner__header {
    padding: 2px 0 0 0;
    border-bottom: 1px solid #00703c;
}

.govuk-notification-banner__title {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    margin: 0;
    padding: 0;
    color: #fff;
}

.govuk-notification-banner__content {
    color: #0b0c0c;
    padding: 15px;
    background-color: #fff;
}

.govuk-notification-banner__content > * {
    box-sizing: border-box;
    max-width: 605px;
}

.govuk-notification-banner__heading {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 15px 0;
    padding: 0;
}

.govuk-notification-banner__content .govuk-body {
    margin-bottom: 15px;
}

.govuk-notification-banner__content .govuk-body:last-child {
    margin-bottom: 0;
}

.govuk-inset-text {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    color: #0b0c0c;
    padding: 15px;
    margin: 20px 0;
    border-left: 10px solid #b1b4b6;
    background-color: #f8f9fa;
}

.govuk-inset-text > :first-child {
    margin-top: 0;
}

.govuk-inset-text > :only-child,
.govuk-inset-text > :last-child {
    margin-bottom: 0;
}

.govuk-body {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    color: #0b0c0c;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Form validation styling */
.govuk-form-group--error .govuk-input,
.govuk-form-group--error .govuk-textarea,
.govuk-form-group--error .govuk-select {
    border: 4px solid #d4351c;
}

.govuk-form-group--error .govuk-input:focus,
.govuk-form-group--error .govuk-textarea:focus,
.govuk-form-group--error .govuk-select:focus {
    border-color: #0b0c0c;
    box-shadow: inset 0 0 0 4px #fd0;
    outline: 0;
}

/* Error message styling */
.govuk-error-message {
    font-family: "GDS Transport", arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    display: block;
    margin: 0;
    padding: 0;
    color: #d4351c;
    clear: both;
}

/* Success state styling */
.govuk-notification-banner--success {
    border-color: #00703c;
    background-color: #00703c;
}

.govuk-notification-banner--success .govuk-notification-banner__header {
    border-bottom-color: #00703c;
}

/* Responsive design */
@media (min-width: 40.0625em) {
    .govuk-notification-banner {
        margin-bottom: 50px;
    }
    
    .govuk-notification-banner__header {
        padding: 2px 0 0 0;
    }
    
    .govuk-notification-banner__title {
        font-size: 19px;
        line-height: 1.3157894737;
    }
    
    .govuk-notification-banner__content {
        padding: 20px;
    }
    
    .govuk-notification-banner__heading {
        font-size: 24px;
        line-height: 1.25;
    }
    
    .govuk-inset-text {
        font-size: 19px;
        line-height: 1.3157894737;
        padding: 20px;
        margin: 30px 0;
    }
    
    .govuk-body {
        font-size: 19px;
        line-height: 1.3157894737;
        margin-bottom: 20px;
    }
}

/* Ensure GOV.UK button styling */
.govuk-button {
    background-color: #00703c !important;
    border-color: #00703c !important;
    color: #ffffff !important;
}

.govuk-button:hover {
    background-color: rgb(0, 89.6, 48) !important;
}

.govuk-button:focus {
    background-color: #fd0 !important;
    color: #0b0c0c !important;
    border-color: #fd0 !important;
}
