* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  background-image: url('../img/homepage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-cta {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Modal */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 520px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 6px;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

/* Form */

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #222;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-group-checkbox {
  display: flex;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: normal;
  font-size: 0.85rem;
  color: #444;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-label a {
  color: #005995;
}

.form-message {
  min-height: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.form-message.success {
  color: #1a7a1a;
    font-size: 1.5rem;

}

.form-message.error {
  color: #c0392b;
    font-weight: bold;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  background-color: #005995;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #00426e;
}

.btn-submit:disabled {
  background-color: #7ba7c4;
  cursor: not-allowed;
}

.form-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.modal-footer-links {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.8rem;
}

.modal-footer-links a {
  color: #999;
  text-decoration: underline;
}

/* Legal pages */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

.legal-page h1 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #005995;
}

.legal-page a {
  color: #005995;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 30px;
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    background-image: url('../img/homepage-mobile.jpg');
    background-position: center bottom;
  }
}

@media (max-width: 600px) {
  .modal {
    padding: 24px 20px;
    margin: 20px auto;
  }

  .btn-check-availability {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
