* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
body {
    background: linear-gradient(135deg, #f0f4f8, #e0e7ee);
    background-image: url('hatter.jpg');
    background-size: cover;
    background-position: center;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}
h1 {
    text-align: center;
    margin: 2rem 0;
    font-size: 2.5rem;
    color: #000000;
    text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}
.box {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 66%;
    margin: 2rem auto;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0077cc;
    outline: none;
    box-shadow: 0 0 0 2px #e0f0ff;
}

button,
input[type="submit"] {
    background: linear-gradient(90deg, #0077cc 0%, #00c6ff 100%);
    color: #fff;
    border: none;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,119,204,0.15);
    transition: background 0.2s, transform 0.2s;
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(90deg, #005fa3 0%, #009ecf 100%);
    transform: translateY(-2px) scale(1.03);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

.message { margin: 1em 0; color: green; }

.tabs { 
    display: flex; 
    flex-direction: row;
}
.tab {
    padding: 0.5em 1em;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #eee;
    margin-right: 2px;
}
.tab.active { 
    background: #a1c5ea; 
    font-weight: bold; 
    display: inline-block;
}
.tab-content { 
    border: 1px solid #aaa; 
    border-top: none;
    padding: 1em; 
    background-color: #a1c5ea;;
    margin-bottom: 1rem;
}
#regcongregation, #regperson { display: none; }

form-cell, input[type="checkbox"] + label {
    display: inline;
    margin-left: 0.5em;
    vertical-align: middle;
}
.form-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.btn, button {
    background: linear-gradient(90deg, #0077cc 0%, #00c6ff 100%);
    color: #fff;
    border: none;
    width: 100%;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,119,204,0.15);
    transition: background 0.2s, transform 0.2s;
}
.btn, button:hover {
    background: linear-gradient(90deg, #005fa3 0%, #009ecf 100%);
    transform: translateY(-2px) scale(1.03);
}
.btn, button:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
    border: 1px solid #aaa;
}

table {
    width: 90%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding: .5rem 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.8);
    background-color: rgba(255,255,255,0.5);
}
table tbody {
    table-layout: fixed;
}
table th, table td {
    border: 1px solid #ccc;
    padding: 0.75rem 1rem;
    text-align: center;
}
table th {
    background: #0077cc;
    color: #fff;
    font-weight: 600;
}
table tr:nth-child(even) {
    background: rgba(240, 244, 248, 0.7);
}
table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
    form {
        padding: 1rem;
        max-width: 90%;
    }
    h1 {
        font-size: 2rem;
        margin: 1rem 0;
    }
    table, table th, table td {
        font-size: 0.9rem;
    }
}
.box p {
    margin-bottom: 1rem;
    color: #333;
}