/* ==========================================================================
   Laser Arena Contact — styles matching booking form v4
   ========================================================================== */

/* ── CSS custom property needed for the snake border animation ── */
@property --snake-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --lac-bg:          #050a12;
  --lac-bg2:         #080f1a;
  --lac-bg3:         #0a1525;
  --lac-red:         #dc003c;
  --lac-red-light:   #ff4060;
  --lac-red-dim:     rgba(220,0,60,0.15);
  --lac-red-glow:    rgba(220,0,60,0.4);
  --lac-border:      rgba(220,0,60,0.22);
  --lac-border-dim:  rgba(255,255,255,0.07);
  --lac-text:        #d8eaf5;
  --lac-text-dim:    #4a6070;
  --lac-text-mid:    #8aaabf;
  --lac-white:       #f0f5fa;
}

.lac-contact-form-wrap {
  width: 100%;
  font-family: 'Chakra Petch', sans-serif;
  color: var(--lac-text);
  font-size: 16px;
}

/* ── Card — mirrors .section-card ───────────────────────────────── */
.lac-card {
  background: rgb(0, 0, 0) !important;
  border: 1px solid var(--lac-border-dim);
  position: relative;
  transition: border-color 0.3s;
  overflow: visible;
}

.lac-card.active {
  border-color: rgba(220,0,60,0.28);
}

/* Snake border — hidden by default, runs on .user-focused */
.lac-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(
    from var(--snake-angle),
    transparent 0%,
    transparent 66%,
    rgba(220,0,60,0.15) 72%,
    rgba(220,0,60,0.6) 79%,
    #ff1a45 83%,
    rgba(220,0,60,0.6) 87%,
    rgba(220,0,60,0.15) 93%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.lac-card.user-focused::after {
  opacity: 1;
  animation: lac-snake-run 2.8s linear infinite;
}

@keyframes lac-snake-run {
  to { --snake-angle: 360deg; }
}

/* ── Section header — mirrors .section-header ───────────────────── */
.lac-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(220,0,60,0.1);
  background: rgba(220,0,60,0.025);
}

.lac-num {
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 23px !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--lac-red) !important;
  flex-shrink: 0;
  line-height: 1.2;
}

.lac-section-title {
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lac-white) !important;
  white-space: nowrap;
  line-height: 1.2;
  margin-bottom: 0 !important;
}

/* ── Section body ────────────────────────────────────────────────── */
.lac-section-body {
  padding: 28px 24px 24px;
}

/* ── Form grid — mirrors .contact-grid ──────────────────────────── */
.lac-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lac-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lac-full { grid-column: 1 / -1; }

/* ── Labels — mirrors .field-label ──────────────────────────────── */
.lac-form-label {
  font-family: 'Chakra Petch', sans-serif !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff !important;
}

/* ── Inputs — mirrors .field-input ──────────────────────────────── */
.lac-form-input {
  height: 52px;
  background: rgba(0,8,18,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--lac-white);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  padding: 0 16px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.lac-form-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.lac-form-input:focus {
  border-color: rgba(220,0,60,0.65);
  background: var(--lac-bg);
  box-shadow: 0 0 0 1px rgba(220,0,60,0.12), inset 0 0 16px rgba(220,0,60,0.04);
}

/* ── Textarea ────────────────────────────────────────────────────── */
.lac-form-textarea {
  background: rgba(0,8,18,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--lac-white);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.lac-form-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.lac-form-textarea:focus {
  border-color: rgba(220,0,60,0.65);
  background: var(--lac-bg);
  box-shadow: 0 0 0 1px rgba(220,0,60,0.12), inset 0 0 16px rgba(220,0,60,0.04);
}

/* ── T&C row — mirrors .tc-row ──────────────────────────────────── */
.lac-tc-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--lac-bg3);
  border: 1px solid var(--lac-border-dim);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.lac-tc-wrap:hover { border-color: rgba(220,0,60,0.28); }
.lac-tc-wrap.checked { border-color: rgba(220,0,60,0.45); background: rgba(220,0,60,0.06); }

.lac-tc-checkbox {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--lac-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
  font-size: 12px;
  color: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}

.lac-tc-checkbox:checked {
  border-color: var(--lac-red);
  background: var(--lac-red);
}

.lac-tc-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.lac-tc-text {
  font-size: 15px;
  line-height: 1.6;
  color: #fff !important;
  flex: 1;
  font-family: 'Chakra Petch', sans-serif;
}

.lac-tc-text a {
  color: var(--lac-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(220,0,60,0.3);
}

.lac-tc-text a:hover { border-bottom-color: var(--lac-red); }

/* ── Submit button — mirrors .submit-btn ────────────────────────── */
.lac-btn-submit {
  width: 100%;
  height: 64px;
  background: linear-gradient(135deg, #dc003c 0%, #9e0028 100%);
  border: none;
  color: var(--lac-white);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(220,0,60,0.35);
}

.lac-btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes lac-scanner-slide {
  0%   { left: -100px; }
  100% { left: calc(100% + 100px); }
}

.lac-btn-submit:not(:disabled)::after {
  content: '';
  position: absolute;
  top: 0; left: -100px;
  width: 100px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6) 50%, rgba(255,80,80,0.8) 80%, transparent);
  animation: lac-scanner-slide 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.lac-btn-submit:not(:disabled):hover {
  box-shadow: 0 6px 32px rgba(220,0,60,0.55), 0 0 60px rgba(220,0,60,0.15);
  transform: translateY(-1px);
}

.lac-btn-submit:not(:disabled):active { transform: translateY(0); }

.lac-btn-submit:disabled {
  background: #1a1a2a;
  color: var(--lac-text-dim);
  cursor: not-allowed;
  border: 1px solid var(--lac-border-dim);
  box-shadow: none;
  transform: none;
}

.lac-btn-submit span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lac-arrow { display: inline-block; transition: transform 0.2s; }
.lac-btn-submit:not(:disabled):hover .lac-arrow { transform: translateX(6px); }

/* ── Hint below button ───────────────────────────────────────────── */
.lac-form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--lac-text-dim);
  letter-spacing: 0.1em;
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase;
}

.lac-form-note span { color: var(--lac-red); }

/* ── Status message ──────────────────────────────────────────────── */
.lac-form-msg {
  margin-top: 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  min-height: 20px;
  white-space: pre-line;
}

.lac-form-msg.success {
  padding: 12px 16px;
  background: rgba(0,180,80,0.08);
  border: 1px solid rgba(0,180,80,0.35);
  color: #00c853;
}

.lac-form-msg.error {
  padding: 12px 16px;
  background: rgba(220,0,60,0.08);
  border: 1px solid rgba(220,0,60,0.35);
  color: var(--lac-red);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lac-card-header  { padding: 16px; }
  .lac-section-body { padding: 20px 16px 16px; }
  .lac-section-title { white-space: normal; font-size: 1.05rem !important; }
  .lac-form-grid { grid-template-columns: 1fr; }
  .lac-full { grid-column: 1; }
}
