/* ErgoMEDIC.gr: στυλ της φόρμας επικοινωνίας. Φορτώνεται μόνο στη σελίδα Επικοινωνία.
   Χρώματα ταυτότητας: navy #0B2C4D, teal #00A7B5, mint #3AB795, coral #FF6B57.
   Αντίθεση (WCAG 2.2 AA): κείμενο navy σε λευκό 14:1, περίγραμμα πεδίων #7D8794 σε λευκό 3,6:1,
   μήνυμα σφάλματος #B3261E σε λευκό 6,5:1. Το σφάλμα δηλώνεται και με κείμενο, όχι μόνο με χρώμα. */

.ergo-form-wrap { padding: 12px 12px 8px; }
.ergo-form { font-family: "Roboto", sans-serif; color: #0B2C4D; }
.ergo-form * { box-sizing: border-box; }
.ergo-form-note { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #3d4a57; }

.ergo-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .ergo-row { grid-template-columns: 1fr 1fr; } }

.ergo-field { margin: 0 0 16px; }
.ergo-field label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.4; color: #0B2C4D; }
.ergo-req { color: #B3261E; }
/* «(προαιρετικά)» σε δεύτερη γραμμή μέσα στα ζευγάρια πεδίων, ώστε τα πεδία δίπλα-δίπλα να ευθυγραμμίζονται */
.ergo-opt { font-weight: 400; color: #3d4a57; }
.ergo-row .ergo-opt { display: block; font-size: 14px; }

.ergo-field input[type="text"],
.ergo-field input[type="email"],
.ergo-field input[type="tel"],
.ergo-field input[type="date"],
.ergo-field input[type="number"],
.ergo-field textarea {
  display: block; width: 100%; margin: 0; padding: 12px; font: 400 16px/1.4 "Roboto", sans-serif;
  color: #1f2933; background: #fafafa; border: 1px solid #7D8794; border-radius: 10px; box-shadow: none;
}
.ergo-field textarea { min-height: 150px; resize: vertical; }
.ergo-form input:focus-visible, .ergo-form textarea:focus-visible, .ergo-form button:focus-visible {
  outline: 3px solid #0B2C4D; outline-offset: 2px;
}
.ergo-field [aria-invalid="true"] { border: 2px solid #B3261E; padding: 11px; }

.ergo-hint { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #3d4a57; }
.ergo-error { margin: 6px 0 0; font-size: 14px; line-height: 1.5; font-weight: 500; color: #B3261E; }
.ergo-error[hidden] { display: none; }

.ergo-consent { display: grid; grid-template-columns: 24px 1fr; gap: 0 10px; align-items: start; }
.ergo-consent input[type="checkbox"] { width: 24px; height: 24px; margin: 1px 0 0; accent-color: #0B2C4D; }
.ergo-consent label { margin: 0; font-weight: 400; font-size: 15px; }
.ergo-consent .ergo-error { grid-column: 2; }
.ergo-consent a { color: #0B2C4D; text-decoration: underline; }
.ergo-consent a:hover { color: #00A7B5; }

/* Κρυφό πεδίο παγίδα για bots: εκτός οθόνης, όχι display:none (ώστε να το «βλέπουν» τα bots) */
.ergo-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ergo-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ergo-form-status { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.ergo-form-status:empty { display: none; }
.ergo-form-status.is-error a { color: #B3261E; text-decoration: underline; }
.ergo-form-status.is-error { padding: 12px; color: #B3261E; font-weight: 500; border: 2px solid #B3261E; border-radius: 10px; }
.ergo-form-status:focus { outline: none; }

/* Ίδιο στυλ με τα κουμπιά του site (ergomedic-v2.css) */
.ergo-btn {
  display: block; margin: 20px auto 0; padding: 12px 24px; font: 500 16px/1.4 "Roboto", sans-serif;
  color: #fff; background: #FF6B57; border: 0; border-radius: 10px; box-shadow: none; cursor: pointer;
  text-transform: none; letter-spacing: normal; transition: background-color .2s;
}
.ergo-btn:hover { background: #3AB795; color: #fff; }
.ergo-btn[disabled] { opacity: .7; cursor: progress; }

.ergo-success { padding: 8px 4px 12px; color: #0B2C4D; }
.ergo-success h3 { margin: 0 0 12px; font-size: 24px; font-weight: 500; color: #00A7B5; }
.ergo-success p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.ergo-success:focus { outline: none; }

@media (prefers-reduced-motion: reduce) { .ergo-btn { transition: none; } }
