:root {
    --color1: #2c3e50; /* Midnight Blue */
    --color2: #09622e; /* Dark Green */
    --color3: #eaecee; /* Light Steel Gray */
    --roboto: "Open Sans", "Roboto", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: #f8f9fa;
    font-family: var(--roboto);
}

body.modal-open {
    overflow: hidden;
}

/*-************* LAYOUT **************-*/
main {
    display: grid;
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-family: var(--roboto);
    color: var(--color1);
    text-align: center;
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

/* On larger screens, create a two-column layout */
@media (min-width: 900px) {
    main {
        grid-template-columns: 2fr 1fr;
    }
}

/*-************* SECTION STYLES **************-*/
.form-container, .membership-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h2 {
    font-family: var(--roboto);
    font-size: 1.8rem;
    color: var(--color1);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color3);
}

/*-************* FORM STYLES **************-*/
.designOne {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.designOne label {
    color: var(--color1);
    font-size: 0.9rem;
    font-weight: 600;
}

.designOne input[type="text"],
.designOne input[type="email"],
.designOne input[type="tel"],
.designOne textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--roboto);
    margin-top: 0.35rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.designOne input:focus,
.designOne textarea:focus {
    outline: none;
    border-color: var(--color2);
    box-shadow: 0 0 0 3px rgba(9, 98, 46, 0.2);
}

.designOne textarea {
    min-height: 120px;
    resize: vertical;
}

.designOne input:required:valid {
    border-left-color: var(--color2);
    border-left-width: 5px;
}
.designOne input:required {
    border-left-color: #d70000;
    border-left-width: 5px;
}


.designOne h3 {
    font-size: 1.1rem;
    color: var(--color1);
    margin: 1rem 0 0.5rem 0;
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-weight: 500;
}
.radio-group label:hover {
    background-color: #f8f8f8;
    border-color: var(--color1);
}

.designOne input[type="radio"] {
    accent-color: var(--color2); /* Modern way to color radios */
    width: 1.2em;
    height: 1.2em;
}

/* Submit Button */
.designOne input[type="submit"] {
    background-color: var(--color2);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--roboto);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.designOne input[type="submit"]:hover {
    background-color: #074e26; /* Darker green for hover */
}

/*-************* MEMBERSHIP LEVELS **************-*/
.membership-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.membership-container aside {
    background-color: var(--color3);
    border: 1px solid #d6d9db;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slidein 1s ease-out;
    transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.4s ease;
}

.membership-container aside:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Bronze Gradient on Hover */
.membership-container aside:nth-of-type(2):hover {
    background: linear-gradient(145deg, #f3e9dc, #6d4d22);
}

/* Silver Gradient on Hover */
.membership-container aside:nth-of-type(3):hover {
    background: linear-gradient(145deg, #f7f7f7, #868282);
}

/* Gold Gradient on Hover */
.membership-container aside:nth-of-type(4):hover {
    background: linear-gradient(145deg, #faeab5, #cea93c);
}

.membership-container h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color1);
    font-size: 1.2rem;
}

.membership-container p {
    margin: 0 0 1rem 0;
    color: #424242;
    flex-grow: 1;
    font-weight: 400;
}

.membership-container button {
    background-color: var(--color1);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--roboto);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.membership-container button:hover {
    background-color: #1a2531; /* Darker blue for hover */
}


/*-************* MODAL STYLES **************-*/
#mlModal {
    position: relative;
    border: 2px solid var(--color2);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    width: clamp(300px, 90%, 600px);
}

#mlModal div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color3);
    margin-bottom: 1rem;
}

#mlModal h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color1);
    margin: 0;
}
#mlModal span {
    font-size: 1rem;
    line-height: 1.6;
}

::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

#mlModal button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #888;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#mlModal button:hover {
    background-color: #f1f1f1;
    color: #333;
}

/*-************* ANIMATIONS **************-*/
@keyframes slidein {
    from {
      opacity: 0;
      transform: translateY(25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

/*-************* RESPONSIVE ADJUSTMENTS **************-*/
@media (max-width: 600px) {
    main {
        padding: 1rem;
        gap: 1.5rem;
    }

    .form-container, .membership-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .designOne input[type="submit"] {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .membership-container button {
        padding: 0.7rem 1.4rem;
    }
}



