/* Customer sign-in & tour review modal — itravel holidays */

.auth-modal,
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.auth-modal.is-open,
.review-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
.auth-modal[hidden],
.review-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop,
.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(2px);
}

.auth-modal__panel,
.review-modal__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
}

.review-modal__panel {
  width: min(520px, 100%);
}

.auth-modal__close,
.review-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid #d8e0e8;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  color: #5c6c84;
  cursor: pointer;
}
.auth-modal__close:hover,
.review-modal__close:hover {
  background: #f4f6f8;
  color: #0d2818;
}

.auth-modal__brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.auth-modal__brand img {
  height: 28px;
  width: auto;
}
.auth-modal__brand span {
  color: #ff8a00;
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-modal h2,
.review-modal h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #0d2818;
}
.auth-modal__lead,
.review-modal__lead {
  margin: 0 0 1.25rem;
  color: #5c6c84;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-form label,
.review-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: #0d2818;
}
.auth-form input,
.review-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
}
.auth-form input:focus,
.review-form textarea:focus {
  outline: 2px solid #00a680;
  outline-offset: 1px;
  border-color: #00a680;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  background: #f4f6f8;
  padding: 0.25rem;
  border-radius: 999px;
}
.auth-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.875rem;
  color: #5c6c84;
  cursor: pointer;
}
.auth-tab--active {
  background: #fff;
  color: #0d2818;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.btn-auth-primary,
.btn-review-submit,
.btn-google-review {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn-auth-primary,
.btn-review-submit {
  background: #00a680;
  color: #fff;
  margin-top: 0.25rem;
}
.btn-auth-primary:hover,
.btn-review-submit:hover {
  background: #008f6b;
}
.btn-google-review {
  background: #fff;
  color: #0d2818;
  border: 2px solid #4285f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  text-decoration: none;
}
.btn-google-review:hover {
  background: #f0f6ff;
}
.btn-google-review svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.auth-error,
.review-error {
  margin: 0 0 0.75rem;
  color: #c62828;
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: #5c6c84;
}

.header-signed-in {
  color: #e8eef6;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-signin.is-signed-in {
  border-color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-rating-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.star-rating-input__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d2818;
}
.star-rating-input__stars {
  display: flex;
  gap: 0.35rem;
}
.star-rating-input__btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #c5d4cb;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s, color 0.15s;
}
.star-rating-input__btn:hover,
.star-rating-input__btn.is-on {
  color: #00a680;
  transform: scale(1.08);
}
.star-rating-input__hint {
  font-size: 0.8rem;
  color: #5c6c84;
  font-weight: 500;
}

.review-success {
  text-align: center;
  padding: 0.5rem 0;
}
.review-success__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f7f1;
  color: #00a680;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-success p {
  margin: 0 0 0.75rem;
  color: #5c6c84;
  font-size: 0.9rem;
  line-height: 1.5;
}
.review-preview-box {
  background: #f8faf9;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #0d2818;
}
.review-preview-box__stars {
  color: #00a680;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.review-google-note {
  font-size: 0.8rem;
  color: #5c6c84;
  margin-top: 0.5rem;
}

.review-card--user {
  border-color: #b8e6d4;
  background: linear-gradient(180deg, #f8fffc 0%, #fff 100%);
}
.review-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #008f6b;
  background: #e8f7f1;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.review-card__title {
  margin: 0 0 0.35rem;
}
.review-card__reply {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #f3f7f5;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #334155;
}

.reviews-write-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8faf9;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
}
.btn-write-review {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #0a2540;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
}
.btn-write-review:hover {
  filter: brightness(1.1);
}
.reviews-write-cta span {
  font-size: 0.875rem;
  color: #5c6c84;
}

.hidden {
  display: none !important;
}
