form {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #555;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.yesno label {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem; /* spacing between Yes and No */
}
legend{
  font-size:1.5rem;
  font-weight:bold;
}
fieldset{
  margin-top:5px;
  margin-bottom:5px;
}
.yesno label:hover{
  cursor: pointer;
}
.yesno input[type="radio"]:hover{
  cursor: pointer;
}
.yesno input[type="radio"] {
  margin-left: 0.25rem;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type='text'], input[type='number'],input[type='email'],input[type='password'] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-sizing: border-box;
}
input[type='submit'] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #007BFF;
    color: white;
    cursor: pointer;
    margin-left:auto;
    margin-right:auto;
    display:block;
}
input[type='submit']:hover {
    background: #0056b3;
}
textarea{
  width:100%;
}
.notpaid{
    color:red;
}
.hide{
  display:none;
}
#MailChangeArticle ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;              /* puts li's next to each other */
    justify-content: center;
    gap: 20px;                   /* spacing between tabs */
}

#MailChangeArticle ul li {
    padding: 8px 14px;
    border: 1px solid #888;
    border-radius: 6px 6px 0 0; /* tab shape */
    cursor: pointer;
    background: #007BFF;
    color: white;
    font-family: sans-serif;
    user-select: none;
    transition: background .2s, color .2s;
}

#MailChangeArticle ul li:hover {
    background: #0056b3;
}

#MailChangeArticle ul li.active {
    background: #0056b3;
    border-bottom: 1px solid white; /* merge with content panel */
    font-weight: bold;
}
#MailChangeArticle ~ article {
    border: 1px solid #888;
    padding: 15px;
    background: white;
    border-radius: 0 6px 6px 6px;
    margin-top:-50px;
}

#ServerMessage{
    width:100%;
    text-align: center;
    color:white;
    text-decoration: underline;
    font-weight:bold;
    font-size:1.3rem;
    background-color: red;
    padding-top:1px;
    padding-bottom:1px;
}


body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f7f7f7;
color: #333;
}
header {
text-align: center;
padding: 15px 10px;
background: white;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
header img {
max-width: 150px;
display: block;
margin: 0 auto 5px;
}
nav {
display: flex;
justify-content: center;
gap: 25px;
background: #ffffff;
padding: 15px 0;
border-bottom: 1px solid #e5e5e5;
}
nav a {
background: lightslategray;
color: white;
padding: 10px 18px;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
text-align: center;
transition: 0.2s;
}
nav a:hover{
background: lightgray;
color:black;
}
article {
width: 90%;
max-width: 1100px;
margin: 40px auto;
}
article h1{
text-align: center;
}
#Zoekbalk label {
font-weight: bold;
}
#Zoekbalk input {
width: 100%;
padding: 12px;
margin-top: 5px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
#Main h1{
    text-align: center;
}
#Upcoming_Events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

#Upcoming_Events .event-card {
  flex: 1 1 280px;
  max-width: 320px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#Upcoming_Events .event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

#Upcoming_Events .event-logo {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 6px;
}

#Upcoming_Events h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

#Upcoming_Events p {
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
  color: #555;
}

#Upcoming_Events a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

#Upcoming_Events a:hover {
  background-color: #2980b9;
}

footer {
background: #ffffff;
text-align: center;
padding-bottom:2px;
padding-top:3px;
}
/* Sticky footer fix */
html, body {
height: 100%;
display: flex;
flex-direction: column;
}
body > footer {
margin-top: auto;
}
.discount-notice {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #27ae60;
  font-weight: 500;
  text-align: center;
}
#TicketOrderForm{
    text-align: center;
}

.event-manage-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
}

.event-manage-button.active {
  background-color: #3498db;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.event-manage-button.active:hover {
  background-color: #2980b9;
}

.event-manage-button.inactive {
  background-color: #bdc3c7;
  color: #7f8c8d;
  cursor: not-allowed;
}
.new-event-card {
  background-color: #eaf6ff;
  border: 2px dashed #3498db;
}

.new-event-card h2 {
  font-size: 1.4rem;
  color: #3498db;
  margin-bottom: 0.5rem;
}

.new-event-card p {
  font-size: 0.95rem;
  color: #2c3e50;
}
.policy-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    line-height: 1.7;
}

.policy-card h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #0ea5e9;
}

.policy-card h2 {
    margin-top: 25px;
    font-size: 20px;
    color: #0ea5e9;
}

.policy-card h3 {
    margin-top: 15px;
    font-size: 17px;
    color: #333;
}

.policy-card ul {
    margin-left: 20px;
    list-style-type: disc;
}

.policy-card a {
    color: #0ea5e9;
    text-decoration: none;
}

.policy-card a:hover {
    text-decoration: underline;
}
.test-notice {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px 20px;
    background: #f0f9ff;
    border-left: 5px solid #0ea5e9;
    border-radius: 10px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.test-notice strong {
    font-size: 15px;
    color: #0284c7;
}

.test-notice em {
    display: block;
    margin-top: 8px;
    color: #334155;
}
    /* Smartphones (portrait) */
    @media (max-width: 600px) {
      form {
        margin: 15px auto;
        padding: 15px;
        max-width: 95%; /* use almost full width */
      }

    nav {
        padding: 5px;
        gap: 8px;
      }

      nav a {
        font-size: 1rem;
        padding: 10px 0;
        width: 90%;
        max-width: 300px;
        background-color: #007bff; /* optional: button-like styling */
        color: white;
        border-radius: 5px;
        text-decoration: none;
      }


      #Upcoming_Events {
        flex-direction: column; /* stack event cards */
        gap: 1rem;
      }

      #Upcoming_Events .event-card {
        max-width: 100%; /* cards fill screen width */
      }

      header img {
        max-width: 100px; /* shrink logo */
      }

      article {
        width: 95%;
        margin: 20px auto;
      }

      .policy-card {
        padding: 15px;
        margin: 15px auto;
        max-width: 95%;
      }
      header h1 {
        font-size: 1.5rem; /* or even 1.2rem */
        margin-bottom: 0.5rem;
      }

      header img {
        max-width: 120px;
        height: auto;
      }

    }