/* kairotic.tech: contact.css (v1.15). Used only by the Contact page (contact.html).
   Holds: the green contact card, the enquiry form and its messages.
   Colours, sizes and fonts are the variables at the top of site.css; shared pieces (buttons, cards, header, footer, dark theme basics)
   are in site.css. The dark theme versions of these rules sit in this file too, written as :root[data-theme="dark"] ...
   Loaded AFTER site.css, so a rule here wins over an equal rule there. */

/* contact */
.contact-wrap { padding: 84px 0 56px; }

.contact { background: var(--green); color: var(--on-green); border-radius: 36px; padding: 72px 56px; position: relative; overflow: hidden; }

.contact::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 360px; height: 360px; border-radius: 50%; border: 44px solid rgba(243,238,228,.07); }

.contact .sec-no { color: var(--on-green-soft); }

.contact h2 { max-width: 15em; position: relative; z-index: 1; }

.contact p { color: #d4e2d9; font-size: 19px; max-width: 33em; margin: 20px 0 32px; position: relative; z-index: 1; }

@media (max-width: 1060px) {
  .contact { padding: 60px 44px; }
}

@media (max-width: 700px) {
  .contact-wrap { padding: 56px 0 40px; }
  .contact { border-radius: 28px; padding: 44px 26px; }
}

/* ---------- enquiry form (inside the green contact card) ---------- */
.enq { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 30px 0 0; }

.enq .full { grid-column: 1 / -1; }

.enq label { display: block; font: 600 14px/1.3 var(--sans); color: var(--on-green); margin: 0 0 7px; }

.enq label small { font-weight: 400; color: var(--on-green-soft); }

/* 16px text on purpose: smaller text makes iPhones zoom into the box */
.enq input, .enq select, .enq textarea { width: 100%; font: 16px/1.4 var(--sans); padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: var(--card); color: var(--ink); -webkit-appearance: none; appearance: none; }

.enq select { background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.enq textarea { min-height: 130px; resize: vertical; }

.enq input:focus-visible, .enq select:focus-visible, .enq textarea:focus-visible { outline: 3px solid var(--on-green); outline-offset: 2px; }

.enq [aria-invalid="true"] { border-color: #f0b4a6; }

.enq .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.enq .send { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; }

.enq button { font: 600 16px/1 var(--sans); padding: 16px 30px; border-radius: 999px; border: 0; background: var(--on-green); color: var(--green-deep); cursor: pointer; transition: transform .15s, background .15s; }

.enq button:hover { transform: translateY(-1px); background: #fff; }

.enq button[disabled] { opacity: .6; cursor: progress; transform: none; }

.enq .fine { font-size: 14px; color: var(--on-green-soft); margin: 0; max-width: 28em; }

.enq .fine a { color: var(--on-green); }

.enq-msg { position: relative; z-index: 1; grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 14px; font-size: 16px; display: none; }

.enq-msg.show { display: block; }

.enq-msg.bad { background: rgba(240,180,166,.18); border: 1px solid #f0b4a6; color: #fde4dc; }

.enq-msg.good { background: rgba(143,224,180,.16); border: 1px solid #8fe0b4; color: #e4f7ec; }

.mail-alt { position: relative; z-index: 1; margin: 30px 0 0; font-size: 17px; color: #d4e2d9; }

.mail-alt a { color: var(--on-green); font-weight: 700; }

.st-pill.bad { background: #f1d3cc; color: #7a281c; }

.st-pill.bad::before { background: #a63d2f; }

@media (max-width: 700px) {
  .enq { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .enq .send { flex-direction: column; align-items: stretch; }
  .enq button { width: 100%; padding: 17px 24px; }
}

.contact {
  background: var(--glass-deep);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 28px 60px -28px rgba(10,40,28,.7);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

.contact::after { border-color: rgba(255,255,255,.08); }

.contact-wrap { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

/* form inside the dark panel: frosted fields */
.enq input, .enq select, .enq textarea { background-color: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.enq input::placeholder, .enq textarea::placeholder { color: rgba(255,255,255,.55); }

.enq input:focus, .enq select:focus, .enq textarea:focus { background-color: rgba(255,255,255,.22); border-color: rgba(255,255,255,.8); }

.enq select option { color: #1c1b18; background: #fff; }

.enq select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 14px; padding-right: 46px; cursor: pointer; }

.enq button { background: rgba(255,255,255,.94); }

.enq [aria-invalid="true"] { border-color: #ffb4a3; }

.mail-alt, .contact p { color: #d9e8df; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .enq input, .enq select, .enq textarea { background-color: rgba(255,255,255,.2); }
}

/* form: which plan the visitor asked about (filled in by site.js when a pricing button is pressed) */
.enq-plan { position: relative; z-index: 1; grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 15.5px; color: #fff; }

.enq-plan[hidden] { display: none; }

.enq-plan button { font: inherit; color: #fff; background: none; border: 0; padding: 0 0 0 8px; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }

.enq input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.contact { padding-top: 52px; }
@media (max-width: 640px) { .contact { padding-top: 40px; } }
/* phones: no blur behind the form boxes (see the phone block in site.css) */
@media (max-width: 760px) { .enq input, .enq select, .enq textarea { -webkit-backdrop-filter: none; backdrop-filter: none; } }
