/* ==========================================================================
   Live demo page (new design) - uses the theme tokens from main.css
   ========================================================================== */

.ld-hidden { display: none !important; }

.ld-page { padding-top: 0; }

/* Dark hero banner so the transparent top-of-page header stays legible in both themes */
.ld-hero {
  padding: 150px 24px 130px;
  background: linear-gradient(150deg, #0B0F18 0%, #1a1305 100%);
}
.ld-hero .ld-head { margin-bottom: 0; }
.ld-hero .ld-title { color: #fff; }
.ld-hero .ld-sub { color: #D1D5DB; }

.ld-section {
  max-width: 1040px;
  margin: -90px auto 0;
  padding: 0 24px 96px;
  position: relative;
}

.ld-head { text-align: center; margin-bottom: 36px; }

.ld-label {
  display: inline-block;
  color: var(--primary-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.ld-title {
  font-family: var(--font-family);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.ld-title span { color: var(--primary-accent); }

.ld-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.ld-video {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.ld-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Modal ---------- */

.ld-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.ld-modal.is-open { opacity: 1; visibility: visible; }

.ld-dialog {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  /* border: 1px solid var(--border); */
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s ease;
}

.ld-modal.is-open .ld-dialog { transform: none; }

.ld-dialog-wide {
  max-width: 860px;
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  overflow: hidden;
}

.ld-dialog-thanks { max-width: 480px; padding: 36px 34px 34px; }

/* Left panel */
.ld-aside {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 30px;
  background: linear-gradient(150deg, #0B0F18 0%, #1a1305 100%);
  color: #fff;
  overflow: hidden;
}

.ld-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-rings circle { stroke: rgba(223, 161, 34, 0.28); stroke-width: 1; }

.ld-play {
  position: absolute;
  top: 34px;
  left: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #7e4f04, #f1b431);
  box-shadow: 0 8px 24px rgba(223, 161, 34, 0.4);
}

.ld-play span {
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.ld-aside-text { position: relative; }
.ld-aside-text h2 { font-size: 26px; font-weight: 600; line-height: 1.2; margin-bottom: 14px; color: #fff; }
.ld-aside-text h2 span { color: #f1b431; }
.ld-aside-line { display: block; width: 44px; height: 3px; border-radius: 3px; background: #DFA122; margin-bottom: 14px; }
.ld-aside-text p { font-size: 14px; color: #D1D5DB; }

/* Mobile-only logo above the form title (theme-aware) */
.ld-mobile-logo { display: none; }
.ld-mobile-logo img { height: 48px; width: auto; }
.ld-logo-dark { display: none; }
[data-theme="dark"] .ld-logo-light { display: none; }
[data-theme="dark"] .ld-logo-dark { display: block; }

/* Right panel */
.ld-main { padding: 34px 36px 36px; }
.ld-form-title { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 22px; }

@media (max-width: 760px) {
 .ld-form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 13px;
}
.ld-mobile-logo img {
    height: 40px;
}

}

.ld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* .form-group { margin-bottom: 18px; } */

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.required { color: #ef4444; }

.form-control,
.captcha-field-wrap input[name="captcha_1"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder { color: var(--text-2); opacity: 0.8; }

.form-control:focus,
.captcha-field-wrap input[name="captcha_1"]:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px var(--primary-accent-soft);
}

.form-control.is-invalid,
.captcha-field-wrap input[name="captcha_1"].is-invalid { border-color: #e5484d; }

.field-error { color: #e5484d; font-size: 12.5px; margin-top: 4px; min-height: 1em; }

.form-alert { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.form-alert-error { background: rgba(229, 72, 77, 0.12); color: #e5484d; border: 1px solid rgba(229, 72, 77, 0.35); }

.captcha-field-wrap { display: flex; align-items: center; gap: 10px; }

.captcha-field-wrap img.captcha {
  height: 46px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 12px;
  background: #fff;
}

.captcha-field-wrap input[name="captcha_1"] { flex: 1; min-width: 0; }

.captcha-refresh-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.3);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.captcha-refresh-btn:hover { border-color: var(--primary-accent); color: var(--primary-accent); transform: rotate(90deg); }

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, #7e4f04, #f1b431);
  color: #fff;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(223, 161, 34, 0.35); }
.submit-btn:disabled { cursor: default; transform: none; box-shadow: none; }

#contactSubmitBtn.is-loading { position: relative; color: transparent; pointer-events: none; }
#contactSubmitBtn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ld-spin 0.7s linear infinite;
}

@keyframes ld-spin { to { transform: rotate(360deg); } }

/* Thanks popup */
.ld-thanks-title { font-size: 28px; font-weight: 600; margin: 4px 0 8px; color: var(--text); }
.ld-thanks-text { font-size: 14.5px; color: var(--text-2); margin-bottom: 24px; line-height: 1.55; }

.ld-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.3);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ld-close:hover { background: var(--primary-accent); border-color: var(--primary-accent); color: #fff; transform: rotate(90deg); }

body.ld-modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .ld-dialog-wide { grid-template-columns: 1fr; }
  .ld-aside { display: none; }
  .ld-mobile-logo { display: block; margin-bottom: 12px; }
  .ld-main { padding: 28px 22px 26px; }
  .ld-row { grid-template-columns: 1fr; }
  .ld-hero { padding: 120px 20px 110px; }
}
