html {
  height: 100%;
  background-color: var(--background-color);
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

body > article {
  flex: 1;
}

body > img {
  position: absolute;
  display: inline-block;
  z-index: -1;
  height: 100%;
  width: 100%;
  object-fit: cover; 
}

h4 {
  color: var(--accent-dark-blue);
  margin: 4rem 1rem 0.6rem 1rem;
  font-family: var(--font-subheader);
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-align: center;
  font-weight: var(--fw-subheader);
}

h1 {
  color: var(--text-color);
  margin: 0;
  margin-bottom: 2rem;
  font-size: 3rem;
  text-transform: uppercase;
  text-align: center;
  font-family: 'Anton';
}

@media (max-width: 450px) {
  h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;  
  }
}

footer {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
  width: 100%;
}

footer img {
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

footer h4 {
  font-size: 1rem;
  margin-bottom: 0rem;
}

footer span {
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.progress-opacity {
  opacity: 0.65;
}

header {
  margin-top: 1.5rem;
  text-align: center;
}

header img {
  max-width: 320px;
  height: auto;
}

form {
  margin-top: 3rem;
  padding: 2rem;
  box-shadow: var(--box-shadow-form);
  background-color: #fff;
  backdrop-filter: blur(2rem);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 10rem;
}  

form > img {
  width: 5rem;
  height: auto;
  display: inline-block;
  margin: 0 auto;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
}

label {
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

label + label {
  padding-top: 0.7rem;
}

input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-input-border-default);
  border-radius: 8px;
  font-size: 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

input:focus {
  border-color: var(--color-input-border-focus);
  box-shadow: var(--box-shadow-input-focus);
  outline: none;
}

label:has(input[type="checkbox"]) {
  flex-direction: row;
  font-size: 0.9rem;
  align-items: center;
}

label:has(input[type="checkbox"]) a {
  font-size: 0.9rem;
}

input[type="checkbox"] {
  appearance: none; /* Remove native styling */
  width: 2rem;
  height: 2rem;
  border: 2px solid #999;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: inline-block;
}

input[type="checkbox"]:checked {
  background-color: var(--main-accent-color);
  border-color: var(--color-input-border-default);
}

input[type="checkbox"]:after {
  content: "";
  position: absolute;
  display: none;
  left: 0.5rem;
  top: 0.15rem;
  width: 0.6rem;
  height: 1.0rem;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:checked:after {
  display: block;
}

form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: var(--box-shadow-button);
}

form button:hover {
  background-color: var(--color-button-bg-hover);
  box-shadow: var(--box-shadow-button-hover);
}

.absence-error {
  box-shadow: var(--box-shadow-input-error);
  border: 1px solid var(--color-input-border-error);
}

.validation-error-message {
  color: var(--accent-error);
  border-color: 1px solid var(--acent-color);
}

span[is="error-message"]:not(:empty) {
  display: inline-block;
  margin-bottom: 1rem;
  color: #d32f2f;
  text-align: center;
  width: 100%;
  display: block;
}

span[is="response-message"]:not(:empty) {
  display: inline-block;
  color: #111111;
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
  display: block;
}

span[is="error-message"]:empty,
span[is="response-message"]:empty {
  display: none;
}

.loading-button {
  opacity: 0.75;
}

a {
  font-size: 1.0rem;
  color: var(--color-link);
}

form > a {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

section:has(form) > h3,
section:has(form) > h4 {
  text-align: center;
}

.pdf-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.pdf-modal-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  height: 90%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.pdf-modal-content iframe {
  flex: 1;
}

.proceed-btn {
  background: var(--color-button-bg);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  padding: 16px;
  width: 100%;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}

.proceed-btn:hover {
  background: var(--color-button-bg-hover);
}
