/* ============================================================
   EUTRONIX TECHNOLOGIES — contact.css
   Hero, enquiry form, contact details + map (contact.html)
   Relies on css/style.css for vars, nav, and footer.
   ============================================================ */

/* ============================================================
   HERO — COMPACT
   ============================================================ */

#contact-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 72px) 40px 56px;
  text-align: center;
}

.ct-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.ct-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  opacity: 0.85;
  margin-bottom: 18px;
}

.ct-hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}

.ct-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
}

/* ============================================================
   MAIN CONTACT SECTION
   ============================================================ */

#contact-main {
  background: var(--dark);
  padding: 0 40px 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-main-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
}

.ct-col-heading {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 28px;
}

/* ── LEFT — Form ── */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-field label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

.ct-req {
  color: var(--green-light);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.ct-field select {
  cursor: pointer;
}

.ct-field select option {
  background: var(--dark);
  color: var(--white);
}

.ct-field textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-body);
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.06);
}

.ct-field input.invalid,
.ct-field textarea.invalid {
  border-color: #e0566b;
}

.ct-error {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #ff8a9a;
  min-height: 1em;
}

.ct-submit {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--green);
  border: none;
  padding: 15px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ct-submit:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(58, 170, 53, 0.35);
}

.ct-submit:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.ct-form-msg {
  display: none;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 14px 18px;
  border-radius: 10px;
}

.ct-form-msg.show {
  display: block;
}

.ct-form-msg--success {
  background: rgba(58, 170, 53, 0.12);
  border: 1px solid rgba(58, 170, 53, 0.35);
  color: #b9e8b3;
}

.ct-form-msg--error {
  background: rgba(224, 86, 107, 0.12);
  border: 1px solid rgba(224, 86, 107, 0.35);
  color: #ffb3bf;
}

.ct-form-msg--error a {
  color: inherit;
  text-decoration: underline;
}

/* ── RIGHT — Contact details ── */
.ct-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}

.ct-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ct-detail-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(27, 156, 216, 0.12);
  color: var(--blue-light);
}

.ct-detail-icon svg {
  width: 19px;
  height: 19px;
}

.ct-detail-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.ct-detail-value {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.ct-detail-value a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.22s ease;
}

.ct-detail-value a:hover {
  color: var(--blue-light);
}

/* ── Social icons ── */
.ct-social {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.ct-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ct-social-link svg {
  width: 18px;
  height: 18px;
}

.ct-social-link:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

/* ── Map ── */
.ct-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  #contact-hero { padding: calc(var(--nav-h) + 56px) 28px 48px; }
  #contact-main { padding: 0 28px 100px; }
  .ct-main-inner { gap: 48px; padding-top: 52px; }
}

@media (max-width: 900px) {
  .ct-main-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  #contact-hero { padding: calc(var(--nav-h) + 40px) 22px 40px; }
  #contact-main { padding: 0 22px 80px; }
  .ct-main-inner { padding-top: 40px; }

  .ct-field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  #contact-hero { padding: calc(var(--nav-h) + 32px) 18px 32px; }
  #contact-main { padding: 0 18px 64px; }
  .ct-submit { width: 100%; align-self: stretch; text-align: center; }
}
