/* GOV.UK Design System Styles */

body {
    font-family: "GDS Transport", arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #0b0c0c;
    min-height: 100vh;
}

.govuk-width-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #005ea5;
    color: #ffffff;
    padding: 10px 0;
}

header .govuk-width-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header svg {
    fill: #ffffff;
}

header .gem-c-layout-super-navigation-header__navigation-item-link,
header .gem-c-layout-super-navigation-header__search-item-link {
    color: #ffffff;
    text-decoration: none;
}

header .gem-c-layout-super-navigation-header__navigation-item-link:hover,
header .gem-c-layout-super-navigation-header__search-item-link:hover {
    text-decoration: underline;
}

main {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    max-width: 960px;
}

h1, h2, h3, h4, h5, h6 {
    color: #0b0c0c;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.govuk-button {
    background-color: #00703c;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0;
    margin: 10px 5px;
    transition: background-color 0.2s ease;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
}

.govuk-button:hover {
    background-color: #005a30;
}

.govuk-button--secondary {
    background-color: #f3f2f1;
    color: #0b0c0c;
    border: 2px solid #0b0c0c;
}

.govuk-button--secondary:hover {
    background-color: #dbdad9;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f3f2f1;
    color: #0b0c0c;
    border: 2px solid #0b0c0c;
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background: #dbdad9;
}

form {
    display: flex;
    flex-direction: column;
}

.govuk-form-group {
    margin-bottom: 20px;
}

.govuk-label {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.govuk-input, .govuk-textarea {
    width: 100%;
    padding: 5px 4px 4px;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    font-size: 1rem;
    box-sizing: border-box;
}

.govuk-textarea {
    resize: vertical;
    min-height: 80px;
}

#error-message {
    background-color: #d4351c;
    color: #ffffff;
    padding: 20px;
    border-radius: 0;
    text-align: center;
}

.govuk-select {
    width: 100%;
    padding: 5px 4px 4px;
    border: 2px solid #0b0c0c;
    border-radius: 0;
    font-size: 1rem;
    box-sizing: border-box;
}

.bank-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bank-option:hover {
    background-color: #f8f8f8;
}

.bank-option input[type="radio"] {
    margin-right: 10px;
}

.bank-option img {
    width: 40px;
    height: auto;
    margin-right: 10px;
    object-fit: contain;
}

.bank-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .govuk-width-container {
        padding: 0 10px;
    }

    main {
        padding: 20px;
        margin: 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .govuk-button {
        width: 100%;
        margin: 10px 0;
    }

    .back-btn {
        position: static;
        margin-bottom: 20px;
    }

    .bank-selection {
        gap: 5px;
    }

    .bank-option {
        padding: 8px;
    }

    .bank-option img {
        width: 30px;
    }

    header .govuk-width-container {
        flex-direction: column;
        align-items: flex-start;
    }

    header .gem-c-layout-super-navigation-header__navigation-item,
    header .gem-c-layout-super-navigation-header__search-item {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 15px;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    .govuk-input, .govuk-textarea {
        font-size: 0.875rem;
    }

    .bank-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .bank-option img {
        width: 25px;
        margin-bottom: 5px;
    }

    .bank-option label {
        flex-direction: column;
        align-items: flex-start;
    }
}
