/* Gov.uk / HMRC Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #0b0c0c;
    background-color: #ffffff;
    line-height: 1.5;
}

/* Header */
.gov-header {
    background-color: #0b0c0c;
    color: #ffffff;
    padding: 15px 0 0 0;
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.logo-area {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: normal;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.header-nav a:hover {
    text-decoration: underline;
}

.header-border-bottom {
    background-color: #00823b; /* HMRC Green border */
    height: 10px;
    width: 100%;
    margin-top: 15px;
}

/* Main Content */
.main-content {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 15px;
}

h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-container {
    border: 1px solid #00823b;
    border-radius: 20px 20px 0 0;
    padding: 30px;
    border-bottom: none;
    border-left: none; /* Removing to match screenshot more closely, but the green curve exists */
    border-bottom-left-radius: 0;
    position: relative;
}

/* Simulate the specific green wrapper line from the screenshot */
.form-container::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: 0;
    width: calc(100% - 30px);
    border-top: 1px solid #00823b;
    border-right: 1px solid #00823b;
    border-top-right-radius: 20px;
    pointer-events: none;
}

.required-info {
    font-size: 16px;
    margin-bottom: 25px;
}

.star {
    color: #d4351c; /* HM Revenue red for asterisks */
    font-weight: bold;
}

.instructions {
    margin-bottom: 30px;
    font-size: 16px;
}

.separator {
    border: 0;
    border-top: 2px solid #557b7f; /* Teal separator */
    margin-bottom: 30px;
}

/* Form Styling */
.refund-form {
    max-width: 650px;
}

.input-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
}

.input-group label {
    flex-basis: 30%;
    text-align: right;
    margin-right: 10px;
    font-size: 16px;
}

.input-group input {
    flex-basis: 70%;
    height: 30px;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 16px;
}

.bottom-separator {
    margin-top: 40px;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background-color: #f3f2f1;
    color: #0b0c0c;
    border: 1px solid #b1b4b6;
    border-radius: 8px;
    padding: 6px 15px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 0 #b1b4b6;
}

.submit-btn:hover {
    background-color: #dbdad9;
}

/* Footer */
.gov-footer {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px 15px;
    text-align: center;
}

.footer-links {
    font-size: 16px;
}

.footer-links a {
    color: #000;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.divider {
    margin: 0 10px;
    color: #000;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-group label {
        text-align: left;
        margin-bottom: 5px;
    }

    .input-group input {
        width: 100%;
    }

    .button-group {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .divider {
        display: none;
    }
}
