/* GLAFIMS Contact Us - colours taken from the logo (purple, green, black) */
:root {
  --purple: #5b1a9e;
  --purple-dark: #3e0f72;
  --green: #3c9a2e;
  --green-dark: #2c7621;
  --ink: #1d1a24;
  --muted: #6b6578;
  --bg: #f5f3f9;
  --card: #ffffff;
  --line: #e2dcec;
  --err: #b42318;
  --ok: #1f7a32;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--purple); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* header */
.site-header { background: #fff; border-bottom: 4px solid var(--green); box-shadow: 0 2px 10px rgba(60, 20, 110, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { flex: none; height: auto; }
.brand strong { display: block; font-size: 1.5rem; letter-spacing: .08em; color: var(--purple); }
.brand small { display: block; font-size: .8rem; color: var(--muted); max-width: 360px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: var(--bg); }
.main-nav a.active { background: var(--purple); color: #fff; }
.main-nav .btn-member { background: var(--green); color: #fff; }
.main-nav .btn-member:hover { background: var(--green-dark); color: #fff; }

/* hero */
.hero { padding: 32px 0 12px; }
.hero h1 { font-size: 2rem; color: var(--purple-dark); }
.hero h1 span { color: var(--green); }
.hero p { max-width: 760px; color: var(--muted); margin: 0; }

/* cards & blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; box-shadow: 0 1px 3px rgba(40, 10, 80, .04); }
.block { margin-top: 28px; }
.section-title { color: var(--purple-dark); font-size: 1.3rem; }
.section-title i { color: var(--green); }
.big { font-size: 2.4rem; color: var(--green); margin-bottom: 8px; display: block; }

.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.choice { text-decoration: none; color: var(--ink); text-align: center; transition: transform .15s, box-shadow .15s; margin: 0; }
.choice:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(60, 20, 110, .12); color: var(--ink); }
.choice h2 { color: var(--purple); }
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.info-row i { color: var(--purple); }

/* form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.contact-form .full, .contact-form .actions { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field label em { color: var(--err); font-style: normal; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field small { font-size: .82rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfc6de; border-radius: 8px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(91, 26, 158, .18); border-color: var(--purple); }
textarea { resize: vertical; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
label.check input { width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-direction: row; gap: 10px; align-items: end; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--purple); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--purple-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--purple); border: 1px solid var(--purple); }
.btn.ghost:hover { background: var(--bg); color: var(--purple-dark); }
.btn.danger { background: var(--err); }
.btn.small { padding: 6px 10px; font-size: .85rem; }

.notice { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; border: 1px solid; }
.notice.ok { background: #eef8ef; border-color: #b9e0bf; }
.notice.err { background: #fdf0ef; border-color: #f2c4bf; color: #7a1a12; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.card.notice { text-align: center; }

/* membership CTA */
.member-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--purple-dark), var(--purple)); color: #fff; border-radius: var(--radius); padding: 22px 26px; }
.member-cta h2 { margin: 0 0 4px; }
.member-cta p { margin: 0; opacity: .9; }
.member-cta .btn { background: var(--green); }
.member-cta .btn:hover { background: var(--green-dark); }

/* social */
.social { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.social a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.social a:hover { border-color: var(--purple); }
.social a > span:last-child { min-width: 0; }
.social strong { display: block; font-size: .95rem; }
.social small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; background: var(--purple); }
.ico-facebook { background: #1877f2; } .ico-twitter { background: #000; } .ico-linkedin { background: #0a66c2; }
.ico-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ico-youtube { background: #ff0000; } .ico-tiktok { background: #111; } .ico-whatsapp { background: #25d366; }

/* map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e5f0; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

.site-footer { margin-top: 36px; padding: 22px 0; background: var(--ink); color: #d8d2e4; font-size: .9rem; text-align: center; }
.site-footer a { color: #b9f0ad; }

/* admin */
.login { max-width: 400px; margin: 48px auto; display: flex; flex-direction: column; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { margin: 0; text-align: center; }
.stat b { display: block; font-size: 1.8rem; color: var(--purple); }
.stat span { color: var(--muted); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.table-wrap { overflow-x: auto; padding: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f8f6fb; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl tr.dim td { opacity: .5; }
.tbl input { padding: 6px 8px; }
.actions-cell form { display: inline; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eee; color: #444; white-space: nowrap; vertical-align: middle; }
.b-sent, .b-replied { background: #e3f4e5; color: var(--ok); }
.b-pending, .b-queued, .b-verified { background: #fff3d6; color: #8a5a00; }
.b-failed { background: #fde3e0; color: var(--err); }
.b-expired, .b-closed { background: #eceaf0; color: #666; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tabs a { padding: 9px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.tabs a.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.grid2 { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; align-items: start; }
.grid2 > div > .card:first-child, .grid2 > .card { margin-top: 0; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0 0 16px; }
.dl dt { font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.msg { background: var(--bg); border-radius: 8px; padding: 14px; white-space: normal; word-break: break-word; }

@media (max-width: 760px) {
  .contact-form, .grid2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .brand small { display: none; }
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .dl { grid-template-columns: 1fr; }
  .map iframe { height: 300px; }
  .card { padding: 16px; }
}
