/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Layout */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #111111;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Headings */
h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000000;
  text-align: center;
}

/* Form Elements */
form label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

/* Submit Button */
button[type="submit"] {
  background-color: #cc0000; /* deep red */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 30px auto 0 auto; /* centers the button */
}

button[type="submit"]:hover {
  background-color: #990000; /* darker red on hover */
}

/* Alerts */
.alert-success {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: #333333;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #dddddd;
}

footer a {
  color: #007BFF;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer {
  background-color: #f4f4f4;  /* soft gray background */
  padding: 30px 20px;
  margin-top: 40px;
  color: #333;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

footer a {
  color: #007BFF;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.site-header {
  text-align: center;
  background-color: #ffffff;
  padding-top: 30px;
  padding-bottom: 10px;
}

.site-header h1 {
  font-size: 36px;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: 0.5px;
}

.site-header .red {
  color: #e0002c;
}

.site-header .black {
  color: #000000;
}

.red-divider {
  height: 4px;
  background-color: #e0002c;
  width: 100%;
  margin-bottom: 20px;
}

.site-link {
  text-decoration: none;
  display: inline-block;
}

.site-link:hover {
  opacity: 0.9;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default to 3 columns */
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr; /* Force 1 column below 600px */
  }
}


.box-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 2px solid #eee;
  padding: 25px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  transition: 0.2s ease;
  min-height: 120px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
  word-wrap: break-word;
}

.box-link:hover {
  border-color: #e0002c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #e0002c;
}

.content h2 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.content p {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: left;
}

.help-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.help-list li {
  margin-bottom: 8px;
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

select:focus {
  border-color: #999;
  outline: none;
}