@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --primary-blue: #091f4f;
  --primary-accent: #fbc02d;
  /* For the small lines under logo if needed */
  --alert-bg: #dcf4fc;
  --alert-border: #4cc7ed;
  --input-bg: #f2f2f2;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --bg-page: #f5f5f5;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: var(--primary-blue);
  width: 100%;
  border-bottom: 0px solid var(--primary-blue);
  /* Visual spacing similar to image if needed */
}

.header-content {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  /* Remove horizontal padding as the max-width handles it, or match form */
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-howden {
    height: 20px;
    width: auto;
    object-fit: contain;
    margin-right: 2em;
}

.howden-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
}


#howden-year {
color: #54b2e2;
    font-size: 1.3rem;
    margin-top: 0.1rem;
    text-align: left;
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  justify-content: center;

}

.form-container {
  background: var(--white);
  padding: 3rem 4rem;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 1.75rem;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #000;
}

.subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Alert Box */
.alert-box {
  background-color: var(--alert-bg);
  border: 2px solid var(--alert-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.alert-title {
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: #fff;
}

.checkbox-group {
  /* keep block layout */
  margin-top: 2rem;
  margin-bottom: 2rem;
  /* no flex, rely on float layout */
}

.checkbox-group input {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  accent-color: var(--primary-blue);
  float: left;
  /* float checkbox left */
  margin-right: 0.5rem;
  /* space between checkbox and label */
}

/* Date Selectors */
.date-inputs {
  display: flex;
  gap: 1rem;
}

.date-field {
  display: flex;
  flex-direction: column;
}

select {
  padding: 0.8rem 1rem;
  background-color: var(--input-bg);
  border: none;
  border-right: 1px solid #ddd;
  /* Subtle separate look */
  border-radius: 4px;
  /* We usually want individual selects to be rounded */
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  /* simple styling */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  padding-right: 2.5rem;
  min-width: 80px;
}

.date-label-sm {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  vertical-align: middle;
}

.checkbox-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  font-style: italic;
  margin-left: 24px;
  /* align with checkbox width + margin */
}

/* clearfix to contain floated input */
.checkbox-group::after {
  content: "";
  display: table;
  clear: both;
}

.checkbox-group label a {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background-color: var(--primary-blue);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #0b2d6b;
}

/* Footer Legal Text */
.legal-footer {
  font-size: 0.65rem;
  /* Very small as per image */
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.5rem;
  line-height: 1.4;
  text-align: justify;
}

.error-message {
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.input-error {
  border: 1px solid #d93025 !important;
  background-color: #fce8e6 !important;
}

/* Responsive */
@media (max-width: 600px) {
  .form-container {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .date-inputs {
    gap: 0.5rem;
  }
}

/* Loading Spinner */
.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-submit:disabled {
  background-color: #9aaec1; /* Desaturated version of primary-blue roughly, or just grey */
  cursor: not-allowed;
  opacity: 0.9;
}