body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #007cba;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

h3 {
    font-weight: 600;
    margin-top: 1rem;
}

label h3 {
    margin-bottom: 0.25rem;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 90%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

textarea, .long-text {
  width:95%!important;
}

input:focus, select:focus, textarea:focus {
    border-color: #007cba;
    outline: none;
}

input[type="checkbox"] {
    transform: scale(1.2);
}

button, input[type="submit"] {
    background-color: #007cba;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #005f8d;
}

.three-spread, .two-spread {
    display: grid;
    gap: 1rem;
}

.three-spread { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.two-spread { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.application-hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: center;
}

.success-message, .error-message {
    display: none;
    padding: 2rem;
    background: #e6f7ff;
    border: 1px solid #b3e0ff;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 2rem;
}

.success-message.active { display: block; color: #007cba; }
.error-message.active { display: block; color: red; background: #ffe6e6; border-color: #ffb3b3; }

.g-recaptcha {
    margin: 1rem 0;
}

footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    text-align: center;
}

/* General Styles for Messages */
.form-message {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75em 1em;
  margin: 1em 0;
  border-radius: 4px;
  border: 1px solid transparent;
  display: none; /* Hidden by default */
}

/* Success Message */
.form-message.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
  display: block; /* Show when needed */
}

/* Error Message */
.form-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
  display: block; /* Show when needed */
}

/* Inline Error Messages */
.input-error {
  border-color: #dc3545;
}

.input-error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25em;
}
