/* ==========================================================================
   Request Demo Page Styles — KEN Infotech Theme
   ========================================================================== */
.demo-page-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #fdf4f9 50%, #ffffff 100%);
  color: var(--ink, #0f172a);
  padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(4.5rem, 7vw, 7.5rem);
  position: relative;
  overflow: hidden;
}

.demo-page-wrapper::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 11, 138, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.demo-page-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.demo-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.42fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 992px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Left Column: Intro & Benefits */
.demo-intro {
  position: sticky;
  top: 100px;
}

@media (max-width: 992px) {
  .demo-intro {
    position: static;
  }
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fce7f3;
  color: var(--magenta-600, #df0b8a);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta-600, #df0b8a);
  box-shadow: 0 0 8px rgba(223, 11, 138, 0.6);
}

.demo-headline {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink, #0f172a);
  margin: 1.25rem 0 0;
}

.demo-subheading {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin-top: 1.25rem;
  max-width: 480px;
}

.demo-benefits {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.demo-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #1e293b;
  font-size: 0.98rem;
  font-weight: 600;
}

.demo-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fdf2f8;
  border: 1.5px solid var(--magenta-600, #df0b8a);
  color: var(--magenta-600, #df0b8a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-response-card {
  margin-top: 2.75rem;
  padding: 1.35rem 1.6rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.06);
  max-width: 380px;
}

.demo-response-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
}

.demo-response-value {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.demo-response-value svg {
  color: var(--magenta-600, #df0b8a);
}

/* Right Column: Form Card */
.demo-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08),
              0 0 35px rgba(223, 11, 138, 0.05);
  overflow: hidden;
}

.demo-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #df0b8a 0%, #6366f1 50%, #3b82f6 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.2rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .demo-form-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

.demo-field {
  display: flex;
  flex-direction: column;
}

.demo-field.full {
  grid-column: 1 / -1;
}

.demo-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-label strong.req {
  color: var(--magenta-600, #df0b8a);
  margin-left: 2px;
}

.demo-subtext {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.demo-input,
.demo-select,
.demo-textarea {
  width: 100%;
  padding: 0.8rem 1.05rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.demo-input::placeholder,
.demo-textarea::placeholder {
  color: #94a3b8;
}

.demo-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.demo-select option {
  background: #ffffff;
  color: #0f172a;
}

.demo-input:focus,
.demo-select:focus,
.demo-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--magenta-600, #df0b8a);
  box-shadow: 0 0 0 3px rgba(223, 11, 138, 0.16);
}

.demo-textarea {
  resize: vertical;
  min-height: 84px;
}

/* Modules Box with Tabs */
.demo-modules-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 0.25rem;
}

.demo-modules-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-modules-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.demo-modules-title svg {
  color: var(--magenta-600, #df0b8a);
}

.demo-selected-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fce7f3;
  color: var(--magenta-600, #df0b8a);
}

/* Tabs */
.demo-tabs-nav {
  display: flex;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.35rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.demo-tabs-nav::-webkit-scrollbar {
  display: none;
}

.demo-tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.demo-tab-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}

.demo-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(223, 11, 138, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(223, 11, 138, 0.3);
  color: var(--magenta-600, #df0b8a);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(223, 11, 138, 0.12);
}

.demo-tab-count {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: inherit;
  font-weight: 700;
}

.demo-tab-btn.is-active .demo-tab-count {
  background: #fdf2f8;
  color: var(--magenta-600, #df0b8a);
}

.demo-tab-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.demo-action-link {
  background: none;
  border: none;
  color: var(--magenta-600, #df0b8a);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

.demo-action-link:hover {
  opacity: 0.8;
}

/* Tab Panels & Module Pills */
.demo-tab-panel {
  display: none;
}

.demo-tab-panel.is-active {
  display: block;
}

.demo-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-height: 270px;
  overflow-y: auto;
  padding: 0.3rem 0.25rem 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 11, 138, 0.2) transparent;
}

.demo-pills-wrap::-webkit-scrollbar {
  width: 5px;
}

.demo-pills-wrap::-webkit-scrollbar-thumb {
  background: rgba(223, 11, 138, 0.2);
  border-radius: 5px;
}

.demo-pill {
  appearance: none;
  padding: 0.44rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.demo-pill:hover {
  background: #fdf2f8;
  border-color: rgba(223, 11, 138, 0.4);
  color: var(--magenta-600, #df0b8a);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(223, 11, 138, 0.1);
}

.demo-pill.is-selected {
  background: linear-gradient(135deg, rgba(223, 11, 138, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
  border-color: var(--magenta-600, #df0b8a);
  color: var(--magenta-600, #df0b8a);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(223, 11, 138, 0.2);
}

.demo-pill svg.pill-check {
  display: none;
  width: 12px;
  height: 12px;
  stroke: var(--magenta-600, #df0b8a);
  stroke-width: 3;
}

.demo-pill.is-selected svg.pill-check {
  display: inline-block;
}

/* Checkbox Items */
.demo-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.demo-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  cursor: pointer;
}

.demo-checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  margin-top: 1px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}

.demo-checkbox-label input[type="checkbox"]:checked {
  background: var(--magenta-600, #df0b8a);
  border-color: var(--magenta-600, #df0b8a);
}

.demo-checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.demo-checkbox-label a {
  color: var(--magenta-600, #df0b8a);
  text-decoration: underline;
  font-weight: 600;
}

.demo-checkbox-label a:hover {
  color: #b2096e;
}

/* Submit Button */
.demo-submit-btn {
  width: 100%;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--magenta-600, #df0b8a) 0%, #4a148c 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 25px -5px rgba(223, 11, 138, 0.45);
  margin-top: 0.5rem;
}

.demo-submit-btn:hover {
  background: linear-gradient(135deg, #e6007e 0%, var(--magenta-600, #df0b8a) 50%, #4a148c 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(223, 11, 138, 0.6);
}

.demo-submit-btn:active {
  transform: translateY(0);
}

.demo-submit-btn svg {
  transition: transform 0.2s ease;
}

.demo-submit-btn:hover svg {
  transform: translateX(3px);
}

/* Form Status Box (inherits from style.css but customized for demo card) */
.demo-card .form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.demo-card .form-status.is-pending {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4f46e5;
}

.demo-card .form-status.is-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
}

.demo-card .form-status.is-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #be123c;
}

