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

/*
 * Global resets and helper classes
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.3;
  color: #ffffff;
}

body {
  overflow-x: hidden;
}

/* Utility button classes (reused from reference) */
.btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px; /* EDIT HERE: adjust button corner radius */
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem; /* EDIT HERE: button font size */
}

.btn-blue {
  background-color: #00a0d1;
  color: #ffffff;
}
.btn-blue:hover {
  background-color: #008ab8;
}

/* Hidden class to toggle visibility */
.hidden {
  display: none !important;
}

/* Page container and background */
.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-image: url('../Insure_assets/Discovery_insure_background.jpg');
  background-size: cover; /* EDIT HERE: adjust background sizing */
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 2rem;
}

/* Logo placement */
.logo {
  position: absolute;
  top: 3.3%; /* EDIT HERE: vertical position of logo (moved up, one third of previous) */
  right: 10%; /* EDIT HERE: horizontal position of logo */
  width: 30%; /* EDIT HERE: logo width */
  max-width: 150px;
  height: auto;
}

/* Content wrapper for landing */
.content {
  width: 100%;
  margin-top: 12vh; /* Provides space below the logo; further reduced to bring fields higher */
  padding: 0 7%; /* EDIT HERE: side margins for content */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Introductory text */
.intro-text {
  text-align: center;
  margin-bottom: 5vh; /* EDIT HERE: space below intro text – set relative to logo spacing */
  font-size: 0.9rem; /* EDIT HERE: intro text size – slightly smaller */
  max-width: 90%;
}
.intro-text p {
  /* background-color removed to allow transparent background */
  padding: 0; /* no padding since there is no coloured box */
  border-radius: 0;
}

/* Form styling */
form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 2vh; /* EDIT HERE: vertical spacing between fields – tighter spacing to fit on one page */
}

.form-group label {
  display: block;
  font-size: 0.85rem; /* EDIT HERE: label font size */
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ffffff;
  border-radius: 8px; /* EDIT HERE: input radius */
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
}

/* Align placeholder text */
.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Select arrow styling */
.form-group select {
  /* Let the browser render the default dropdown arrow */
  appearance: auto;
  text-align: left;
  padding-right: 1rem; /* space on the right so the arrow doesn't overlay text */
}

.form-group select option {
  color: #000000;
}

/* Terms row */
.terms-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3vh; /* EDIT HERE: spacing above submit button – tighter */
}
.terms-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #00a0d1;
}
.terms-row label {
  font-size: 0.8rem;
  line-height: 1.4;
}

.terms-link {
  text-decoration: underline;
  cursor: pointer;
  color: #ffffff;
}

/* Error message */
.error-message {
  color: #ffcccc;
  font-size: 0.8rem;
  margin-top: -5vh;
  margin-bottom: 5vh;
  text-align: center;
}

/* Modal overlay and dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-overlay.show {
  display: flex;
}
.modal {
  position: relative;
  background-color: #ffffff;
  color: #000000;
  border-radius: 12px;
  padding: 2rem;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
}
.modal-content {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Finish page styles */
.finish-page {
  /* inherits page background */
}
.finish-content {
  margin-top: 20vh; /* EDIT HERE: vertical offset for finish page content – bring content higher */
  width: 100%;
  padding: 0 7%;
  text-align: center;
}
.finish-content h1 {
  font-size: 1rem; /* EDIT HERE: reduced size so it fits on one line */
  font-weight: 700;
  margin-bottom: 5vh; /* EDIT HERE: reduced spacing under heading */
}
.finish-content .message {
  font-size: 1rem;
  margin-bottom: 3.5vh; /* EDIT HERE: reduced spacing under message */
}
.finish-content .sub-message {
  font-size: 0.9rem;
  margin-bottom: 6vh; /* EDIT HERE: reduced spacing under sub-message */
}
.finish-content .btn {
  width: 60%; /* 30% margin left/right results in 60% width */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15vh; /* EDIT HERE: revert to original bottom margin for finish button */
}