main {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}

.form-head {
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    padding: 1rem;
    background: #242525;
    color: #00853e;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #cad2cd;
    padding: 1.5rem;
    border-radius:0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

label {
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

input,
select,
textarea {
    font: inherit;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #34576c97;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.25);
}

input[type="submit"] {
    background: #2b896d;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background: #005fa3;
}

/* ---------- Membership Cards ---------- */
.membership-levels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
}

.membership-levels h2 {
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
    width: 100%;
    margin: 0;
    padding: 1rem ;
    border-radius: 0.5rem 0.5rem 0 0;
}

.cards-grid {
    display: grid;
    gap: 1rem;
}

.membership-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    border-radius: 0.6rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.8s ease forwards;
}

.membership-card:nth-child(1) {
    animation-delay: 0.1s;
}

.membership-card:nth-child(2) {
    animation-delay: 0.3s;
}

.membership-card:nth-child(3) {
    animation-delay: 0.5s;
}

.membership-card:nth-child(4) {
    animation-delay: 0.7s;
}

.card-link {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: #2b896d;
    color: #fff;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background 0.3s;
}

.card-link:hover {
    background: #005fa3;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Modals ---------- */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

dialog {
    border: none;
    border-radius: 0.6rem;
    padding: 0;
    max-width: 500px;
    width: 90%;
    position: fixed;
    inset: 0;
    margin: auto;
}

.modal-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.6rem;
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    cursor: pointer;
}

.modal-body ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

/* --------- Thank You page --------------- */
.thankyou {
    display: block;
    
}

.summary-box {
    background: #fff;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-box li {
    padding: 0.25rem 0;
}

/* ---------- Responsive Layout ---------- */
@media (min-width: 768px) {
    main {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}