.feedback-page [data-flipcards-root] {
  margin-top: 0.75rem;
}

.feedback-editor-wrap {
  margin-top: 1.8rem;
}

.feedback-form {
  max-width: 100%;
}

.feedback-form .form-card {
  margin: 1rem 0 1.4rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

.feedback-notice {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04);
  line-height: 1.6;
}

.feedback-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.field > span {
  display: block;
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: #243447;
  line-height: 1.35;
  font-size: 1rem;
}

.field-help,
.feedback-help {
  display: block;
  margin-top: 0.42rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.feedback-form .field input,
.feedback-form .field select,
.feedback-form .field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #fff;
  font: inherit;
  line-height: 1.45;
  color: #0f172a;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.feedback-form .field input:focus,
.feedback-form .field select:focus,
.feedback-form .field textarea:focus {
  outline: none;
  border-color: rgba(0, 112, 192, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 112, 192, 0.10);
  background: #fff;
}

.feedback-form .field input[required],
.feedback-form .field select[required],
.feedback-form .field textarea[required] {
  border-width: 2px;
}

.feedback-form .field input[required]:invalid,
.feedback-form .field select[required]:invalid,
.feedback-form .field textarea[required]:invalid {
  border-color: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.10);
}

.feedback-form .field input[required]:valid,
.feedback-form .field select[required]:valid,
.feedback-form .field textarea[required]:valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10);
}

.feedback-form textarea {
  min-height: 180px;
  resize: vertical;
}

.feedback-form input[type="file"] {
  padding: 0.72rem 0.85rem;
  background: #fff;
}

.feedback-form .checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  border: 2px solid #ff3b30;
  border-radius: 16px;
  background: rgba(255, 59, 48, 0.05);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.feedback-form .checkbox-container:has(input[type="checkbox"]:checked) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.feedback-form .checkbox-container input[type="checkbox"] {
  margin: 0.15rem 0 0;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.feedback-form .checkbox-container label {
  margin: 0;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
}

.feedback-ai-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 0.2rem 0 0.9rem;
}

.feedback-ai-inline .u-btn {
  margin: 0;
  flex: 0 0 auto;
}

.ai-progress {
  display: none;
}

.ai-progress[aria-hidden="false"] {
  display: block;
}

.ai-progress--inline {
  min-width: min(100%, 360px);
  flex: 1 1 320px;
  margin: 0;
}

.ai-progress__bar-wrap {
  height: 8px;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
}

.ai-progress__bar {
  width: 0%;
  height: 100%;
  background: #7FBF4D;
  transition: width 0.4s ease;
}

.ai-progress__text {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.feedback-main-actions {
  margin-top: 1.25rem;
  align-items: center;
  gap: 0.9rem;
}

.feedback-main-actions .u-btn {
  margin-top: 0;
}

.feedback-google-box {
  margin-top: 1.25rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

.feedback-google-box__title {
  margin: 0 0 0.45rem;
  padding-left: 12px;
  border-left: 6px solid var(--brand);
  color: var(--brand);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
}

.feedback-msg,
.feedback-ai-msg,
.feedback-copy-hint {
  margin-top: 0.8rem;
  color: #334155;
  line-height: 1.5;
}

.feedback-legal {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Overlay */
.ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.ai-overlay[aria-hidden="false"] {
  display: block;
}

.ai-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ai-overlay__dialog {
  position: relative;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.18),
    0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: auto;
}

.ai-overlay__title-wrap {
  margin-bottom: 1rem;
}

.ai-overlay__title {
  margin: 0;
  color: var(--brand);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.ai-suggestions--overlay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.ai-card {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.ai-card__title {
  margin: 0 0 0.65rem;
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 700;
}

.ai-card__text {
  margin: 0 0 1rem;
  white-space: pre-line;
  line-height: 1.6;
  color: #334155;
  flex: 1 1 auto;
}

.ai-card__actions {
  margin-top: auto;
}

.ai-card__actions .u-btn {
  width: 100%;
}

.ai-card__hint {
  display: block;
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.ai-overlay__footer {
  display: flex;
  justify-content: center;
  margin-top: 1.15rem;
}

.feedback-page .u-fc-section {
  margin-top: 1.1rem;
}

.feedback-page .u-fc-subheader {
  margin-bottom: 1.15rem;
}

.feedback-page .u-fc-link {
  margin-top: auto;
}

@media (max-width: 980px) {
  .ai-suggestions--overlay {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .feedback-form .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .feedback-form .form-card {
    padding: 1rem 0.95rem 1.1rem;
    border-radius: 20px;
  }

  .feedback-ai-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-progress--inline {
    min-width: 0;
    flex: 1 1 auto;
  }

  .feedback-main-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-main-actions .u-btn {
    width: 100%;
  }

  .feedback-google-box {
    padding: 0.95rem 0.9rem 1rem;
  }

  .ai-overlay__dialog {
    width: calc(100vw - 20px);
    margin: 10px auto;
    padding: 0.9rem;
    border-radius: 18px;
    max-height: calc(100vh - 20px);
  }

  .ai-overlay__footer .u-btn {
    width: 100%;
  }
}
.feedback-page .u-fc-front {
  display: flex;
  flex-direction: column;
}

.feedback-page .u-fc-front .u-fc-img {
  display: block !important;
  width: 100% !important;
  height: 80% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
}

.feedback-page .u-fc-front .u-fc-title {
  flex: 0 0 20%;
  height: 20%;
  min-height: 64px;
}
.feedback-form input[type="file"] {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 2px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #fff;
  font: inherit;
  color: #0f172a;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.feedback-form input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.feedback-form input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  background: rgba(0, 112, 192, 0.06);
  border-color: var(--brand-dark);
  color: var(--brand-dark);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.10);
}
.feedback-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.feedback-main-actions .u-btn:disabled,
.feedback-main-actions .u-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.feedback-google-box {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

.feedback-google-box .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}
.feedback-main-actions .u-btn:disabled,
.feedback-main-actions .u-btn[aria-disabled="true"],
.feedback-ai-inline .u-btn:disabled,
.feedback-ai-inline .u-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.feedback-google-box .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.feedback-google-box .button-row .u-btn {
  flex: 0 1 260px;
  min-width: 220px;
  justify-content: center;
}

@media (max-width: 700px) {
  .feedback-google-box .button-row .u-btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}
.feedback-main-actions .u-btn:disabled,
.feedback-main-actions .u-btn[aria-disabled="true"],
.feedback-ai-inline .u-btn:disabled,
.feedback-ai-inline .u-btn[aria-disabled="true"],
.feedback-google-box .u-btn:disabled,
.feedback-google-box .u-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}