/* Variables for consistent styling */
:root {
    --dark-background: #ffffff; /* White background */
    --text-color-light: #333333; /* Darker text color */
    --text-color-grey: #555555; /* Darker grey text color */
    --accent-green: #6b8e23; /* Earthy green */
    --accent-green-hover: #7c9e33;
    --form-bg-dark: #ffffff; /* White background for form */
    --form-border: rgba(107, 142, 35, 0.4); /* Greenish border for focus */
    --input-bg: #f0f0f0; /* Light grey input background */
    --input-text: #333333;
}

/* Global adjustments for the registration page */
.registration-hero {
    padding: 4rem 2rem; /* More generous padding */
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically and horizontally */
    min-height: calc(100vh - 100px); /* Ensure form takes up sufficient height */
}

.registration-container {
    background-color: var(--form-bg-dark); /* Using new form background variable */
    border-radius: 15px; /* More rounded corners */
    padding: 3.5rem; /* More padding inside the container */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* Deeper, softer shadow */
    width: 100%;
    max-width: 800px; /* Increased max-width */
    backdrop-filter: blur(8px); /* More blur for frosted effect */
    border: 1px solid rgba(146, 209, 63, 0.2); /* Subtle green border */
}

.registration-container h1, .registration-container h2 {
    color: var(--text-color-light); /* Darker color for visibility */
    text-align: left;
    margin-bottom: 0.6rem; /* Tighter gap below headings */
    font-weight: 700;
    text-shadow: none;
}

/* Reduce space between heading and following paragraph */
.registration-container h2 + p {
    margin-top: 0.2rem;
}

/* Fee summary styling */
.fee-summary {
    font-weight: 600;
    margin: 0.8rem 0;
    color: var(--text-color-light);
}

.registration-container p,
.registration-container ul {
    color: var(--text-color-grey);
    line-height: 1.6; /* Compact readability */
    margin-bottom: 1rem; /* Reduced gap */
    font-size: 0.95rem; /* Slightly smaller font */
}

.registration-container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem; /* More space below list */
}

.registration-container ul li {
    margin-bottom: 0.5rem; /* Tighter spacing between list items */
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
}

.registration-container ul li::before {
    content: '\f058'; /* Font Awesome check circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-green);
    position: absolute;
    left: 0;
    top: 0; /* Align icon with text */
}

.registration-form label {
    display: block;
    margin-top: 0.6rem; /* Further reduced space above labels */
    margin-bottom: 0.3rem; /* Further reduced space below labels */
    font-weight: 600; /* Slightly bolder labels */
    color: var(--text-color-light);
    font-size: 0.95rem; /* Slightly smaller font */
}

.registration-form input[type="text"],
.registration-form input[type="number"],
.registration-form input[type="tel"],
.registration-form input[type="email"],
.registration-form select,
.registration-form textarea {
    width: calc(100% - 2rem); /* Adjusted width with padding */
    padding: 0.8rem; /* Reduced padding */
    margin-bottom: 0.5rem; /* Tighter bottom margin */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Softer border */
    border-radius: 8px; /* Slightly more rounded */
    background-color: var(--input-bg); /* Using new input background variable */
    color: var(--input-text);
    font-size: 0.95rem; /* Slightly smaller font */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="number"]:focus,
.registration-form input[type="tel"]:focus,
.registration-form input[type="email"]:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    border-color: var(--accent-green); /* Accent color on focus */
    box-shadow: 0 0 10px var(--form-border); /* Glow effect on focus */
    outline: none;
}

.registration-form input[type="file"] {
    width: calc(100% - 2rem); /* Adjusted width with padding */
    padding: 1rem; /* More padding */
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color-grey);
    font-size: 1.05rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem; /* Reduced space between radio options */
    margin-bottom: 1rem; /* Reduced space below radio group */
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for unselected */
    padding: 0.7rem 1.2rem; /* Reduced padding for labels */
    border-radius: 25px; /* More rounded */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s;
    font-weight: 500;
    color: var(--text-color-grey);
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--accent-green); /* Accent color when checked */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Deeper shadow when checked */
    transform: translateY(-2px);
}

.radio-group label:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Subtle hover effect */
}

.radio-group input[type="radio"]:checked + label:hover {
    background-color: var(--accent-green-hover); /* Lighter accent on hover when checked */
}

/* Adjust placeholder style for input fields with "Other:" */
.registration-form input[placeholder="Other:"] {
    margin-top: 1rem; /* More space above other input */
    margin-bottom: 0; /* Remove bottom margin if followed by another element */
    width: calc(100% - 2rem); /* Ensure consistent width */
}

.registration-form button[type="submit"] {
    background-color: var(--accent-green); /* Accent green for button */
    color: white;
    padding: 0.9rem 1.4rem; /* Reduced button padding */
    border: none;
    border-radius: 30px; /* Even more rounded */
    cursor: pointer;
    font-size: 1rem; /* Slightly smaller font size */
    font-weight: 700;
    margin-top: 1.5rem; /* Less space above button */
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); /* Slightly lighter shadow */
}

.registration-form button[type="submit"]:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

footer {
    text-align: left;
    padding: 2rem;
    color: var(--text-color-grey);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .registration-container {
        padding: 1.5rem;
    }

    .registration-container h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .registration-container {
        padding: 1rem;
    }

    .registration-container h1 {
        font-size: 1.5rem;
    }

    .registration-form input,
    .registration-form select,
    .registration-form textarea,
    .registration-form button {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .radio-group label {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}