/* Cancel Quiz Styles */

.cq-page {
  font-family: europa, sans-serif;
  color: #2d2d2d;
  max-width: 640px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 60vh;
  position: relative;
}

/* Steps */
.cq-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cq-step--active {
  display: block;
  opacity: 1;
}

/* Card */
.cq-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.cq-card--wide {
  max-width: 800px;
  margin: 0 auto;
}

/* Typography */
.cq-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.cq-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}

.cq-intro {
  font-size: 15px;
  color: #666;
  margin: 0 0 8px;
  line-height: 1.5;
  font-style: italic;
}

.cq-question {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.3;
}

/* Email form */
.cq-email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cq-input {
  font-family: europa, sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.cq-input:focus {
  border-color: #e8784a;
}

/* Buttons */
.cq-btn {
  font-family: europa, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.cq-btn--primary {
  background: #e8784a;
  color: #fff;
}

.cq-btn--primary:hover {
  background: #d66a3e;
  transform: translateY(-1px);
}

.cq-btn--primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Option cards */
.cq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cq-option {
  font-family: europa, sans-serif;
  font-size: 15px;
  padding: 16px 20px;
  background: #f9f8f6;
  border: 2px solid #e8e6e3;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  line-height: 1.4;
  color: #2d2d2d;
}

.cq-option:hover {
  border-color: #e8784a;
  background: #fef7f4;
  transform: translateY(-1px);
}

/* Outcome screen */
.cq-outcome-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

.cq-outcome-message {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  color: #444;
}

.cq-outcome-message strong {
  color: #2d2d2d;
}

.cq-outcome-message a {
  color: #e8784a;
  text-decoration: underline;
}

/* Feedback textarea */
.cq-feedback {
  font-family: europa, sans-serif;
  font-size: 15px;
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 16px;
  outline: none;
  box-sizing: border-box;
}

.cq-feedback:focus {
  border-color: #e8784a;
}

/* Alt actions */
.cq-alt-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cq-alt-action {
  font-family: europa, sans-serif;
  font-size: 15px;
  color: #666;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  padding: 12px 20px;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
}

.cq-alt-action:hover {
  color: #444;
  border-color: #bbb;
  background: #fafafa;
}

/* Error */
.cq-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

/* Done screen */
.cq-done-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.cq-done-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}

.cq-done-message {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 12px;
  white-space: pre-line;
}

.cq-done-details {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* Calendly embed */
.cq-calendly-wrap {
  min-height: 700px;
  margin-top: 16px;
}

.cq-calendly-wrap iframe {
  min-height: 700px !important;
}

.cq-card--wide {
  max-width: 900px;
  padding: 32px 24px;
}

/* Back button */
.cq-back {
  font-family: europa, sans-serif;
  font-size: 14px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.cq-back:hover {
  color: #666;
}

/* Loading overlay */
.cq-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

.cq-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #e8784a;
  border-radius: 50%;
  animation: cq-spin 0.8s linear infinite;
}

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

.cq-loading-text {
  margin-top: 16px;
  font-size: 15px;
  color: #666;
}

/* Responsive */
@media (max-width: 640px) {
  .cq-page {
    margin: 20px auto;
    padding: 0 12px;
  }
  .cq-card {
    padding: 28px 20px;
  }
  .cq-title {
    font-size: 24px;
  }
  .cq-question {
    font-size: 20px;
  }
}
