/* Table Layout */
.form-table {
  width: 60%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 24px; /* controls both row and column gaps */
}

.form-table td {
  vertical-align: top;
}

/* Wrapper */
.form-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  background-color: #9CD2EE; /* 🔹 set your desired background here */
}

/* Title */
.form-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Floating Group */
.floating-group {
  position: relative;
  width: 100%;
}

.floating-group input,
.floating-group select,
.floating-group textarea {
  width: 100%;
  height: 44px;
  padding: 10px;
  font-size: 15px;
  line-height: 1.5;
  border: 2px solid #00698A;
  border-radius: 6px;
  background-color: transparent;
  color: white;
  box-sizing: border-box;
  appearance: none;
}

.floating-group select {
  background-color: #9CD2EE;
  color: white;
}

.floating-group select {
  background-color: #9CD2EE;
  color: white;
  padding-right: 30px; /* space for arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}


.floating-group select option:first-child {
  color: lightgray;
}

/* Labels */
.floating-group label {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 15px;
  color: white;
  background-color: transparent;
  padding: 0 6px;
  pointer-events: none;
  transition: 0.2s ease all;
  z-index: 2;
}

.floating-group input:focus + label,
.floating-group input:not(:placeholder-shown) + label,
.floating-group textarea:focus + label,
.floating-group textarea:not(:placeholder-shown) + label,
.floating-group select:focus + label,
.floating-group select:valid + label {
  top: -18px;
  left: 10px;
  font-size: 12px;
  color: #ffffff;
  background-color: transparent;
  z-index: 3;
}

/* Focus Effects */
.floating-group input:focus,
.floating-group textarea:focus,
.floating-group select:focus {
  outline: none;
  border-color: #0080C0;
  box-shadow: 0 0 5px rgba(0, 95, 164, 0.4);
}

/* Button */
.form-submit {
  text-align: center;
  padding-top: 0px;
}

.form-submit button {
  background-color: #005fa4;
  color: white;
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-block; /* ensures proper centering */
  margin: 0 auto;
}

.form-submit button:hover {
  background-color: #004080;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background-color: #cccccc;
  margin: 0;
}

textarea#message {
  height: 110px;   /* fixed height you control */
  min-height: 80px; /* optional minimum */
  max-height: 200px; /* optional maximum */
  resize: none;
}

/* Honeypot field: hidden from users but still submitted */
.honeypot {
  display: none !important;   /* completely hide from layout */
  visibility: hidden;         /* ensure screen readers skip it */
  position: absolute;         /* remove from normal flow */
  left: -9999px;              /* push off-screen for extra safety */
}

#agean_toast_msg {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,95,164,0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 14px;
  animation: fadeInUp 0.5s ease forwards;
  z-index: 9999;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* Responsive */
@media (max-width: 768px) {
  .form-table {
    width: 100%;
    border-spacing: 16px;
  }

  .form-table td {
    display: block;
    width: 100%;
  }

  .form-submit td {
    text-align: center;
  }
}
