html, body {
  height: 100%;          /* Ensures the elements can stretch to full viewport */
  margin: 0;             /* Removes default browser margins that can cause gaps */
  padding: 0;
}

body {
	min-height: 100vh;     /* 100% of viewport height – even better for modern browsers */
	background-image: linear-gradient(135deg, #bf0a30 0%, #ffffff 40%, #002868 100%);
	background-repeat: no-repeat;
	background-size: cover;   /* Makes the gradient stretch to fill the entire element */
	background-attachment: fixed;  /* keeps gradient static while scrolling (test on mobile) */
	display: flex;
	justify-content: center;  /* Horizontally centers the child (.main-wrapper) */
	align-items: flex-start;
	margin: 2rem;
	font-family: Playfair, Georgia, 'Times New Roman', Times, serif;
	font-size: calc(10px + 2vmin);
}

.main-wrapper {
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	padding: 2rem;
	width: 100%;
	max-width: 1000px;	
}

h1 {
	text-align: center;
	font-size: 2rem;
}

h2 {
	text-align: center;
	font-size: 1.5rem;
}

p {
  font-size: 1.2rem;
  margin: 25px;
}

ul {
	font-size: 1.2rem;
	list-style-type: none;
	font-weight: bold;
}

a {
  font-family: Playfair, Georgia, 'Times New Roman', Times, serif;
  text-decoration: none;
  font-weight: 500;  
}

a:link {
	color: #002868;
}

a:visited {
	color: #bf0a30;
}

.flag-svg {
	width: 2.5rem;
	height: auto;
}

.star-divider {
  text-align: center;
  font-size: 1.8rem;           /* Tweak size – try 1.6rem or 2rem if needed */
  letter-spacing: 0.5rem;      /* Adjust spacing between stars; 0.4rem–0.7rem range works well */
  margin: 1.5rem 0;            /* Vertical breathing room */
  line-height: 1.4;
}

.star-divider span {
  display: inline-block;
}

/* Red solid stars: positions 1,4,7,10,13,16,... */
.star-divider span:nth-child(3n+1) {
  color: #bf0a30;  /* Your red */
}

/* Hollow white stars with blue outline: positions 2,5,8,11,14,17,... */
.star-divider span:nth-child(3n+2) {
	color: #002868;
}

/* Blue solid stars: positions 3,6,9,12,15,18,... */
.star-divider span:nth-child(3n) {
  color: #002868;  /* Your navy blue */
}

.form-field {
  display: grid;
  grid-template-columns: 1fr 2fr;   /* label | input */
  gap: 1rem;                        /* space between label and input */
  align-items: center;
  padding-bottom: 5px;
}

label {
  font-weight: 500;
  color: #002868;
  text-align: right;
  padding-right: .5rem;
  font-size: 1.2rem;
}

/* Inputs & Select */
input, 
select, 
textarea {
  width: 90%;
  padding: 0.75rem 1rem;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #EEEEEE;
  color: black;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #bf0a30;
  box-shadow: 0 0 0 3px rgba(191, 10, 48, 0.2);
}

/* Button */
input[type="submit"] {
  font-family: inherit;
  background-color: #002868;  /* Blue background */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: block;             /* Makes it a block for centering */
  width: auto;                /* Only as wide as needed */
  margin: 1.5rem auto 0;      /* Centers horizontally, adds top margin */
  transition: all 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #bf0a30;  /* Red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

input[type="submit"]:active {
  transform: translateY(0);
}

.form-legend {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  text-align: right;  /* Or center if preferred */
  margin: 1rem 0 0.5rem;
  padding-right: 1rem;  /* Aligns with labels if right-aligned */
}

.form-legend .asterisk {
  color: #bf0a30;  /* Matches your red accents */
  font-weight: bold;
}

#successMessage {
  text-align: center;
  padding: 2rem;
  background: #e6f4ff;  /* Light blue for success */
  border: 1px solid #002868;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 1.2rem;
  color: #002868;
}

.back-link {
  display: block;
  text-align: right;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.back-link a {
  color: #002868;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link a:hover {
  color: #bf0a30;
}

.back-link a::before {
  content: "\2190\00A0";
  font-weight: bold;
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 1.5rem;
  }
  input, select, textarea {
    width: 100%;  /* Full width on tiny screens */
  }
}

@media (max-width: 600px) {
  .form-group {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
 label {
    text-align: left;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  body {
    font-size: calc(12px + 1.5vmin);  /* Smaller base */
  }
  h1 {
    font-size: 1.6rem;
  }
  p, ul {
    font-size: 1rem;
    margin: 15px;
  }
  .star-divider {
    font-size: 1.4rem;
    letter-spacing: 0.4rem;
  }
}