/* ==============================
   GENERAL LAYOUT
   ============================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==============================
   TABLES (Membership / Details)
   ============================== */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    table-layout: auto;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

table th {
    background-color: #f0f0f0;
}

table tr:nth-child(even) td {
    background-color: #fafafa;
}

@media (max-width: 768px) {
    table, table th, table td {
        display: block;
        width: 95%;
        margin: 0 auto 15px auto;
    }
    table tr {
        margin-bottom: 15px;
        display: block;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }
    table td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        display: inline-block;
        width: 120px;
    }
    table th {
        display: none;
    }
}

/* ==============================
   FORM WRAPPER
   ============================== */
.form-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* ==============================
   FORM SECTIONS
   ============================== */
.form-section {
    border: 1px solid #ccc;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    background-color: #fdfdfd;
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* ==============================
   FORM LABELS & INPUTS
   ============================== */
form label {
    display: flex;
    flex-direction: column; /* label on top, input below */
    margin-bottom: 15px;
    font-weight: 600;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form textarea {
    min-height: 80px;
}

/* ==============================
   BUTTONS
   ============================== */
form button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #004999;
}

/* ==============================
   BACK LINKS
   ============================== */
a.back-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #0066cc;
}

a.back-link:hover {
    text-decoration: underline;
}

/* ==============================
   LINKS IN TABLES
   ============================== */
table a {
    color: #0066cc;
}

table a:hover {
    text-decoration: underline;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .form-wrap, .form-section {
        width: 95%;
        padding: 10px;
    }
    form button {
        width: 100%;
    }
}
form label {
    display: flex;
    flex-direction: column; /* label on top, input below */
    margin-bottom: 15px;
}


