:root {
    --light-green: hsl(148, 38%, 91%);
    --green: hsl(169, 82%, 27%);
    --red: hsl(0, 66%, 56%);
    --white: hsl(0, 0%, 100%);
    --medium-grey: hsl(186, 15%, 59%);
    --dark-grey: hsl(187, 24%, 22%);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--light-green);
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.form-container {
    background-color: var(--white);
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--dark-grey);
    text-align: center;
}

.form-section {
    margin-bottom: 1.5rem;
}

.inline-fields {
    display: flex;
    gap: 1.5rem; 
}

.field-group {
    flex: 1;
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--medium-grey);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark-grey);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--green);
}

.error-message {
    color: var(--red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error input,
.error textarea {
    border-color: var(--red);
    background-color: var(--light-green);
}

button {
    background-color: var(--green);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: hsl(169, 82%, 22%);
}

.checkbox-group {
    margin: 2rem 0;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--green);
}

/* Success Modal Styles */
.success-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
}

.modal-header {
    background: var(--green);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.modal-content p {
    color: var(--dark-grey);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.modal-close {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Attribution Styles */
.attribution {
    font-size: 0.875rem;
    text-align: center;
    color: var(--dark-grey);
    margin-top: 1rem;
}

.attribution a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.attribution a:hover {
    text-decoration: underline;
}