/* ============================================ */
/* HERO & DIRECTORY HEADER                      */
/* ============================================ */
.hero-directory {
    position: relative;
    width: 100%;
    background: var(--primary) url("../../images/banners/main3.webp") no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink);
    padding: 2rem;
    overflow: hidden;
}

/* ============================================ */
/* FORM STYLING                                 */
/* ============================================ */
.form-body {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.3rem;
    background-color: var(--accent4); 
    border-radius: 8px;
    box-shadow: var(--shadow);
}

form label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--ink2); 
    font-size: 0.9rem;
}

input[type=text],
input[type=tel],
input[type=email],
form select,
form textarea {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid rgb(206, 204, 204);
    border-left: 5px solid #555;
    border-radius: 4px;
    background-color: var(--ink);
    color: var(--ink2);
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Validation & Interaction States */
input:required { border-left-color: #d70000; }
input:focus { border-left-color: black; outline: none; }
input:required:valid { border-left-color: green; }

form textarea {
    height: 120px;
    resize: vertical;
}

/* Submit Button Styling */
.form-actions {
    max-width: 600px;
    margin: 2rem auto;
}

form input[type="submit"] {
    width: 100%;
    background: linear-gradient(to right, var(--accent1), var(--accent));
    color: var(--ink);
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

form input[type="submit"]:hover {
    border-color: var(--accent2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* MEMBERSHIP CARDS & GRID                      */
/* ============================================ */
.level h2 {
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}

#showHere {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.membership-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--primary);
    color: var(--ink);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: floatIn 0.8s ease-out forwards;
    transition: transform 0.3s ease;
}

.membership-card:hover { transform: translateY(-5px); }

.membership-card h3 {
    color: var(--accent2);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.membership-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.learn-more-btn {
    background-color: var(--accent);
    color: var(--ink);
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.learn-more-btn:hover { 
    background-color: var(--accent1); 
}

/* Card Animations */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.membership-card:nth-child(2) { animation-delay: 0.4s; }
.membership-card:nth-child(3) { animation-delay: 0.8s; }
.membership-card:nth-child(4) { animation-delay: 1.2s; }

/* ============================================ */
/* DIALOG (MODAL) STYLING                       */
/* ============================================ */
#mydialog {
    border: 1px solid grey;
    border-radius: 8px;
    width: 80%;
    box-shadow: 0 8px 10px rgb(67, 67, 60);
        animation: slideIn 0.3s ease-out;
}

#mydialog div {
    display: grid;
    grid-template-columns: auto 44px;
    padding: 5px;
    border-bottom: grey 1px solid;
}

#mydialog h2 {
    color: var(--primary);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
}

#mydialog p {
    padding: 10px;
    color: var(--ink2);
}

#mydialog button {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#mydialog button:hover {
    color: #d70000; 
}

::backdrop {
    background-color: rgba(227, 225, 225, 0.5);
    backdrop-filter: blur(2px);
}
/* Entrance Animation */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* ============================================ */
/* LAYOUT & RESPONSIVENESS                      */
/* ============================================ */
.content {
    max-width: var(--maxw);
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {

    .content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    #mydialog {
        width: 50%;
    }

    #showHere {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
    }

}