:root {
  --bg: #0a0c14;
  --panel: rgba(18, 22, 33, 0.6);
  --text: #e6ebff;
  --muted: #9aa3bd;
  --accent: #8b5cf6;/* purple */
  --accent-2: #fddd3c; /* yellow */
  --danger: #ff5c7c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(1200px 1200px at 20% -10%, #121833 0%, rgba(11,13,18,0) 45%), radial-gradient(1000px 1000px at 110% 0%, #0f1a3a 0%, rgba(11,13,18,0) 40%), linear-gradient(180deg, #0b0d12 0%, #0a0c14 100%); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
body { overflow-x: hidden; }

.container { max-width: 920px; margin: 0 auto; padding: 2.2rem 1rem 4rem; }
header { text-align: center; margin-bottom: 1rem; }
h1 { font-size: 2.1rem; margin: 0 0 .25rem; letter-spacing: .5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--muted); margin: 0 0 1rem; }

.card { background: linear-gradient(180deg, rgba(18,22,33,.75), rgba(18,22,33,.45)); backdrop-filter: blur(8px); border: 1px solid rgba(139,92,246,.18); border-radius: 14px; padding: 1.1rem; margin: 1.1rem 0; box-shadow: 0 12px 40px rgba(0,0,0,.35); }

label { display: block; font-weight: 600; margin: .5rem 0 .25rem; letter-spacing: .2px; }
input, textarea { width: 100%; background: rgba(14,18,32,.9); color: var(--text); border: 1px solid #2a3145; border-radius: 12px; padding: .8rem 1rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
input:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(34,211,238,.18); background: rgba(14,18,32,1); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -5000px; opacity: 0; }

/* reCAPTCHA styling */
#recaptcha-container { margin: .5rem 0; display: flex; justify-content: center; }
#recaptcha-widget { transform: scale(0.95); transform-origin: center; }
@media (max-width: 480px) {
  #recaptcha-widget { transform: scale(0.8); }
}

.actions { display: flex; justify-content: flex-end; margin-top: .85rem; }
button { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #0b0d12; border: 0; border-radius: 999px; padding: .8rem 1.15rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(139,92,246,.20), 0 0 0 1px rgba(255,255,255,.02) inset; transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease; }
button:hover { box-shadow: 0 16px 40px rgba(34,211,238,.28), 0 0 0 1px rgba(255,255,255,.04) inset; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: default; box-shadow: none; }

.form-msg { min-height: 1.2rem; color: var(--muted); margin-top: .6rem; }
.form-msg.error { color: var(--danger); }
.form-msg.success { color: #5cffb1; }

.messages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: .85rem; }
.messages li { background: rgba(14,18,32,.9); border: 1px solid rgba(34,211,238,.15); border-radius: 12px; padding: .85rem 1rem; overflow: hidden; }
.msg-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
.msg-name { font-weight: 700; color: var(--text); letter-spacing: .2px; }
.msg-time { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; margin-left: auto; }
.msg-head .msg-name, .msg-head .msg-time { min-width: 0; }
.msg-body { white-space: pre-wrap; word-wrap: break-word; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }

footer { text-align: center; color: var(--muted); margin-top: 1rem; }

.sentinel { width: 100%; }
.sentinel { height: 2px; }

/* Mobile tweaks */
@media (max-width: 768px) {
  .container { max-width: 100%; padding: 1.4rem .9rem 2.6rem; }
  h1 { font-size: 1.7rem; }
  .card { padding: .9rem; margin: .9rem 0; border-radius: 12px; }
  input, textarea { border-radius: 10px; padding: .75rem .9rem; }
  .messages li { border-radius: 10px; padding: .8rem .9rem; }
  .msg-head { flex-direction: column; align-items: flex-start; }
  .msg-time { max-width: 100%; margin-left: 0; white-space: normal; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  .subtitle { font-size: .95rem; }
  .actions { justify-content: stretch; }
  button { width: 100%; }
  .msg-head { flex-direction: column; gap: .15rem; }
  .msg-time { font-size: .85rem; white-space: normal; overflow: visible; text-overflow: unset; max-width: 100%; margin-left: 0; }
  input, textarea, button { font-size: 16px; }
  .container { padding: 1.1rem .75rem 2.2rem; }
}


