:root {
  --verdi-color: #e30045;
  --verdi-color-brighter: #fb0550;
}

* {
  margin: 0;
}

p {
  margin-bottom: 20px;
}

body {
  font-family: "DejaVu Sans", helvetica, arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: relative;
  background-color: var(--verdi-color);
  /* Changed background color */
  color: #fff;
  /* Changed text color */
  padding: 30px 20px;
  /* Adjusted padding */
  text-align: center;
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.1);
  /* Added inner shadow at the bottom */
  display: flex;
  /* Add flexbox layout */
  flex-direction: column;
  /* Stack elements vertically */
  justify-content: center;
  /* Center content vertically */
}

header h1 {
  margin: 0;
  /* Remove default margin */
  font-size: 35px;
  /* Adjusted font size */
  font-weight: bold;
}

header .subtitle {
  font-size: 20px;
  /* Adjusted font size for subtitle */
  font-weight: lighter;
  /* Removed bold */
}

header a {
  color: #fff;
  text-decoration: none;
}

header,
header .subtitle,
header .header-content {
  transition: 0.5s;
}

header:has(.subtitle_hidden) {
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

header .subtitle_hidden {
  margin-bottom: -25px;
}

.section-primary {
  background-color: #f2f2f2;
  padding: 80px 20px;
  /* Adjusted padding */
  text-align: left;
  /* Align text left */
  padding-bottom: 80px;
  transition: padding 0.5s;
}

.section-primary:nth-child(2) {
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.section-primary:nth-child(4) {
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
}

.section-primary h2 {
  margin-bottom: 20px;
  /* Adjusted margin */
  font-size: 50px;
  /* Increased font size */
  color: #333;
  /* Changed text color */
}

.section-primary h3, h4, h5 {
  margin-bottom: 20px;
  color: #333;
}

.section-primary p {
  font-size: 18px;
  /* Increased font size */
  color: #666;
  /* Changed text color */
  line-height: 1.6;
  /* Increased line height for better readability */
}

.section-secondary {
  background-color: black;
  height: 200px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0; /* Remove any padding */
  background-image: url('../img/bg.jpg'); /* Add your background image path here */
  background-position: center center; /* Center the image */
  background-repeat: no-repeat; /* Prevent image repetition */
  background-size: cover; /* Make the image cover the entire section */
  background-attachment: fixed; /* Ensure the background stays fixed during scrolling */
}

.membership-info {
  font-size: 40px;
  text-align: center;
  color: #fff;
}

.membership-info p{
  margin-bottom: 0;
}

.membership-link {
  color: var(--verdi-color);
  font-weight: bold;
  text-decoration: none;
}

.membership-link:hover {
  color: var(--verdi-color-brighter); /* Change text color to the accent color on hover */
}


section:last-of-type {
  padding-bottom: 110px;
  margin-bottom: -60px;
}

section:last-of-type {
  padding-bottom: 110px;
  margin-bottom: -60px;
}

.container {
  max-width: 1500px;
  margin: 0 auto;

  /* Center content by default */
  padding-left: 40px;
  padding-right: 40px;
}

.section-secondary .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  
}

.section-primary hr {
  margin: 20px auto;
  border: none;
  height: 1px;
  width: 50%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    var(--verdi-color),
    rgba(255, 255, 255, 0)
  );
}

.section-primary hr {
  width: 100%;
}

footer {
  background-color: #444;
  color: #fff;
  text-align: center;
  padding: 20px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.3);
}

footer a {
  font-size: 18px;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
}

.faq-container {
  margin-top: 30px;
  margin-bottom: 40px;
}

.faq-container:last-of-type {
  margin-bottom: -10px;
}

.faq-item {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--verdi-color);
  color: #fff;
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
}

.faq-container:last-of-type {
  margin-bottom: 40px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f2f2f2;
  padding: 0 15px;
  font-size: 16px;
}

.faq-answer p:last-of-type {
  margin-bottom: 0px;
}

.faq-item.active .faq-answer {
  padding: 15px;
}

.city-selector {
  display: flex;
  padding-top: 30px;
  gap: 20px;
  flex-wrap: wrap; /* Allows items to stack on smaller screens */
}

.city-list {
  flex: 1;
  min-width: 200px; 
  max-width: 250px;
  background-color: var(--verdi-color);
  color: #fff;
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
}

.city-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.city-list li {
  margin: 10px 0;
  padding: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: center;
}

.city-list li:hover,
.city-list li.active {
  background-color: #fff;
  color: var(--verdi-color);
  border-color: var(--verdi-color);
}

/* Dropdown Styling for Small Screens */
.city-dropdown {
  display: none; /* Hidden by default */
  width: 100%;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid var(--verdi-color); /* Match the border color */
  background-color: var(--verdi-color); /* Match the background color */
  color: #fff; /* White text to contrast the background */
  font-size: 16px; /* Increase the font size */
  appearance: none; /* Remove the default dropdown styling */
  -webkit-appearance: none; /* Remove default styling on Webkit browsers */
  -moz-appearance: none; /* Remove default styling on Firefox */
  position: relative; /* Allow for the pseudo-element positioning */
}

.city-dropdown:focus {
  outline: none; /* Remove default focus outline */
  border-color: #fff; /* Change border color when focused */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow when focused */
}


/* Right Content */
.city-details {
  flex: 3;
  padding: 20px;
  border-radius: 5px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.city-info {
  display: none;
}

.city-info.active {
  display: block;
}

/* Form Styling */

.form-container {
  display: flex; /* Flexbox on body */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

form {
  background-color: #fff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 20px;
  width: 100%;
  max-width: 1000px;
}

fieldset {
  border: 1px solid var(--verdi-color);
  border-radius: 8px;
  margin-bottom: 30px;
  padding: 20px;
}

.hidden {
  display: none!important;
}

legend {
  font-size: 18px;
  font-weight: bold;
  color: var(--verdi-color);
  padding: 0 10px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
  color: black;
}

form .dropzone {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;    /* Center vertically */
  text-align: center;
  padding: 10px;
  height: 200px;
  border: 2px dashed #ccc;
  color: #7a7a7a;
  cursor: pointer;
}

form .dropzone.dragover {
  background-color: rgba(245, 245, 245, 1);
}

.select-container {
  position: relative;
}

.select-container select {
  appearance: none;
  cursor: pointer;
}

.select-container::before,
.select-container::after {
  --size: 0.3rem;
  position: absolute;
  content: "";
  right: 1rem;
  pointer-events: none;
}

.select-container::before {
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
  border-bottom: var(--size) solid black;
  top: 25%;
}

.select-container::after {
  border-left: var(--size) solid transparent;
  border-right: var(--size) solid transparent;
  border-top: var(--size) solid black;
  top: 40%;
}


input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: var(--verdi-color);
  box-shadow: 0 0 5px rgba(227, 0, 69, 0.3);
}

.invalid {
  animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(0.2rem);
  }
  75% {
    transform: translateX(-0.2rem);
  }
  100% {
    transform: translateX(0);
  }
}

.input-euro {
     position: relative;
 }
 .input-euro input {
    padding-right: 25px;
    text-align: start; 
 }
.input-euro:before {
    position: absolute;
    right: 10px;
    top: 0;
    content:"€";
 }

button[type="submit"],
button[type="button"]{
  background-color: var(--verdi-color);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover,
button[type="button"]:hover{
  background-color: var(--verdi-color-brighter);
}

form .button-container {
  display: flex;
  justify-content: space-between;
}

form .signature {
  user-select: none;
  font-size: 16px;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: stretch; /* Ensure full-width children */
  align-items: center;
  padding: 0;
  height: 300px;
  color: #7a7a7a;
  position: relative; /* For positioning children */
  overflow: hidden; /* To prevent overflow outside the container */
  margin: -20px;
}

form .signature canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind other elements */
}

form .signature-line {
  user-select: none;
  width: calc(100% - 40px); /* Full width of the container */
  margin-top: 200px;
  border-bottom: 1px solid #888;
  z-index: 0; /* Above the canvas */
}

form .signature button {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2; /* Above the line */
  margin: 20px;
}

/* Form Row Styling */
.form-row {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line when space is tight */
  column-gap: 20px; /* Spacing between fields */
}

.form-row .birthday-picker {
  display: flex;
  column-gap: 10px;
}

.form-row.checkbox-row {
  display: flex;
  align-items: center; /* Align checkbox and label on the same line */
  gap: 10px; /* Adjust spacing between checkbox and label */
  flex-wrap: nowrap;
}

.form-row.checkbox-row label {
  margin: 0; /* Remove unnecessary margin for the label */
  display: inline; /* Ensure label stays on the same line */
}

.form-row.checkbox-row input[type="checkbox"] {
  margin: 0; /* Remove default margin for checkbox */
}

.form-row label {
  width: 100%;
  margin-bottom: 5px; /* Space between label and field */
  white-space: nowrap;
}

.form-row > div {
  flex: 1 1 48%; /* Ensure the fields take up about half the space each */
  min-width: 50px; /* Prevent the fields from becoming too narrow */
}


.form-row .flex-xs {
  flex: 1 1 10%;
}

.form-row .flex-s {
  flex: 1 1 20%;
}

.form-row .flex-m {
  flex: 1 1 40%;
}

.form-row .flex-l {
  flex: 1 1 70%;
}

.form-row > div input,
.form-row > div select {
  width: 100%; /* Ensure fields take up full width of the div */
}

/* Conditional row styling */
.form-row.conditional {
  display: none; /* Hidden by default */
}

.form-row.conditional.first {
  margin-top: 20px;
}


@media screen and (max-width: 1400px) {
  .section-primary {
    padding: 50px 20px;
  }
}

@media screen and (max-width: 900px) {
  .section-primary {
    transition: padding 0s;
  }
  .section-primary h2 {
    font-size: 40px;
  }
  .city-selector {
    flex-direction: column; /* Stack elements vertically */
  }
  
  .city-list {
    display: none; /* Hide the list */
  }
  
  .city-dropdown {
    display: block; /* Show the dropdown */
  }
  .membership-info {
    font-size: 4vw;
  }
}

@media screen and (max-width: 800px) {
  .section-primary h2 {
    font-size: 33px;
  }
  
  .section-secondary {
      background-attachment: scroll;
      background-position: center top;
    }
    
  .birthday-flex-item {
    flex: 1 1 100%!important;
  }
}

@media screen and (max-width: 700px) {
  .section-primary h2 {
    font-size: 33px;
  }
}

@media screen and (max-width: 600px) {
  * {
    margin: 0;
    transition: 0s;
  }
  
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .container.form {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .section-secondary .container {
    justify-content: center;
  }
  
  header {
    position: fixed;
    left: 0;
    right: 0;
    z-index:1;
  }
  
  header h1 {
    font-size: 28px;
  }
  
  header .subtitle {
    font-size: 17px;
    
  }
  
  section:first-of-type {
    padding-top: 150px;
  }
  
  .section-primary {
    padding-top: 30px;
  }

  .section-primary.form {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  p {
    margin-bottom: 10px;
  }
  
  .section-primary h2 {
    font-size: 28px;
  }
  
  .section-primary hr {
    margin-bottom: 10px;
  }
  
  .form-container {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .form-row .flex-xs {
    flex: 1 1 100%;
  }
  
  .form-row .flex-s {
    flex: 1 1 100%;
  }
  
  .form-row .flex-m {
    flex: 1 1 100%;
  }
  
  .form-row .flex-l {
    flex: 1 1 100%;
  }
  
  .birthday-picker {
    flex-wrap: wrap;
  }
  
}


@media screen and (max-width: 500px) {  
  header h1 {
    font-size: 25px;
  }
  
  header .subtitle {
    font-size: 16px;
  }
  
  .section-primary h2 {
    font-size: 22px;
  }
  
  .membership-info {
    font-size: 19px;
  }
  
  .section-secondary {
    height: 120px;
  }
  
  .form-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  form {
    padding: 20px;
  }
  
  .form-container legend {
    font-size: 15px;
    padding: 0 4px;
  }
  
}

