/*==============================================================================
STATSCALAR ENTERPRISE - REQUEST A DEMO PAGE STYLES
Version: 2.0
Page: Request a Demo (request-demo.blade.php)
Framework: Laravel Blade + Bootstrap
Author: Balagali
Description: Consolidated styling for the split-panel demo request page —
dark gradient intelligence/trust panel on the left, enquiry form on the right.

CONSOLIDATION NOTE (please read):
custom.css contained TWO complete, back-to-back passes of this page's CSS:
  1. An earlier "spacious" version (generous 55px padding, standalone white
     wrapper with a border, larger fonts throughout).
  2. A later pass explicitly titled "33. REQUEST DEMO PAGE (Compact Version)"
     that redefines nearly every shared selector with tighter padding,
     smaller fonts, a solid dark-green wrapper background (so the two panels
     appear seamlessly merged), and adds the custom select-arrow styling.
Because the compact pass appears later in the file with identical
specificity, it was winning the cascade and is what actually renders. This
file keeps ONLY the compact/final version, removing ~180 lines of dead,
fully-overridden "spacious" CSS that never actually displays.
==============================================================================*/

/*==============================================================================
01. PAGE WRAPPER
==============================================================================*/
.demo-page {
  padding: 40px 0;
  background: #F8FBFA;
}

.demo-wrapper {
  display: flex;
  overflow: hidden;
  border-radius: 28px;
  background: #0E5B42;
  /* Same tone as the left panel, so the two side-by-side
     panels read as one seamless card with no visible seam */
  border: none;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

/*==============================================================================
02. LEFT PANEL - Intelligence / Trust Panel
==============================================================================*/
.demo-info {
  height: 100%;
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  /* transparent so the dark green .demo-wrapper background shows through */
  color: #fff;
}

/* Logo — "stat" plain white, "SCALAR" warm amber accent, matching the
   convention used on every other page (header, footer, login) and the
   sibling login page's own dark-green-panel logo fix */
.demo-logo {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}

.demo-logo span {
  color: #FBBF24;
}

.demo-logo:hover {
  color: #fff;
}

.demo-info h1 {
  color: #E09540;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.demo-info p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

/* Feature List */
.demo-feature-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-feature-list li {
  position: relative;
  padding-left: 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding-top: 4px;
  padding-bottom: 4px;
}

.demo-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}

/* Trust Stats */
.demo-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-trust strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.demo-trust span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

/*==============================================================================
03. FORM PANEL
==============================================================================*/
.demo-form {
  height: 100%;
  background: #fff;
  padding: 34px 40px;
  border-radius: 0 28px 28px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-form h2 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ss-heading);
}

.demo-form p {
  margin-bottom: 18px;
  color: var(--ss-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Form Grid */
.demo-form .row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.demo-form .ss-form-group {
  position: relative;
  margin-bottom: 5px;
}

.demo-form .form-control {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 14px;
  border: 1px solid var(--ss-border);
  border-radius: 16px;
  background: #fff;
  color: var(--ss-heading);
  transition: all 0.3s ease;
}

.demo-form textarea.form-control {
  height: 80px;
  min-height: 80px;
  padding: 12px 18px;
  resize: vertical;
}

.demo-form .form-control:focus {
  border-color: var(--ss-primary);
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.10);
  outline: none;
}

.demo-form select.form-control {
  cursor: pointer;
}

/* Custom Select Arrow (requires .ss-form-group's position:relative above,
   since this pseudo-element is positioned relative to that wrapping div) */
.select-group select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 52px;
  background: #fff;
}

.select-group::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  pointer-events: none;
  transition: 0.25s ease;
}

.select-group:hover::after {
  border-color: var(--ss-primary);
}

/* Submit Button */
.demo-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.demo-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 168, 107, 0.25);
}

.demo-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Alerts */
.demo-form .alert {
  border-radius: 14px;
  margin-bottom: 24px;
}

/*==============================================================================
04. RESPONSIVE DESIGN
==============================================================================*/

@media (max-width: 1199px) {
  .demo-form {
    padding: 40px;
  }

  .demo-info {
    padding: 40px;
  }

  .demo-form h2 {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .demo-wrapper {
    flex-direction: column;
  }

  .demo-info {
    padding: 40px 36px;
  }

  .demo-form {
    padding: 40px 36px;
    border-radius: 0 0 28px 28px;
  }

  .demo-form h2 {
    font-size: 30px;
  }

  .demo-trust {
    margin-top: 28px;
    padding-top: 24px;
  }
}

@media (max-width: 767px) {
  .demo-page {
    padding: 40px 0;
  }

  .demo-wrapper {
    border-radius: 24px;
  }

  .demo-info,
  .demo-form {
    padding: 30px 24px;
  }

  .demo-form {
    border-radius: 0 0 24px 24px;
  }

  .demo-logo {
    font-size: 24px;
  }

  .demo-info h1 {
    font-size: 22px;
  }

  .demo-form h2 {
    font-size: 26px;
  }

  .demo-form p {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .demo-trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .demo-trust div {
    text-align: center;
  }
}

/*==============================================================================
05. ACCESSIBILITY & UTILITIES
==============================================================================*/
@media (prefers-reduced-motion: reduce) {
  .demo-submit,
  .select-group::after {
    transition: none;
  }

  .demo-submit:hover {
    transform: none;
  }
}

.demo-form .form-control:focus-visible,
.demo-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.18);
}
