* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Avenir', sans-serif;
  min-height: 100vh;
  background: url('images/background.jpg') no-repeat center center/cover;
  background-size: cover;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-border {
  border: 2px solid red !important;
  border-radius: 4px;
}


/* Logo + Title */
.header {
  margin-top: 30px;
  text-align: center;
}
.logo-top { width: 220px; margin-bottom: 15px; }
.page-title {
  font-family: 'Optima', serif;
  letter-spacing: 5px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2px;
}

/* Section Titles - Full Width */
.section-title {
  display: block;               /* ensures full width */
  width: 100%;                  /* span entire form container */
  font-family: 'Optima', serif;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
  letter-spacing: 1px;
  text-align: left;
  box-sizing: border-box;       /* ensures full width accounting for padding */
}

/* Section Titles - Full Width */
.section-title1 {              /* ensures full width */
  width: 100%;                  /* span entire form container */
  font-family: 'Optima', serif;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 1px;
  margin-bottom: 1px;
  padding-bottom: 1px;
  letter-spacing: 1px;
  text-align: left;
}

/* Intro Section */
.intro-section {
  flex: 1;
  display: flex;
  margin-bottom: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.intro-message {
  font-size: 18px;
  line-height: 1.6;
  padding: 50px 70px;
  border-radius: 15px;
}

.start-btn {
  padding: 14px 50px;
  background-color: #ffffff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.start-btn:hover { transform: translateY(-2px); }

/* Form */
.form-container {
  display: none;
  padding: 25px 35px;
  border-radius: 25px;
  width: 100%;
  max-width: 950px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  margin: 30px auto;
  color: #000;
}

form { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 25px; 
  align-items: start;
}
.full-width { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; }
input, textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #ccc;
  border-radius: 10px; font-size: 15px; font-family: 'Avenir', sans-serif;
  outline: none; transition: all 0.3s ease; background-color: #fff;
  color: #000;
}
input:focus, textarea:focus { border-color: #007bff; box-shadow: 0 4px 12px rgba(0,123,255,0.3); }
::placeholder { color: #888; font-size: 14px; }

input[type="file"]::file-selector-button {
  background-color: #ffffff; border: 1px solid #000000; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-family: 'Avenir', sans-serif; font-size: 14px;
  transition: all 0.3s ease;
}
input[type="file"]::file-selector-button:hover { background-color: #e0e0e0; }
label { font-size: 12px; color: #ffffff; }

/* Normal selects (except feedback dropdown) */
form select:not(.feedback-dropdown) {
  width: 100% !important;
  padding: 14px 16px;       
  height: 48px;             
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: 'Avenir', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #000;
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

/* Terms and Conditions Checkbox */
.terms {
  margin: 1px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Avenir", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
}

.terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 1px;
  margin-right: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
}

input#terms {
    padding: 9px;
    
}

.terms input[type="checkbox"]:checked::after {
  content: "✔";
  font-size: 15px;
  color: #000; /* Black tick */
  line-height: 1;
}

.terms a {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 3px;
}

.terms a:hover {
  text-decoration: none;
}


/* Feedback dropdown stays small */
.feedback-dropdown { font-size: 12px; width: 160px; padding: 5px 5px; }

.conditional { display: none; }
.date-time-row { display: flex; gap: 10px; }
.buttons { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 1px; }
.submit-btn {
  padding: 12px 100px; background-color: #fffefe; color: #000000;
  font-family: 'Avenir', sans-serif; font-size: 16px; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer; transition: all 0.3s ease;
}
.submit-btn:hover { transform: translateY(-2px); background-color: #333; }

/* Reset iOS native styling */
input[type="date"],
input[type="time"] {
  -webkit-appearance: none; /* remove iOS native style */
  -moz-appearance: none;
  appearance: none;

  font-family: 'Avenir', sans-serif;
  font-size: 16px;
  padding: 12px 46px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  color: #000;
  width: 100%;
  box-sizing: border-box;
}

/* Add calendar & clock icons inside (optional) */
input[type="date"] {
  background: #fff url("calendar-icon.svg") no-repeat right 12px center;
  background-size: 18px;
}

input[type="time"] {
  background: #fff url("clock-icon.svg") no-repeat right 12px center;
  background-size: 18px;
}

/* Focus effect */
input[type="date"]:focus,
input[type="time"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
  outline: none;
}

/* Hide labels by default (desktop) */
.mobile-label {
  display: none;
}

/* Show labels only on mobile */
@media (max-width: 768px) {
  .mobile-label {
    display: block;
    font-size: 14px;
    color: #fff;
    text-align: left;
    margin-bottom: 6px;
  }
}


/* Responsive */
@media (max-width: 768px) {
  br {
    display: none !important;
}
  form { grid-template-columns: 1fr !important; } 
  .date-time-row { flex-direction: column; }
  .logo-top { width: 160px; margin-bottom: 10px; }
  .page-title { font-size: 22px; letter-spacing: 3px; }
  .intro-message { font-size: 16px; padding: 25px 15px; }
  .start-btn { width: 100%; padding: 12px; font-size: 12px; }
  .form-container { padding: 25px 20px; }
}

@media (max-width: 480px) {
  br {
    display: none !important;
}
  .logo-top { width: 130px; }
  .page-title { font-size: 18px; letter-spacing: 2px; }
  .intro-message { font-size: 14px; padding: 100px 28px; }
  .start-btn { font-size: 14px; padding: 15px; }
}

