@charset "utf-8";
/* CSS Document */
/* Base Form Styles */
#contactForm p {
  text-align: left;
  margin-bottom: 1rem;
  color: #333;
    padding-left:0px;
}

.ucasetext{
    text-transform: uppercase;
}

/* Enzo */
/* --- General Form with drop shadow --- */
#contactForm {
  max-width: 800px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Form Groups (horizontal layout) --- */
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

/* --- Labels on left --- */
.form-group label {
  flex: 0 0 150px; /* fixed width for label column */
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* Cancel form-group label rules for checkbox labels */
.checkbox-wrapper label {
  flex: unset;
  width: auto;
  align-self: flex-start;
}


/* --- Input / textarea on right --- */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
    font-family: menuFont;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 3px rgba(0,123,255,0.5);
    font-family: menuFont;
    font-size: 14px;
}



/* --- Error messages --- */
.error-message {
  display: none;
  color: red;
  font-size: 12px;
  margin-left: 150px; /* aligns under the input */
  margin-top: 4px;
}

/* --- Checkbox Group --- */
/* checkbox row behaves differently */
.form-group.checkbox-row {
  align-items: flex-start; /* key fix */
}

/* checkbox container = clean slate */
.checkbox-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* checkbox items */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-item input {
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-item span {
  line-height: 1.4;
}

/* --- Full-width items like submit --- */
.form-group.full-width {
  justify-content: center;
}

.form-group.full-width button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: #c51230;
  border: none;
  border-radius: 4px;
  cursor: pointer;
    width: 50%;
}

.form-group.full-width button:hover {
  background-color: #0056b3;
}

/* --- Captcha Images --- */
.form-group p img {
  vertical-align: middle;
  margin-right: 2px;
}

.form-group:has(.checkbox-group) > label {
  flex: 0 0 auto;
  align-self: flex-start;
}

.form-group > label.form-label {
  flex: 0 0 auto;
  align-self: flex-start;
}


/* Drop Area Styling */
#drop-area {
  flex: 1;
  padding: 0.25rem 3rem 3rem 0.25rem;
  border: 2px dashed #ccc;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
    background-color: rgba(254,233,237,1.00);
}

#drop-area.dragover {
  border-color: #007BFF;
  background: rgba(0,123,255,0.05);
}

#drop-area p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

#drop-area input[type="file"] {
  display: none; /* hide default input */
}

#file-list {
  list-style: none;
  padding-left: 0;
}

#file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.file-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.file-remove:hover {
  color: #d9534f; /* matches your validation red */
}



/* normal placeholder */
input::placeholder,
textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* invalid field */
.is-invalid {
  border-color: #d9534f !important;
}

/* invalid placeholder */
.is-invalid::placeholder {
  color: #d9534f;
}

/* optional: valid state */
.is-valid {
  border-color: #007BFF;
}



@media (max-width: 900px) {
  /* Stack all form groups vertically */
  #contactForm {
  max-width: 500px
  }
}


@media (max-width: 500px) {
  /* Stack all form groups vertically */
  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  /* Reset all labels to natural height */
  .form-group > label {
    flex: unset;          /* remove fixed 150px flex */
    width: auto;          /* auto width */
    margin-bottom: 0.25rem;
    align-self: flex-start;
  }

  /* Checkbox labels (already isolated) */
  .checkbox-wrapper label {
    flex: unset !important;
    width: auto !important;
    align-self: flex-start !important;
  }

  /* Error messages */
  .error-message {
    left: 0;
    bottom: -1.2rem;
  }

  /* Full-width buttons */
  .full-width button {
    width: 100%;
  }

  /* Captcha images */
  #contactForm p {
    text-align: left;
    margin-bottom: 1rem;
    color: #333;
    padding-left:0px;
  }
}
