/*
 ASEM 310
 Scoped visual enhancement for public About / Contact.
 No JavaScript or form behavior modifications.
*/

/* ================= ABOUT ================= */

section.container:has(> img[src="/images/about-us.png"]) {
  width: min(100% - 32px, 1100px) !important;
  max-width: 1100px !important;
  margin: 32px auto 64px !important;
  padding: clamp(18px, 3vw, 36px) !important;
  border: 1px solid rgba(112,220,220,.24);
  border-radius: 22px;
  background: linear-gradient(160deg,rgba(255,255,255,.065),rgba(255,255,255,.018));
  box-shadow: 0 16px 42px rgba(0,0,0,.12);
  box-sizing: border-box;
}

section.container:has(> img[src="/images/about-us.png"]) > h1 {
  font-size: clamp(25px,3.5vw,40px) !important;
  line-height: 1.5 !important;
  margin: 0 0 18px !important;
  text-align: right !important;
}

section.container:has(> img[src="/images/about-us.png"]) > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 370px;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto 24px !important;
}

section.container:has(> img[src="/images/about-us.png"]) > p {
  font-size: clamp(15px,1.6vw,18px) !important;
  line-height: 2.15 !important;
  overflow-wrap: anywhere;
}

section.container:has(> img[src="/images/about-us.png"]) > div.relative.h-1 {
  margin-top: 55px !important;
  background: rgba(90,220,225,.45) !important;
}

section.container:has(> img[src="/images/about-us.png"]) > div.relative.h-1 > h2 {
  font-size: clamp(21px,2.6vw,30px) !important;
  line-height: 1.5 !important;
  border-radius: 10px;
  padding: 3px 18px !important;
  white-space: nowrap;
}

section.container:has(> img[src="/images/about-us.png"]) > div.grid {
  gap: 15px !important;
  margin-top: 34px !important;
}

section.container:has(> img[src="/images/about-us.png"]) > div.grid > div > div,
section.container:has(> img[src="/images/about-us.png"]) > div.flex.overflow-hidden {
  border: 1px solid rgba(127,220,220,.28) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.055);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

section.container:has(> img[src="/images/about-us.png"]) > div.grid > div > div > div.relative {
  flex-shrink: 0;
  min-height: 110px;
}

section.container:has(> img[src="/images/about-us.png"]) > div.grid p,
section.container:has(> img[src="/images/about-us.png"]) > div.flex p {
  line-height: 2 !important;
  font-size: 15px !important;
  overflow-wrap: anywhere;
}

/* ================= CONTACT ================= */

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"]) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 22px !important;
  justify-content: flex-start !important;
  padding-bottom: 48px;
  box-sizing: border-box;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
> div.relative.flex.flex-row {
  top: 0 !important;
  width: min(1100px, calc(100% - 32px)) !important;
  max-width: 1100px !important;
  margin: 8px auto 30px !important;
  padding: clamp(16px,3vw,30px) !important;
  gap: clamp(20px,3vw,44px) !important;
  border: 1px solid rgba(130,222,222,.3) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.045);
  box-shadow: 0 14px 38px rgba(0,0,0,.12);
  box-sizing: border-box;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
> div.relative.flex.flex-row > div {
  min-width: 0 !important;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
input,
div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
textarea {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px;
  padding: 10px 12px !important;
  font-size: 16px !important;
  line-height: 1.6;
  border: 1px solid rgba(194,239,241,.65) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.075) !important;
  color: #fff !important;
  box-sizing: border-box;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
textarea {
  min-height: 150px !important;
  resize: vertical;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
input:focus,
div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
textarea:focus {
  outline: 2px solid #42dce1 !important;
  outline-offset: 2px;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
button {
  min-height: 46px;
  border-radius: 11px !important;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
a[href*="paydariesf"] {
  min-width: 0;
  min-height: 48px;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 11px !important;
}

div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
a[href*="paydariesf"] p {
  font-size: clamp(12px,1.4vw,16px) !important;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

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

@media (max-width: 1023px) {
  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  > div.relative.flex.flex-row {
    flex-direction: column !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  > div.relative.flex.flex-row > div {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  > div.relative.flex.flex-row p.text-3xl {
    font-size: 22px !important;
    line-height: 1.6;
  }

  section.container:has(> img[src="/images/about-us.png"]) > div.grid > div > div,
  section.container:has(> img[src="/images/about-us.png"]) > div.flex.overflow-hidden {
    flex-direction: column !important;
  }

  section.container:has(> img[src="/images/about-us.png"]) > div.grid > div > div > div,
  section.container:has(> img[src="/images/about-us.png"]) > div.flex.overflow-hidden > div {
    width: 100% !important;
    margin: 0 !important;
  }

  section.container:has(> img[src="/images/about-us.png"]) > div.grid > div > div > div.relative,
  section.container:has(> img[src="/images/about-us.png"]) > div.flex.overflow-hidden > div.relative {
    height: auto !important;
    min-height: 110px;
  }
}

@media (max-width: 600px) {
  section.container:has(> img[src="/images/about-us.png"]) {
    width: calc(100% - 20px) !important;
    margin: 16px auto 40px !important;
    padding: 16px !important;
    border-radius: 16px;
  }

  section.container:has(> img[src="/images/about-us.png"]) > img {
    max-height: 230px;
  }

  section.container:has(> img[src="/images/about-us.png"]) > div.grid p,
  section.container:has(> img[src="/images/about-us.png"]) > div.flex p {
    font-size: 14px !important;
    line-height: 1.95 !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  > div.relative.flex.flex-row {
    width: calc(100% - 20px) !important;
    padding: 15px !important;
    border-radius: 16px !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  input,
  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  textarea {
    font-size: 16px !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  > div.relative.flex.flex-row .flex.items-center.justify-between.gap-x-2 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  > div.relative.flex.flex-row .flex.items-center.justify-between.gap-x-2 > div {
    width: 100% !important;
  }

  div.min-h-screen.w-screen:has(input[name="email"]):has(textarea[name="comment"])
  button {
    width: 100% !important;
  }
}