/* ΕΛΤΕΧΝΙΚΑ: Επικοινωνία (contact page) */

/* ---------- contact detail cards ---------- */
.ct-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ct-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 300px; padding: 34px 30px 30px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; overflow: hidden; isolation: isolate; color: var(--ink);
  transition: color .5s var(--ease), border-color .5s var(--ease); /* no transform transition: it fights the GSAP entrance */
}
.ct-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .65s var(--ease);
}
.ct-card::after { /* blueprint corner tick */
  content: ''; position: absolute; right: 18px; bottom: 18px; width: 22px; height: 22px;
  border-right: 1px solid var(--blue-l); border-bottom: 1px solid var(--blue-l); opacity: .5; transition: opacity .4s;
}
a.ct-card:hover, .ct-card:has(.ct-card__hit):hover { color: #fff; border-color: var(--ink); }
a.ct-card:hover::before, .ct-card:has(.ct-card__hit):hover::before { transform: none; }
.ct-card:hover::after { opacity: 1; }
.ct-card__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ct-card__hit:focus-visible, a.ct-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ct-card__ico {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(44,88,161,.08); color: var(--blue);
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.ct-card__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-card:hover .ct-card__ico { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.06); }
.ct-card__k { margin-top: 40px; font: 700 12px/1 var(--f-b); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); transition: color .5s; }
.ct-card:hover .ct-card__k { color: var(--blue-l); }
.ct-card__v { margin-top: 14px; font: 700 clamp(18px, 1.35vw, 21px)/1.4 var(--f-b); }
.ct-card__v b { font-weight: 800; color: var(--blue); transition: color .5s; }
.ct-card:hover .ct-card__v b { color: var(--blue-l); }
.ct-card__v--big { font: 800 clamp(32px, 2.6vw, 44px)/1 var(--f-d); letter-spacing: .005em; overflow-wrap: anywhere; }
.ct-card__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--mute); transition: color .5s; }
.ct-card__note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-card:hover .ct-card__note { color: rgba(255,255,255,.75); }
.ct-card:hover .ct-card__note svg { stroke: var(--blue-l); }
.ct-card__go {
  position: absolute; top: 30px; right: 28px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .5s, background .5s;
}
.ct-card__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ct-card:hover .ct-card__go { transform: rotate(45deg); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

/* copy to clipboard (desktop only) */
.ct-copy {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 12px/1 var(--f-b); letter-spacing: .06em; color: var(--mute);
  transition: color .3s, border-color .3s, background .3s;
}
.ct-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ct-card:hover .ct-copy { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); }
.ct-copy:hover, .ct-card:hover .ct-copy:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.ct-copy.is-copied, .ct-card:hover .ct-copy.is-copied { color: #fff; background: var(--blue); border-color: var(--blue); }
@media (hover: none) { .ct-copy { display: none; } }

/* open now / closed */
.ct-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--paper-2); font: 600 12px/1 var(--f-b); letter-spacing: .06em; color: var(--mute); }
.ct-status[hidden] { display: none; }
.ct-status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #9aa3b2; }
.ct-status.is-open { color: #1f7a4d; background: rgba(47,168,106,.1); }
.ct-status.is-open i { background: #2fa86a; }
.ct-status.is-open i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2fa86a; animation: ctPulse 1.8s ease-out infinite; }
@keyframes ctPulse { to { transform: scale(3); opacity: 0; } }

/* ---------- form ---------- */
.ct-form-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.ct-form-intro .lead-txt { margin-top: 30px; max-width: 520px; }
.ct-form-img { position: relative; margin-top: 44px; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: var(--ink); }
.ct-form-img img { position: absolute; left: 0; top: 0; width: 100%; height: 114%; object-fit: cover; }
.ct-form-alt { margin-top: 26px; color: var(--mute); font-size: 16px; }
.ct-form-alt a { font-weight: 700; color: var(--ink); border-bottom: 1px solid currentColor; transition: color .3s; }
.ct-form-alt a:hover { color: var(--blue); }

.ct-form-wrap {
  position: relative; background: #fff; border-radius: 10px; padding: clamp(24px, 3.4vw, 54px);
  box-shadow: 0 30px 80px -40px rgba(11,18,32,.35), 0 0 0 1px var(--line);
}
.ct-form-wrap::before { /* blue edge that draws in */
  content: ''; position: absolute; left: 0; top: 34px; bottom: 34px; width: 3px; border-radius: 3px; background: var(--blue);
  transform: scaleY(var(--edge, 0)); transform-origin: top; transition: transform 1.2s var(--ease);
}
.ct-form-wrap.is-in { --edge: 1; }
.ct-form { display: grid; gap: 18px; }
.ct-form[hidden] { display: none; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { position: relative; }
.fld input, .fld select, .fld textarea {
  display: block; width: 100%; height: 66px; padding: 26px 18px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 500 16px/1.4 var(--f-b); outline: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.fld textarea { height: auto; min-height: 170px; padding-top: 32px; resize: vertical; }
.fld select { padding-right: 46px; cursor: pointer; text-overflow: ellipsis; }
.fld label {
  position: absolute; left: 19px; top: 23px; max-width: calc(100% - 38px); pointer-events: none;
  font: 400 16px/1.2 var(--f-b); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top; transition: transform .35s var(--ease), color .3s, letter-spacing .35s;
}
.fld label i, .chk i, .ct-form__req i { font-style: normal; color: var(--blue); }
.fld label small { font-size: .85em; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: #c9d0db; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(44,88,161,.12); }
/* float */
.fld input:focus + label, .fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label,
.fld select:focus + label, .fld select:valid + label {
  transform: translateY(-13px) scale(.74); color: var(--blue); letter-spacing: .04em; font-weight: 600;
}
.fld__chev { position: absolute; right: 20px; top: 30px; width: 12px; height: 8px; fill: none; stroke: var(--ink); stroke-width: 1.6; pointer-events: none; transition: transform .3s; }
.fld select:focus ~ .fld__chev { transform: rotate(180deg); stroke: var(--blue); }
/* error / ok */
.fld__err { max-height: 0; overflow: hidden; margin: 0; font-size: 13px; font-weight: 500; color: #c0352b; transition: max-height .35s var(--ease), margin .35s var(--ease); }
.is-err .fld__err { max-height: 60px; margin-top: 7px; }
.fld.is-err input, .fld.is-err select, .fld.is-err textarea { border-color: #c0352b; background: #fff8f7; }
.fld.is-err input:focus, .fld.is-err select:focus, .fld.is-err textarea:focus { box-shadow: 0 0 0 4px rgba(192,53,43,.12); }
.fld.is-err label { color: #c0352b; }
.fld.is-ok::after {
  content: ''; position: absolute; right: 18px; top: 26px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.fld--select.is-ok::after { right: 44px; }
.fld--area.is-ok::after { top: 22px; }

/* consent */
.chk { position: relative; margin-top: 4px; }
.chk input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.chk label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--mute); }
.chk__box {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 0; border: 1.5px solid #b9c1ce; border-radius: 5px; background: #fff;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.chk__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .05s; }
.chk input:checked + label .chk__box { background: var(--blue); border-color: var(--blue); }
.chk input:checked + label .chk__box svg { stroke-dashoffset: 0; }
.chk input:focus-visible + label .chk__box { box-shadow: 0 0 0 4px rgba(44,88,161,.2); }
.chk label a { position: relative; z-index: 1; color: var(--blue); font-weight: 600; border-bottom: 1px solid currentColor; }
.chk.is-err .chk__box { border-color: #c0352b; }
.chk .fld__err { padding-left: 36px; }

/* submit */
.ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin-top: 10px; }
.ct-form__req { font-size: 13px; color: var(--mute); }
.ct-form__fail { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; background: #fff8f7; border: 1px solid rgba(192,53,43,.3); color: #c0352b; font-size: 14px; font-weight: 500; }
.ct-form__rc { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--mute); }
.ct-form__rc a { color: inherit; border-bottom: 1px solid currentColor; }
/* the reCAPTCHA badge is replaced by the notice under the form (allowed by Google) */
.grecaptcha-badge { visibility: hidden; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 66px; min-width: 66px; padding: 0 34px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--blue); color: #fff; font: 700 15px/1 var(--f-b); letter-spacing: .04em; white-space: nowrap;
}
.ct-submit::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.ct-submit:hover::before { transform: none; }
.ct-submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.ct-submit__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .45s var(--ease); }
.ct-submit:hover .ct-submit__arrow { transform: translateX(5px); }
.ct-submit__spin, .ct-submit__ok { position: absolute; left: 50%; top: 50%; opacity: 0; pointer-events: none; }
.ct-submit__spin { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; animation: ctSpin .8s linear infinite; }
.ct-submit__ok { width: 28px; height: 28px; margin: -14px 0 0 -14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ct-submit.is-busy { pointer-events: none; align-self: center; }
.ct-submit.is-busy::before { transform: none; background: var(--blue-d); }
@keyframes ctSpin { to { transform: rotate(360deg); } }

/* success */
.ct-done { text-align: center; padding: clamp(30px, 5vw, 70px) 0; outline: 0; }
.ct-done[hidden] { display: none; }
.ct-done__mark { width: 96px; height: 96px; margin: 0 auto 30px; fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-done__mark circle { stroke: rgba(44,88,161,.25); }
.ct-done__t { font: 800 clamp(40px, 4.2vw, 66px)/.95 var(--f-d); text-transform: uppercase; }
.ct-done p { max-width: 460px; margin: 20px auto 0; color: var(--mute); font-size: 17px; }
.ct-done__again { cursor: pointer; }

/* ---------- map ---------- */
.ct-map { position: relative; }
.ct-map__frame { position: relative; aspect-ratio: 21/9; border-radius: 10px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.ct-map__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit;
  filter: grayscale(.55) contrast(1.04) brightness(1.02); transition: filter .8s var(--ease);
}
.ct-map__frame:hover iframe { filter: grayscale(.2) contrast(1.02); }
.ct-map__corner { position: absolute; z-index: 3; width: 46px; height: 46px; pointer-events: none; }
.ct-map__corner--tl { left: -10px; top: -10px; border-left: 2px solid var(--blue); border-top: 2px solid var(--blue); }
.ct-map__corner--br { right: -10px; bottom: -10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.ct-map__card {
  position: absolute; z-index: 4; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 44px); width: min(360px, 100%);
  padding: 30px 30px 30px; border-radius: 10px; background: #fff; box-shadow: 0 30px 70px -30px rgba(11,18,32,.45);
}
.ct-map__pin { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 18px; }
.ct-map__pin svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ct-map__name { font: 800 28px/1 var(--f-d); text-transform: uppercase; }
.ct-map__addr { margin: 10px 0 22px; color: var(--mute); }

/* ---------- toast ---------- */
.ct-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 9000; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px/1.2 var(--f-b);
  box-shadow: 0 20px 50px -20px rgba(11,18,32,.6);
  transform: translate(-50%, 160%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; pointer-events: none;
}
.ct-toast svg { width: 18px; height: 18px; fill: none; stroke: var(--blue-l); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ct-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .ct-cards { grid-template-columns: repeat(2, 1fr); }
  .ct-card { min-height: 260px; }
}
@media (max-width: 1000px) {
  .ct-form-grid { grid-template-columns: 1fr; }
  .ct-form-img { display: none; }
  .ct-map__frame { aspect-ratio: 16/10; }
}
@media (max-width: 760px) {
  .ct-cards { grid-template-columns: 1fr; gap: 12px; }
  .ct-card { min-height: 0; padding: 24px 22px; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: start; }
  .ct-card__ico { width: 52px; height: 52px; margin: 0; grid-row: span 4; }
  .ct-card__k { margin-top: 4px; }
  .ct-card__v, .ct-card__note, .ct-status, .ct-copy { grid-column: 2; justify-self: start; }
  .ct-card__v { margin-top: 8px; }
  .ct-card__v--big { font-size: 32px; }
  .ct-card__go { top: 22px; right: 18px; width: 34px; height: 34px; }
  .ct-card::after { display: none; }
  .ct-card--addr .ct-card__v, .ct-card--tel .ct-card__v, .ct-card--mail .ct-card__v { padding-right: 34px; }
  .fld-row { grid-template-columns: 1fr; }
  .ct-form-wrap { padding: 22px 16px 26px; }
  .ct-form-wrap::before { display: none; }
  .ct-submit { width: 100%; }
  .ct-form__foot { flex-direction: column; align-items: stretch; }
  .ct-map__frame { aspect-ratio: 4/5; }
  .ct-map__card { position: relative; left: auto; bottom: auto; width: auto; margin: -50px 14px 0; padding: 24px 22px; }
  .ct-map__corner--tl { left: -6px; top: -6px; }
  .ct-map__corner--br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-status.is-open i::after { display: none; }
}
