/**
 * Athens Register – front-end styles (scoped)
 * - Two-column layout on wide screens
 * - Single-column on smaller screens
 */

 .ath-apply {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 24px;
  color: #fff;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

h2.ath-title {
  color: #fff;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 24px;
  font-size: 42px;
}
@media (max-width: 768px) {
  .ath-title { font-size: 36px; margin-bottom: 20px; }
}

.ath-form { width: 100%; }

/* Responsive grid */
.ath-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px; /* wider space between paired fields */
  margin-bottom: 10px;
}
.ath-col      { grid-column: span 6; }
.ath-col-full { grid-column: 1 / -1; }

/* Collapse to single column on narrower screens */
@media (max-width: 900px) {
  .ath-col { grid-column: 1 / -1; }
  .ath-row { gap: 12px; }
}

/* Inputs/selects */
.ath-form input[type="text"],
.ath-form input[type="email"],
.ath-form input[type="tel"],
.ath-form input[type="password"],
.ath-form select {
  background: #ffffff;
  border-radius: 2px;
  border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 7px rgba(0,0,0,.06);
  color: #333;
  display: block;
  font-size: 16px;
  height: auto;
  line-height: 2;
  margin-left: auto;
  padding: 4px 8px;
  position: relative;
  text-indent: 0.01px;
  width: 100%;
  z-index: 5;
}

/* Select caret */
.ath-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 20px) calc(1em + 4px),
    calc(100% - 15px) calc(1em + 4px),
    100% 0;
  background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
  background-repeat: no-repeat;
}

/* Divider on left control of each pair (desktop/tablet) */
.ath-row > .ath-col:first-child input[type="text"],
.ath-row > .ath-col:first-child input[type="email"],
.ath-row > .ath-col:first-child input[type="tel"],
.ath-row > .ath-col:first-child input[type="password"],
.ath-row > .ath-col:first-child select {
  border-right: 1px solid rgba(0,0,0,0.12);
  padding-right: 20px;
}

/* Remove divider on mobile */
@media (max-width: 900px) {
  .ath-row > .ath-col:first-child input[type="text"],
  .ath-row > .ath-col:first-child input[type="email"],
  .ath-row > .ath-col:first-child input[type="tel"],
  .ath-row > .ath-col:first-child input[type="password"],
  .ath-row > .ath-col:first-child select {
    border-right: none;
    padding-right: 14px;
  }
}

/* Consent block */
.ath-consent-block { color: #fff; margin: 8px 0 8px; }
.ath-consent-intro { margin: 0 0 8px; opacity: 0.95; }
.ath-consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  column-gap: 12px;
  line-height: 1.55;
  font-style: normal;
}
.ath-consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.ath-consent-text {
  display: block;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}
.ath-consent-text a {
  color: #fff;
  display: inline;
  font-weight: bold;
  text-decoration: underline;
}
.ath-consent-text a:hover {
  font-size: 115%;
  color: #fff;
}
.ath-consent-text a:visited {
  color: rgba(25,143,217,1);
  font-weight: bold;
}

/* Submit */
.ath-actions { margin-top: 8px; }
.ath-submit {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  border: none;
  border-radius: 2px;
  background: #cf2e2e;
  color: #fff;
  cursor: pointer;
}
.ath-submit:hover:not([disabled]) { filter: brightness(0.95); }
.ath-submit[disabled] { cursor: not-allowed; }

/* Messages */
.ath-messages {
  margin-top: 8px;
  margin-bottom: 8px;;
  font-size: 14px;
  color:#fff;
}
.ath-messages.error { color: #ffdede; }
.ath-messages.ok    { color: #e2ffe2; }

/* Validation states */
.ath-invalid {
  border: 1px solid #ff4d4d !important;
  box-shadow: 0 0 6px rgba(255,77,77,.7) !important;
}
.ath-invalid:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}
.ath-field-error-tooltip {
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  cursor: help;
  z-index: 1000;
}
.ath-tooltip-icon {
  font-size: 16px;
  display: block;
}
.ath-tooltip-content {
  background-color: #333;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #fff;
  max-width: 350px;
  opacity: 0;
  padding: 8px 12px;
  position: absolute;
  right: 125%;
  text-align: left;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s, visibility 0.3s;
  visibility: hidden;
  white-space: break-spaces;
  width: max-content;
  z-index: 1001;
}
.ath-tooltip-arrow {
  border-bottom: 5px solid transparent;
  border-left: 5px solid #333;
  border-top: 5px solid transparent;
  height: 0;
  left: 100%;
  position: absolute;
  top: 50%; /* At the bottom of the tooltip */
  transform: translateY(-50%);
  width: 0;
}

/* iOS zoom tweak */
@media (max-width: 480px) {
  .ath-form input,
  .ath-form select { font-size: 16px; }
}

/* Add loading state */
.ath-apply.loading {
    opacity: 0.7;
    pointer-events: none;
}
