/* CPI — Experience feedback modal (rating + internal form) */

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
  min-height: 100dvh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.feedback-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.feedback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(6px);
}

.feedback-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 174, 118, 0.15);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-rating-row__label{
  font-size: 16px !important;
}

@media (max-width: 576px) {
  .feedback-modal {
    align-items: flex-start;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    padding-right: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
    padding-left: 8px;
  }
  .feedback-modal__dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  }
  .feedback-modal__body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .feedback-modal__close {
    top: 10px;
    right: 10px;
  }
}

.feedback-modal.is-open .feedback-modal__dialog {
  transform: translateY(0) scale(1);
}

.feedback-modal__dialog--wide {
  max-width: 640px;
}

.feedback-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(26, 21, 16, 0.06);
  color: #3d342c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.feedback-modal__close:hover {
  background: rgba(212, 174, 118, 0.25);
  color: #1a1510;
}

.feedback-modal__body {
  padding: 28px 28px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feedback-modal__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.feedback-modal__body--form {
  padding-bottom: 28px;
}

.feedback-step {
  display: none;
}

.feedback-step.is-active {
  display: block;
  animation: feedbackFadeIn 0.4s ease;
}

@keyframes feedbackFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-modal__title {
  font-family: 'seasons', 'Seasons', Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 500;
  color: #1a1510;
  text-align: center;
  margin: 0 0 50px;
  line-height: 1.25;
}

.feedback-modal__sub {
  text-align: center;
  font-size: 0.95rem;
  color: #5c534c;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Star rows */
.feedback-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.feedback-stars--lg {
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-stars__btn {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.2s ease;
  color: #BD945a;
}

.feedback-stars__btn:hover {
  transform: scale(1.08);
  background: transparent;
  color: #BD945a;
}

.feedback-stars__btn.is-selected,
.feedback-stars__btn.is-active {
  color: #BD945a;
}

.feedback-stars__btn svg {
  display: block;
  width: 28px;
  height: 28px;
}

.feedback-stars__btn svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.feedback-stars__btn:hover svg path {
  fill: rgba(201, 162, 39, 0.2);
}

.feedback-stars__btn.is-selected svg path,
.feedback-stars__btn.is-active svg path {
  fill: currentColor;
}

.feedback-stars--lg .feedback-stars__btn svg {
  width: 36px;
  height: 36px;
}

.feedback-star-scale {
  display: flex;
  justify-content: space-between;
  max-width: 280px;
  margin: 0 auto 24px;
  font-size: 0.8rem;
  color: #7a716a;
}

.feedback-star-scale span {
  width: 36px;
  text-align: center;
}

/* Google thanks */
.feedback-thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feedback-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #2d7d32, #1b5e20);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.feedback-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff;
}

.feedback-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(26, 21, 16, 0.15);
  border-radius: 12px;
  background: transparent;
  color: #5c534c;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.feedback-btn-secondary:hover {
  background: rgba(26, 21, 16, 0.05);
}

/* Form — Google Forms–like */
.feedback-form__intro-title {
  font-family: 'seasons', 'Seasons', Georgia, serif;
  font-size: 30px;
  color: #1a1510;
  margin: 0 0 10px;
  line-height: 1.3;
}

.feedback-form__intro-text {
  font-size: 16px !important;
  color: #5c534c;
  line-height:24px !important ;
  margin: 0 0 20px;
}

.feedback-bubble {
  background: #fff;
  border-left: 4px solid #d4ae76;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feedback-bubble__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a7a68;
  margin: 0 0 8px;
}

.feedback-bubble__text {
  font-size: 0.88rem;
  color: #4a423c;
  margin: 0;
  line-height: 1.5;
}

.feedback-field {
  margin-bottom: 30px;
}

.feedback-field__label {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 300;
  color: #ffedd3;
  margin-bottom: 8px;
}

.feedback-field__label .req {
  margin-left: 2px;
}

.feedback-field__hint {
  color: #ffedd3bc;
  font-size: 0.82rem;
}

/* Image uploader — horizontal strip (add tile + thumbnails) */
.feedback-upload {
  width: 100%;
}

.feedback-upload__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.feedback-upload__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px;
  background: #ffffff00;
  border: 1px solid #f3e484a8;
  border-radius: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.feedback-upload__add {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #ffedd3bc;
  color: #7a716a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.feedback-upload__add:hover {
  background: #ffedd3bc;
  color: #5c534c;
  transform: scale(1.02);
}

.feedback-upload__add:focus-visible {
  outline: 2px solid #d4ae76;
  outline-offset: 2px;
}

.feedback-upload__add-icon {
  display: flex;
  align-items: center;
  color: #565555 !important;
  justify-content: center;
}

.feedback-input:-webkit-autofill,
.feedback-input:-webkit-autofill:hover,
.feedback-input:-webkit-autofill:focus,
.feedback-input:-webkit-autofill:active,
.feedback-textarea:-webkit-autofill,
.feedback-textarea:-webkit-autofill:hover,
.feedback-textarea:-webkit-autofill:focus,
.feedback-textarea:-webkit-autofill:active {
  -webkit-text-fill-color: #FFEDD3 !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-out 0s, color 9999s ease-out 0s;
}

.feedback-input:-moz-autofill,
.feedback-textarea:-moz-autofill {
  box-shadow: 0 0 0 1000px transparent inset !important;
  background-color: transparent !important;
}


input[type="text"], input[type="email"], input[type="tel"] {
  color: #FFEDD3;
  font-size: 16px;
  margin-bottom: 0;
}



.feedback-upload__previews {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.feedback-upload__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f1ee;
}

.feedback-upload__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feedback-upload__thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(26, 21, 16, 0.75);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.feedback-upload__thumb-remove:hover {
  background: rgba(183, 28, 28, 0.9);
}

.feedback-input,
.feedback-textarea,
.feedback-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #f3e484a8 !important;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #FFEDD3;
  background: #ffffff00;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-input:focus,
.feedback-textarea:focus,
.feedback-select:focus {
  outline: none;
  border-color: #d4ae76;
  box-shadow: 0 0 0 3px rgba(212, 174, 118, 0.2);
}

.feedback-textarea {
  min-height: 120px;
  resize: vertical;
  color: #FFEDD3 !important;
  -webkit-text-fill-color: #FFEDD3 !important;
}

.feedback-textarea:focus,
.feedback-textarea:active {
  color: #FFEDD3 !important;
  -webkit-text-fill-color: #FFEDD3 !important;
}

.feedback-radio-group {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  gap: 18px;
}

.feedback-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f3e484a8;
  border-radius: 8px;
  background: #ffffff00;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feedback-radio:hover {
  border-color: #d4ae76;
  background: #fffdf900;
}

.feedback-radio input {
  -webkit-appearance: none;
  appearance: none;
  border: 1.8px solid rgba(243, 228, 132, 0.65);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  display: inline-grid;
  place-content: center;
  background-color: transparent !important;
  cursor: pointer;
}

.feedback-radio input:not(:checked) {
  background-color: transparent !important;
}

.feedback-radio input::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
  background: #b89850;
}

.feedback-radio input:checked {
  border-color: #b89850;
}

.feedback-radio input:checked::before {
  transform: scale(1);
}

.feedback-radio span {
  font-size: 0.92rem;
  color: #ffedd3bc;
}

.feedback-textarea::placeholder{
  color: #ffedd3bc;
  font-size: 16px;
}

.feedback-rating-row {
  padding: 14px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #ebe6df;
}

.feedback-rating-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}


.feedback-rating-row__line-label strong {
  font-weight: 700;
}

.feedback-rating-row__label {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 0.86rem ;
  color: #ffffff;
  line-height: 1.45 !important;
  margin: 0 0 10px;
  font-weight: 400;
}

.feedback-rating-row__label-lead {
  font-weight: 300;
  color: #ffedd3;
  margin-right: 5px;
}

.feedback-rating-row__label-focus {
  font-weight: 400;
  color: #ffedd3;
  font-size: 1.02em;
}

.feedback-input::placeholder{
  color: #ffedd3bc;
  font-size: 16px;
}

.feedback-form-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-btn-submit {
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #d4ae76, #b89850);
  color: #f5f0e8;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.feedback-btn-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.feedback-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.feedback-form-error {
  font-size: 0.82rem;
  color: #b71c1c;
  margin-top: 6px;
  display: none;
}

.feedback-form-error.is-visible {
  display: block;
}

@media (max-width: 540px) {
  .feedback-modal__body {
    padding: 24px 18px 20px;
  }

  .feedback-stars--lg .feedback-stars__btn svg {
    width: 32px;
    height: 32px;
  }

  .feedback-star-scale {
    max-width: 100%;
  }
}
