:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok: #10b981;
  --bad: #ef4444;
}

.cq-wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 12px;
}

.cq-card {
  background: linear-gradient(180deg, #0f172a, #0b1020);
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #e5e7eb;
}

.cq-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.cq-sub {
  color: #94a3b8;
  margin: 0 0 20px;
  font-size: 15px;
}

.cq-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.cq-field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cq-full {
  grid-column: span 12;
}

.cq-third {
  grid-column: span 4;
}

.cq-field label {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 2px;
  display: block;
}

.cq-field input,
.cq-field select,
.cq-field textarea {
  background: #0b1224;
  border: 1px solid #1f2937;
  border-radius: 12px;
  color: #e5e7eb;
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.cq-field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

.cq-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.cq-field input:focus,
.cq-field select:focus,
.cq-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.cq-field input::placeholder,
.cq-field textarea::placeholder {
  color: #6b7280;
}

.cq-hint {
  font-size: 12px;
  color: #94a3b8;
}

.cq-row {
  grid-column: span 12;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cq-btn {
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s, transform 0.1s;
}

.cq-btn:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

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

.cq-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cq-btn-file {
  background: #334155;
  font-weight: 600;
  padding: 9px 14px;
  font-size: 14px;
}

.cq-btn-file:hover {
  background: #475569;
}

.cq-upload {
  border: 1px dashed #334155;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #0b1224;
  flex-wrap: wrap;
}

.cq-upload input[type="file"] {
  display: none;
}

.cq-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.cq-thumb {
  position: relative;
  background: #0b1224;
  border: 1px solid #1f2937;
  border-radius: 10px;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.cq-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cq-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cq-thumb button:hover {
  background: rgba(239, 68, 68, 0.8);
}

.cq-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
}

.cq-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.cq-consent-text,
.cq-consent-text-quick {
  color: #e5e7eb;
  font-size: 14px;
}

.cq-err {
  color: var(--bad);
  font-size: 12px;
  min-height: 18px;
  font-weight: 500;
}

.cq-msg {
  background: #052e1f;
  border: 1px solid #115e59;
  color: #a7f3d0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 10px;
  font-weight: 500;
  width: 100%;
}

/* ============================
   QUICK FORM STYLES
   ============================ */

.cq-card-quick {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #1e3a5f;
  background: linear-gradient(180deg, #0c1929, #0b1020);
}

.cq-quick-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.cq-quick-icon {
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
}

.cq-quick-header h2 {
  margin: 0 0 2px;
}

.cq-quick-header .cq-sub {
  margin: 0;
}

/* Quick form textarea is smaller */
.cq-card-quick .cq-field textarea {
  min-height: 70px;
}

/* Quick form compact upload */
.cq-upload-compact {
  justify-content: flex-start;
  padding: 10px 14px;
}

/* Quick form submit button — green accent */
.cq-btn-quick {
  background: #059669;
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
  border-radius: 14px;
  text-align: center;
  letter-spacing: 0.3px;
}

.cq-btn-quick:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 840px) {
  .cq-field,
  .cq-third {
    grid-column: span 12;
  }
  
  .cq-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cq-card {
    padding: 16px;
  }
  
  .cq-card h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .cq-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cq-upload {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cq-upload .cq-hint {
    text-align: center;
  }
  
  .cq-quick-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .cq-quick-icon {
    font-size: 36px;
  }
}

/* Print styles */
@media print {
  .cq-btn {
    display: none;
  }
}
