* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
.page-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 30px 20px;
  background-color: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

.header-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-column h3 {
  margin-bottom: 10px;
  color: #444;
  font-size: 18px;
}

.header-column p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Main Body Styles */
.page-main {
  flex: 1;
  padding-top: 40px;
  padding-right: 20px;
  padding-bottom: 0;
  padding-left: 20px;
  background-color: #fff;
}

.page-main h1 {
  margin-bottom: 20px;
  font-size: 32px;
  color: #333;
}

.page-main p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* Footer Styles */
.page-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 30px 20px;
  background-color: #f5f5f5;
  border-top: 2px solid #ddd;
}

.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-column h3 {
  margin-bottom: 10px;
  color: #444;
  font-size: 18px;
}

.footer-column p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header,
  .page-footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.two-column-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: sans-serif;
}
.two-column-form-container h2 { text-align: center; margin-bottom: 25px; }

/* -- Start layout styles -- */
/* A container for a row that will hold columns */
.form-row {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if needed, though we handle stacking with media queries */
    gap: 20px; /* The space between the columns */
    margin-bottom: 20px;
}
.form-row .form-group {
    flex: 1; /* Allows each form group to grow and take up equal space */
    min-width: 200px; /* Prevents columns from getting too squished before stacking */
    margin-bottom: 0;
}
/* This handles single, full-width rows */
.form-group:not(.form-row .form-group) {
    margin-bottom: 20px;
}

/* -- Responsive stacking for mobile -- */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0; /* Remove gap when stacking */
    }
    .form-row .form-group {
        margin-bottom: 20px; /* Add margin back for stacked view */
    }
}
/* -- End layout styles -- */

/* General styling for labels and inputs */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

  .form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-right: 6px;
  }

  .form-group input[type="checkbox"] + label {
    display: inline;
    margin-bottom: 0;
  }

.submit-btn {
    width: 50%;
    padding: 12px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
}

.reset-btn {
    width: 50%;
    padding: 12px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
}

.button-container {
    display: flex;
    gap: 10px; /* Adds space between the buttons */
    /* Optional: Center the buttons */
    justify-content: center;
}

/* Light mode colors (default) */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}

.required-label::after {
  content: "*"; /* Inserts a space and an asterisk after the label */
  color: red;   /* Styles the asterisk in red */
  margin-left: 4px; /* Adds a little space between the label and the asterisk */
}

textarea {
  width: 100%;
  box-sizing: border-box;
  /* Optional: Prevents users from manually resizing the width, 
     allowing only vertical resize */
  resize: vertical; 
}