:root {
  --primary-color: #A7D3F2;
  --secondary-color:#9cc1db;
  --background-color: #FFFFFF;
  --text-color: #2E2E2E;
  --link-color:#5da2d4;
  --link-hover: #3085EE;
  --subtitle-color:#47474A;
  --button-color: #2E2E2E;
  --button-text: #FFFFFF;
  --tertiary-color:#7ECB7A;
}

/* General */
body {
  background: var(--background-color);
  color: var(--text-color);
  font-family: 'Avenir', sans-serif;
  line-height: 1.6;
  font-size:0.9375rem;
}

/* Headings */
h1, h2, h3 {
  color: var(--text-color);
}

h1 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  text-align:center;
}

h2 {
  font-size: 1rem;
  border-left: 5px solid var(--primary-color);
  padding-left: 1rem;
  margin-top: 2rem;
  margin-bottom:1em;
  font-weight:400;
}

p {
    padding:0rem 1.5rem;
}

h3 {
  font-size:0.9375rem;
  font-weight:400;
  padding:0rem 1.5rem;
  color: var(--subtitle-color);
  text-decoration:underline;
}

/* Container for main content */
#body-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  #body-wrapper {
    padding: 1.5rem 1rem;
  }
}

/* Links */
a, a:visited{
  color: var(--link-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}


/* Navigation */
nav {
  background: var(--primary-color);
  padding: 1rem 0.5rem 1rem 0rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  font-size:0.9375rem;
}

nav a{
    color:var(--subtitle-color) !important;
    font-weight:500;
    text-decoration: none;
    
}

#header{
    padding-left:0;
    padding-right:0;
}

#header .navbar-section {
    height:auto;
}
#header .logo img, .mobile-logo img{
    height:5rem;
}

.navbar-brand{
    font-weight:normal;
    font-size:2rem;
    display: inline-flex;  /* Make the anchor a flex container */
     align-items: center;   /* Vertically center the items */
       gap: 0.5rem;            /* Space between image and text */
}


.navbar-brand .site-title {
  font-weight: 500;      /* Optional styling */
  color: inherit;        /* Keep link color */
  white-space: nowrap;   /* Prevent text wrap */
  padding:0.5rem 0;
  border-bottom:1px solid var(--link-color);
  border-top:1px solid var(--tertiary-color);
  flex-direction: column;
  display: flex;
    
}

.main-title{
     font-size: 1.2rem;
     color:var(--text-color);
}

@media (max-width: 600px) {
    .main-title{
        font-size: 1rem;
    }

}

@media (max-width: 420px) {
    .main-title{
        font-size: 0.8rem;
    }

}

@media (max-width: 350px) {
    .main-title{
        font-size: 0.6rem;
    }

}

.sub-title{
    font-size: 0.8rem;
    color:var(--subtitle-color);
}
.container{
        padding-left:0;
    padding-right:0;
}


nav a:hover {
  text-decoration: underline;
}

/* Footer */
#footer {
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
  font-size: 0.7rem;
}

.side-by-side {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.side-by-side .text-block {
  flex: 1 1 60%;
  min-width: 280px;
}

.side-by-side .text-block-smaller {
  flex: 1 1 50%;
  min-width: 280px;
}

.side-by-side .image-block {
  flex: 1 1 35%;
  min-width: 200px;
}

.side-by-side .image-block-bigger {
  flex: 1 1 45%;
  min-width: 200px;
}

.side-by-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-image {
  width: 60%;
  height: auto;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer a {
  color: var(--background-color);
  text-decoration: underline;
}

form {
    background: #f9f9f9;

  padding: 2rem;
  border-radius: 8px;
}

/* Form Container */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Sections */
.form-section {
    padding: 1.5rem;
    padding-bottom: 0;
    /*background: #f9f9f9;*/
          border-radius: 8px;
}

form h3 {
    font-size:0.9rem;
    margin-top:0.1rem !important;
    text-decoration:none;
    padding-bottom:0.5rem;
    border-bottom:1px solid var(--primary-color);
}

.form-input:not(:placeholder-shown):invalid{
    border-color:#ddd;
}



/* Columns */
.form-column {
    display: flex;
    flex-wrap: wrap;
    /*margin-bottom: 1rem;*/
    gap: 1.5rem;
}

/* Fields */
.form-field {
    margin-bottom: 1.5rem;
}

.col-4 {
    flex: 0 0 calc(33.333% - 1rem);
}

.col-12 {
    flex: 0 0 100%;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: var(--text-color);
    
}

/* Input styling */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
}

/* Date input specific styling */
.form-field.date-input input[type="date"] {
    padding: 0.7rem 0.8rem;
    height: 42px;
    appearance: none;
    -webkit-appearance: none;
}

/* Select input specific styling */
.form-field.select-input select {
    padding: 0.8rem;
    height: 42px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #3498db;
    outline: none;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}


/* Error styling for after validation */
.form-section.form-submitted .form-field.has-error input,
.form-section.form-submitted .form-field.has-error select,
.form-section.form-submitted .form-field.has-error textarea {
    border-color: #e74c3c;
}



form label span.required {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-4 {
        flex: 0 0 100%;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* Only highlight invalid fields after submit */
.field-error {
  border-color: #e74c3c !important;
  background-color: #fff8f8;
}

.cta-button{
    margin-left:auto;
    margin-right:auto;
    display:block !important;
}

.cta-home{
    width:90%;
}



.submit-button, submit-button:hover, .cta-button, .cta-button:visited {
  display: inline-block;
  padding: 0.75em 1.5em;
  height:auto;
  background-color: var(--primary-color); /* Primary calm blue-green */
  color: white;
  font-size: 1.1em;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border:none;
}

.submit-button:hover,
.submit-button:focus,
.cta-button:hover,
.cta-button:focus {
  background-color: var(--link-color); /* Slightly darker on hover */
  transform: translateY(-2px);
  text-decoration: none;
}

.overlay-menu{
    height: 100%;
}

.overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overlay-menu li {
  display: block;
}

.overlay.open{
    opacity:1;
}

.overlay-menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  padding: 0.5rem 0;
}

.mobile-logo{
    background-color:var(--primary-color);
    padding:1rem;
}

.mobile-logo img{
    margin-top:0;
    margin-left:0;
}


.mobile-logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
}

.mobile-menu .button_container{
    top:3rem;
}


