/* Corporate Websites — mini builder (shell matches technology.html lab band) */

.cw-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}

.cw-back:hover {
  text-decoration: underline;
}

#corpWebRoot.cw-app {
  background: linear-gradient(180deg, #12121a 0%, #0d0d12 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.cw-app-header {
  padding: 20px 24px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cw-app-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cw-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 480px;
}

.cw-controls {
  padding: 20px 24px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  max-height: 640px;
}

.cw-field {
  margin-bottom: 16px;
}

.cw-field label,
.cw-check label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.cw-field input[type="text"],
.cw-field textarea,
.cw-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.cw-field textarea {
  min-height: 64px;
  resize: vertical;
}

.cw-field input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.cw-field input:focus,
.cw-field textarea:focus,
.cw-field select:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.cw-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cw-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.cw-check label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.cw-preview-col {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.cw-preview-head {
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cw-preview-frame-wrap {
  flex: 1;
  padding: 16px 20px 20px;
  min-height: 420px;
}

#cwPreview {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.cw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cw-actions button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cw-actions button:active {
  transform: scale(0.98);
}

#cwReset {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

#cwReset:hover {
  background: rgba(255, 255, 255, 0.14);
}

#cwFinish {
  background: #fff;
  color: #0a0a0f;
}

#cwFinish:hover {
  background: #f0f0f2;
}

/* Lead modal */
#corpLeadOverlay {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#corpLeadOverlay.open {
  opacity: 1;
  visibility: visible;
}

.corp-lead-modal {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 20px;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

.corp-lead-modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.corp-lead-modal > p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #515154;
}

.corp-lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.corp-lead-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.corp-lead-field {
  margin-bottom: 14px;
}

.corp-lead-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #515154;
  margin-bottom: 6px;
}

.corp-lead-field input[type="text"],
.corp-lead-field input[type="email"],
.corp-lead-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}

.corp-lead-field textarea {
  min-height: 88px;
  resize: vertical;
}

.corp-lead-field input[type="file"] {
  font-size: 13px;
  width: 100%;
}

.corp-lead-hint {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 6px;
  line-height: 1.45;
}

.corp-lead-note {
  font-size: 12px;
  color: #6e6e73;
  margin: 14px 0 0;
  line-height: 1.45;
}

#corpLeadSubmit {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

#corpLeadSubmit:hover {
  filter: brightness(1.06);
}

@media (max-width: 900px) {
  .cw-grid {
    grid-template-columns: 1fr;
  }

  .cw-controls {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: none;
  }

  #cwPreview {
    min-height: 360px;
  }
}
