/* TASK-424 (owner 2026-11-17): contact page. Same look as the login / register pages (TASK-423): light gradient, floating
   parcels (public/auth_scene.html), message form on the left, working hours / Email / WeChat / WhatsApp cards on the right.
   Every rule starts with #mo-contact, so nothing else on the site changes. */
@property --mc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
#mo-contact { position: relative; overflow: hidden; padding: 0 16px 84px; background: linear-gradient(135deg, #e9f0fb 0%, #f6f8fc 55%, #fcf4e8 100%); color: #263746; }
#mo-contact::before, #mo-contact::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
#mo-contact::before { width: 420px; height: 420px; left: -140px; top: -120px; background: #9cbcf0; animation: mc-drift-a 16s ease-in-out infinite alternate; }
#mo-contact::after { width: 380px; height: 380px; right: -120px; bottom: -100px; background: #f5c48d; animation: mc-drift-b 18s ease-in-out infinite alternate; }

/* ---------- top band: big title with parcels floating around it ---------- */
#mo-contact .mc-hero { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 230px; max-width: 1180px; margin: 0 auto; }
#mo-contact .mc-title { position: relative; z-index: 2; margin: 0; padding-bottom: 16px; font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #142d45; animation: mc-rise .7s cubic-bezier(.2,.75,.3,1) both; }
#mo-contact .mc-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 2px; background: linear-gradient(90deg, #ef905b, #d9582c); animation: mc-line .9s .3s cubic-bezier(.2,.75,.3,1) both; }
#mo-contact .af-scene { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#mo-contact .af-fl { position: absolute; display: block; max-width: none; height: auto; filter: drop-shadow(0 16px 20px rgba(28,63,117,.18)); animation: mc-bob 6.5s ease-in-out infinite, mc-pop .9s cubic-bezier(.2,.75,.3,1) both; }
#mo-contact .af-fl svg { display: block; width: 100%; height: auto; }
#mo-contact .af-fl-mailer { left: calc(50% - 480px); top: 22px; width: 118px; rotate: -12deg; animation-duration: 7s, .9s; }
#mo-contact .af-fl-box { right: calc(50% - 520px); top: 54px; width: 196px; rotate: 4deg; animation-duration: 8s, .9s; animation-delay: -2s, .15s; }
#mo-contact .af-fl-env { left: calc(50% - 320px); top: 128px; width: 112px; rotate: 9deg; animation-duration: 6s, .9s; animation-delay: -1s, .25s; }
#mo-contact .af-fl-label { right: calc(50% - 330px); top: 16px; width: 76px; rotate: 11deg; animation-duration: 7.5s, .9s; animation-delay: -3s, .1s; }
#mo-contact .af-fl-env2 { right: calc(50% - 250px); top: 150px; width: 66px; rotate: -14deg; opacity: .75; filter: blur(.5px) drop-shadow(0 8px 12px rgba(28,63,117,.15)); animation-duration: 5.5s, .9s; animation-delay: -2.5s, .35s; }
#mo-contact .af-fl-mini { left: calc(50% - 250px); top: 28px; width: 52px; rotate: -8deg; opacity: .85; filter: blur(.4px) drop-shadow(0 8px 12px rgba(28,63,117,.15)); animation-duration: 6.8s, .9s; animation-delay: -4s, .3s; }
#mo-contact .af-route { position: absolute; inset: 0; width: 100%; height: 100%; }
#mo-contact .af-route-line { fill: none; stroke: rgba(32,92,178,.22); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#mo-contact .af-route-dot { fill: #ef905b; stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(239,144,91,.8)); }

/* ---------- body: the message form on the left, contact cards on the right ---------- */
#mo-contact .mc-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; max-width: 1080px; margin: 0 auto; }
#mo-contact .mc-info { display: grid; gap: 14px; }
#mo-contact .mc-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 30px -18px rgba(28,63,117,.35); color: inherit; text-decoration: none; animation: mc-in .6s cubic-bezier(.2,.75,.3,1) both; transition: transform .2s ease, box-shadow .2s ease; }
#mo-contact .mc-card:nth-child(1) { animation-delay: .12s; } #mo-contact .mc-card:nth-child(2) { animation-delay: .2s; }
#mo-contact .mc-card:nth-child(3) { animation-delay: .28s; } #mo-contact .mc-card:nth-child(4) { animation-delay: .36s; }
#mo-contact a.mc-card:hover, #mo-contact a.mc-card:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 34px -18px rgba(28,63,117,.45); color: inherit; text-decoration: none; }
#mo-contact a.mc-card:focus-visible { outline: 3px solid rgba(32,92,178,.4); outline-offset: 2px; }
#mo-contact .mc-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, rgba(32,92,178,.12), rgba(239,144,91,.16)); }
#mo-contact .mc-ico svg { width: 22px; height: 22px; fill: none; stroke: #205cb2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#mo-contact .mc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; padding-top: 1px; }
#mo-contact .mc-txt > b { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7c8f; }
#mo-contact .mc-txt > b i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
#mo-contact .mc-txt > span { font-size: 16px; font-weight: 600; color: #142d45; overflow-wrap: anywhere; }
#mo-contact a.mc-card .mc-txt > span { color: #205cb2; }
#mo-contact .mc-soon .mc-txt > span { font-size: 14px; font-weight: 500; font-style: italic; color: #8a97a6; }
#mo-contact .mc-hours .mc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; color: #263746; }
#mo-contact .mc-hours .mc-row + .mc-row { padding-top: 4px; border-top: 1px dashed #e3e9f0; }
#mo-contact .mc-hours .mc-row span:last-child { font-weight: 600; color: #142d45; white-space: nowrap; }

/* form card: same turning blue-and-orange edge as the login card */
#mo-contact .mc-form-card { padding: 32px 32px 30px; border: 2px solid transparent; border-radius: 22px; background: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)) padding-box, conic-gradient(from var(--mc-a), rgba(32,92,178,.55), rgba(239,144,91,.9), rgba(255,210,179,.4), rgba(32,92,178,.15), rgba(32,92,178,.55)) border-box; box-shadow: 0 28px 60px -24px rgba(28,63,117,.35), 0 0 40px -12px rgba(239,144,91,.3); animation: mc-rise .75s .1s cubic-bezier(.2,.75,.3,1) both, mc-turn 6s linear infinite; }
#mo-contact .mc-form-title { margin: 0 0 20px; font-size: 24px; font-weight: 700; color: #142d45; }
#mo-contact form { margin: 0; }
#mo-contact .mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#mo-contact .mc-field { margin: 0 0 16px; }
#mo-contact .mc-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #3d5571; }
#mo-contact .mc-field label span { color: #d9582c; }
#mo-contact .form-control { display: block; width: 100%; height: 50px !important; padding: 0 14px 0 46px; border: 1px solid #dde4ec; border-radius: 12px; background-color: #f7f9fc; background-repeat: no-repeat; background-position: 15px 50%; background-size: 18px 18px; box-shadow: none !important; color: #263746; font-size: 15px; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
#mo-contact textarea.form-control { height: 150px !important; padding-top: 13px; resize: vertical; background-position: 15px 15px; line-height: 1.5; }
#mo-contact .form-control::placeholder { color: #8a97a6; }
#mo-contact .form-control:hover { border-color: #b9c7d6; }
#mo-contact .form-control:focus { border-color: #205cb2; background-color: #fff; outline: 0; box-shadow: 0 0 0 4px rgba(32,92,178,.14), 0 8px 18px -10px rgba(32,92,178,.45) !important; }
#mo-contact #mc-name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
#mo-contact #mc-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
#mo-contact #message { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }
#mo-contact #verify { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
#mo-contact .mc-code { display: flex; align-items: center; gap: 12px; }
#mo-contact .mc-code .form-control { flex: 1; min-width: 0; max-width: 240px; }
#mo-contact #verify_img { flex: none; width: 132px; height: 50px; padding: 0; border: 1px solid #dde4ec; border-radius: 12px; cursor: pointer; background: #fff; }
#mo-contact .mc-send {
  position: relative; overflow: hidden; display: block; float: none; width: 100%; height: 52px; margin-top: 6px; padding: 0; line-height: 52px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; letter-spacing: .02em; color: #fff;
  background-color: #e2733a !important; background-image: linear-gradient(90deg, #ef8a4f, #d9582c) !important; background-size: auto !important;
  box-shadow: 0 14px 26px -12px rgba(217,88,44,.75); transition: transform .18s ease, box-shadow .18s ease;
}
#mo-contact .mc-send:hover, #mo-contact .mc-send:focus { background-image: linear-gradient(90deg, #f0955c, #e0632f) !important; transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(217,88,44,.85); }
#mo-contact .mc-send:focus-visible { outline: 3px solid rgba(32,92,178,.45); outline-offset: 3px; }
#mo-contact .mc-send:active { transform: translateY(0) scale(.98); }
#mo-contact .mc-send::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform .2s ease; }
#mo-contact .mc-send:hover::after { transform: translateX(5px); }
#mo-contact .mc-send::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: mc-sweep 5s 1.2s ease-in-out infinite; }

/* ---------- tablet and phone ---------- */
@media (max-width: 991px) {
  #mo-contact .mc-body { grid-template-columns: 1fr; max-width: 640px; }
  #mo-contact .mc-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #mo-contact .mc-card:not(.mc-hours) { flex-direction: column; gap: 10px; }
  #mo-contact .mc-hours { grid-column: 1 / -1; }
  #mo-contact .af-fl-env2, #mo-contact .af-fl-mini { display: none; }
  #mo-contact .af-fl-mailer { left: 4%; } #mo-contact .af-fl-box { right: 0; } #mo-contact .af-fl-env { left: 18%; } #mo-contact .af-fl-label { right: 22%; }
}
@media (max-width: 767px) {
  #mo-contact { padding: 0 12px 64px; }
  #mo-contact .mc-hero { height: 160px; }
  #mo-contact .mc-title { font-size: 36px; padding-bottom: 12px; }
  #mo-contact .af-fl-mailer { left: -10px; top: 14px; width: 66px; }
  #mo-contact .af-fl-box { right: -28px; top: 64px; width: 116px; }
  #mo-contact .af-fl-env { left: 6px; top: 104px; width: 70px; }
  #mo-contact .af-fl-label { right: 16px; top: 8px; width: 44px; }
  #mo-contact .af-route { display: none; }
  #mo-contact .mc-info { grid-template-columns: 1fr; gap: 10px; }
  #mo-contact .mc-card:not(.mc-hours) { flex-direction: row; gap: 14px; }
  #mo-contact .mc-card { padding: 14px; }
  #mo-contact .mc-form-card { padding: 24px 18px 22px; }
  #mo-contact .mc-grid { grid-template-columns: 1fr; gap: 0; }
  #mo-contact .mc-code .form-control { max-width: none; }
}

@keyframes mc-rise { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mc-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mc-sweep { 0% { left: -40%; } 22%, 100% { left: 130%; } }
@keyframes mc-turn { to { --mc-a: 360deg; } }
@keyframes mc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes mc-pop { from { opacity: 0; scale: .7; } }
@keyframes mc-drift-a { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes mc-drift-b { to { transform: translate(-160px, -70px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  #mo-contact, #mo-contact *, #mo-contact::before, #mo-contact::after, #mo-contact *::before, #mo-contact *::after { animation: none !important; transition: none !important; }
  #mo-contact .af-route-dot { display: none; }
}

/* ---------- TASK-425: "sent" notice, problem notice, sending state ---------- */
#mo-contact [hidden] { display: none !important; }
#mo-contact .mc-sent { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; padding: 12px 14px; border: 1px solid #bfe5cf; border-radius: 12px; background: #eaf7f0; color: #1d6b43; font-size: 15px; font-weight: 600; outline: 0; animation: mc-in .45s cubic-bezier(.2,.75,.3,1) both; }
#mo-contact .mc-sent svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #1f8a55; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#mo-contact .mc-alert { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #f3c7c2; border-radius: 12px; background: #fdeeec; color: #a8322a; font-size: 14px; font-weight: 600; line-height: 1.45; }
#mo-contact .mc-send.is-busy, #mo-contact .mc-send:disabled { opacity: .78; cursor: wait; transform: none; }
#mo-contact .mc-send.is-busy::after, #mo-contact .mc-send.is-busy::before { display: none; }

/* ---------- TASK-428 (owner 2026-11-18, option A): main content sits higher on laptops, so the form fits small laptop screens,
   with enough room left between the title and the form. Desktop only (992px and wider); tablets and phones keep the TASK-424
   layout. Shorter screens get a tighter version. ---------- */
@media (min-width: 992px) {
  #mo-contact .mc-hero { height: 190px; }
  #mo-contact .mc-title { font-size: 44px; padding-bottom: 14px; }
  #mo-contact .af-fl-mailer { top: 14px; width: 96px; }
  #mo-contact .af-fl-box { top: 16px; width: 150px; }
  #mo-contact .af-fl-env { top: 84px; width: 90px; }
  #mo-contact .af-fl-label { top: 8px; width: 62px; }
  #mo-contact .af-fl-env2 { top: 100px; width: 52px; }
  #mo-contact .af-fl-mini { top: 18px; width: 42px; }
  #mo-contact .mc-form-card { padding: 26px 30px; }
  #mo-contact .mc-form-title { margin-bottom: 16px; }
  #mo-contact .mc-field { margin-bottom: 14px; }
  #mo-contact textarea.form-control { height: 120px !important; }
}
@media (min-width: 992px) and (max-height: 820px) {
  #mo-contact .mc-hero { height: 150px; }
  #mo-contact .mc-title { font-size: 40px; }
  #mo-contact .mc-form-card { padding: 22px 28px; }
  #mo-contact .mc-form-title { margin-bottom: 12px; font-size: 22px; }
  #mo-contact .mc-field { margin-bottom: 12px; }
  #mo-contact .mc-field label { margin-bottom: 4px; }
  #mo-contact textarea.form-control { height: 96px !important; }
  #mo-contact .mc-send { margin-top: 2px; }
  #mo-contact .mc-info { gap: 12px; }
  #mo-contact .mc-card { padding: 14px 16px; }
}
@media (min-width: 992px) and (max-height: 660px) {
  #mo-contact .mc-hero { height: 130px; }
  #mo-contact .mc-title { font-size: 38px; padding-bottom: 12px; }
  #mo-contact .mc-form-card { padding: 18px 26px; }
  #mo-contact textarea.form-control { height: 76px !important; }
}
