/* =====================================================================
   SUBHA'S CAKE — TESTIMONIALS PAGE (testimonials.css)
   Design index30.css ke testimonial section + popup jaisa.
   Saare reviews dikhenge (poora text, koi line-clamp nahi).
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --sc-red: #c9000b;
  --sc-red-dark: #a60009;
  --sc-brown: #321512;
  --sc-pink: #fff1ed;
  --sc-text: #604744;
  --sc-border: #f3d6d9;
  --sc-soft: #fff0f2;
  --sc-radius: 18px;
  --sc-shadow: 0 10px 28px rgba(113, 46, 46, .10);
  --sc-font-head: 'Playfair Display', Georgia, serif;
  --sc-font-body: Poppins, Arial, sans-serif;
  --sc-section-y: clamp(42px, 6vw, 72px)
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip
}

.sc-testimonial-section,
.sc-testimonial-section *,
.sc-review-modal,
.sc-review-modal * {
  box-sizing: border-box
}

/* ---------- 2. BUTTON ---------- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 99px;
  font: 700 14px/1 var(--sc-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s
}

.sc-btn:hover {
  transform: translateY(-2px)
}

.sc-btn--primary {
  background: var(--sc-red);
  color: #fff;
  box-shadow: 0 7px 20px #c9000b35
}

.sc-btn--primary:hover {
  background: var(--sc-red-dark);
  color: #fff;
  box-shadow: 0 10px 24px #c9000b4d
}

.sc-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none
}

.sc-btn i {
  font-size: .95em
}

.sc-testimonial-section a:focus-visible,
.sc-testimonial-section button:focus-visible,
.sc-review-modal button:focus-visible {
  outline: 3px solid var(--sc-red-dark);
  outline-offset: 3px
}

/* ---------- 3. SECTION HEAD ---------- */
.sc-head {
  max-width: 720px;
  margin: 0 auto clamp(24px, 3vw, 38px);
  text-align: center
}

.sc-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--sc-red);
  font: 700 11px/1.5 var(--sc-font-body);
  letter-spacing: .22em;
  text-transform: uppercase
}

.sc-eyebrow::before,
.sc-eyebrow::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: #f58b92
}

.sc-title {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--sc-brown);
  font: 700 clamp(27px, 3.6vw, 44px)/1.18 var(--sc-font-head);
  letter-spacing: -.02em
}

.sc-title em {
  color: var(--sc-red);
  font-style: italic;
  font-weight: 600
}

.sc-desc {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--sc-text);
  font: 400 13.5px/1.7 var(--sc-font-body)
}

.sc-page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--sc-text);
  font: 500 12px/1.4 var(--sc-font-body)
}

.sc-page-breadcrumb a {
  color: var(--sc-red);
  text-decoration: none;
  font-weight: 600
}

.sc-page-breadcrumb a:hover {
  text-decoration: underline
}

.sc-page-breadcrumb span:last-child {
  color: var(--sc-brown);
  font-weight: 600
}

/* ---------- 4. BACKGROUND ---------- */
.sc-bgsection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff8f6;
  padding: var(--sc-section-y) 24px
}

.sc-bgsection::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  background: var(--sc-bg-d) center/cover no-repeat;
  filter: blur(2px);
  transform: scale(1.03);
  pointer-events: none
}

.sc-bgsection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 248, 246, .35);
  pointer-events: none
}

.sc-testimonial-section {
  --sc-bg-d: url("../images/gallery/gallery-bg-desktop.png");
  --sc-bg-m: url("../images/gallery/gallery-bg-mobile.png");
  min-height: 60vh
}

@media(max-width:768px) {
  .sc-bgsection {
    padding-left: 12px;
    padding-right: 12px
  }

  .sc-bgsection::before {
    background-image: var(--sc-bg-m)
  }

  .sc-eyebrow {
    gap: 6px;
    font-size: 9.5px;
    letter-spacing: .15em
  }

  .sc-eyebrow::before,
  .sc-eyebrow::after {
    flex-basis: 20px
  }

  .sc-desc {
    font-size: 12px;
    line-height: 1.55;
    max-width: 360px
  }

  .sc-btn {
    font-size: 13px
  }

  .sc-page-breadcrumb {
    font-size: 11px
  }
}

/* ---------- 5. TESTIMONIALS ---------- */
.sc-testimonial-container {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: auto
}

.sc-page-message {
  max-width: 700px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 12px;
  font: 600 12px/1.4 var(--sc-font-body);
  scroll-margin-top: 100px
}

.sc-page-success {
  background: #effaf2;
  border: 1px solid #b9dfc4;
  color: #26713b
}

.sc-page-error {
  background: #fff0f1;
  border: 1px solid #efb7bd;
  color: #a52b39
}

.sc-testimonial-top-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 26px
}

/* Poora review text dikhana hai, isliye cards ek hi row me barabar height ke nahi,
   balki grid me 3 column rakhe hain */
.sc-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4   , minmax(0, 1fr));
  gap: 16px;
  align-items: stretch
}

.sc-testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sc-shadow);
  transition: transform .25s, box-shadow .25s
}

.sc-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(113, 46, 46, .16)
}

.sc-testimonial-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px
}

.sc-testimonial-quote {
  color: var(--sc-red);
  font: 700 30px/1 Georgia, serif
}

.sc-testimonial-stars {
  display: flex;
  gap: 1px;
  color: #e6d5d6;
  font-size: 15px
}

.sc-testimonial-stars .is-filled {
  color: var(--sc-red)
}

.sc-testimonial-date {
  color: #9b858c;
  font: 500 10px/1.2 var(--sc-font-body);
  white-space: nowrap
}

.sc-testimonial-review {
  flex: 1 1 auto;
  margin: 13px 0;
  color: var(--sc-text);
  font: 13px/1.7 var(--sc-font-body);
  overflow-wrap: anywhere
}

.sc-testimonial-divider {
  height: 1px;
  margin-bottom: 13px;
  background: linear-gradient(90deg, transparent, rgba(201, 0, 11, .2), transparent)
}

.sc-testimonial-customer {
  display: flex;
  align-items: center;
  gap: 10px
}

.sc-testimonial-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5383f, var(--sc-red-dark));
  color: #fff;
  font: 700 12px/1 var(--sc-font-body)
}

.sc-testimonial-customer-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.sc-testimonial-customer-info strong {
  overflow: hidden;
  color: var(--sc-brown);
  font: 700 13px/1.25 var(--sc-font-body);
  text-overflow: ellipsis;
  white-space: nowrap
}

.sc-testimonial-customer-info span {
  overflow: hidden;
  color: #826c74;
  font: 11px/1.35 var(--sc-font-body);
  text-overflow: ellipsis;
  white-space: nowrap
}

.sc-testimonial-customer-info i {
  width: 12px;
  color: var(--sc-red);
  text-align: center
}

.sc-testimonial-cake-type {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sc-soft);
  color: var(--sc-red-dark);
  font: 700 11px/1.3 var(--sc-font-body)
}

.sc-testimonial-empty {
  grid-column: 1/-1;
  padding: 55px 20px;
  text-align: center;
  border-radius: var(--sc-radius);
  background: rgba(255, 255, 255, .92)
}

.sc-testimonial-empty i {
  color: var(--sc-red);
  font-size: 36px
}

.sc-testimonial-empty h3 {
  margin: 10px 0 5px;
  color: var(--sc-brown);
  font: 700 21px var(--sc-font-head)
}

.sc-testimonial-empty p {
  margin: 0;
  color: var(--sc-text);
  font: 12px/1.5 var(--sc-font-body)
}

.sc-testimonial-bottom-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  color: #a06b6e;
  font: 600 10.5px/1.3 var(--sc-font-body)
}

.sc-testimonial-bottom-note span {
  width: 42px;
  height: 1px;
  background: #e3b0b3
}

.sc-testimonial-bottom-note i {
  color: var(--sc-red);
  font-size: 9px
}

@media(max-width:1000px) {
  .sc-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }
}

@media(max-width:600px) {
  .sc-testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px
  }

  .sc-testimonial-card {
    padding: 16px;
    border-radius: 14px
  }

  .sc-testimonial-top-cta {
    margin-bottom: 18px
  }

  .sc-testimonial-review {
    font-size: 12.5px
  }
}

/* ---------- 6. TESTIMONIAL POPUP ---------- */
body.sc-review-body-lock {
  overflow: hidden !important;
  touch-action: none
}

.sc-review-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .25s, visibility .25s
}

.sc-review-modal.sc-review-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto
}

.sc-review-overlay {
  position: absolute;
  inset: 0;
  background: rgba(50, 21, 18, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px)
}

.sc-review-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(50, 21, 18, .35);
  transform: translateY(16px) scale(.98);
  opacity: 0;
  transition: transform .3s, opacity .3s;
  scrollbar-width: thin;
  scrollbar-color: #e7b4b8 transparent
}

.sc-review-active .sc-review-box {
  transform: none;
  opacity: 1
}

.sc-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #f4e3e5;
  background: linear-gradient(180deg, var(--sc-pink), #fff)
}

.sc-review-header>div:first-child {
  min-width: 0;
  flex: 1
}

.sc-review-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--sc-red);
  font: 800 9px/1 var(--sc-font-body);
  letter-spacing: .22em
}

.sc-review-header h3 {
  margin: 0;
  color: var(--sc-brown);
  font: 700 26px/1.15 var(--sc-font-head)
}

.sc-review-header p {
  margin: 7px 0 0;
  color: var(--sc-text);
  font: 12px/1.5 var(--sc-font-body)
}

.sc-review-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--sc-border);
  border-radius: 50%;
  background: #fff;
  color: var(--sc-red);
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s
}

.sc-review-close:hover {
  background: var(--sc-red);
  color: #fff;
  transform: rotate(90deg)
}

.sc-review-form {
  width: 100%;
  padding: 19px 22px 23px
}

.sc-review-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px
}

.sc-review-field {
  min-width: 0
}

/* Cake Type dropdown poori row le */
.sc-review-grid .sc-review-field:nth-child(3) {
  grid-column: 1/-1
}

.sc-review-field label,
.sc-review-rating-head label {
  display: block;
  margin-bottom: 6px;
  color: var(--sc-brown);
  font: 700 11px/1.3 var(--sc-font-body)
}

.sc-review-field label span,
.sc-review-rating-head label span {
  color: var(--sc-red)
}

.sc-review-input {
  position: relative;
  width: 100%;
  min-width: 0
}

.sc-review-input>i {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--sc-red);
  font-size: 12px;
  pointer-events: none
}

.sc-review-input input,
.sc-review-input select,
.sc-review-message-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #ecd3d6;
  border-radius: 10px;
  outline: 0;
  background: #fffafa;
  color: var(--sc-brown);
  font: 12.5px/1.4 var(--sc-font-body);
  transition: border-color .2s, box-shadow .2s
}

.sc-review-input input,
.sc-review-input select {
  min-height: 44px;
  padding: 10px 11px 10px 36px
}

.sc-review-input select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer
}

.sc-review-input input::placeholder,
.sc-review-message-field textarea::placeholder {
  color: #b49b9d
}

.sc-review-input input:focus,
.sc-review-input select:focus,
.sc-review-message-field textarea:focus {
  border-color: var(--sc-red);
  box-shadow: 0 0 0 3px rgba(201, 0, 11, .1)
}

.sc-review-rating {
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px solid #f4e3e5;
  border-radius: 12px;
  background: var(--sc-soft)
}

.sc-review-rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.sc-review-rating-head label {
  margin: 0
}

#scRatingText {
  color: var(--sc-red);
  font: 800 12px/1 var(--sc-font-body)
}

.sc-rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px
}

.sc-rating-star {
  width: 38px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e3cfd1;
  font: 28px/1 "Segoe UI Symbol", Arial, sans-serif;
  cursor: pointer;
  transition: color .16s, transform .16s
}

.sc-rating-star.is-selected {
  color: var(--sc-red)
}

.sc-rating-star:hover {
  transform: scale(1.1)
}

.sc-review-message-field {
  width: 100%;
  margin-top: 14px
}

.sc-review-message-field textarea {
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  padding: 12px 13px;
  resize: none;
  overflow-y: auto;
  line-height: 1.55
}

.sc-review-counter {
  margin-top: 5px;
  color: #a58f91;
  font: 9px/1.2 var(--sc-font-body);
  text-align: right
}

.sc-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f4e3e5
}

.sc-review-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 300px;
  color: #8a7476;
  font: 10px/1.45 var(--sc-font-body)
}

.sc-review-note i {
  flex: 0 0 auto;
  color: var(--sc-red)
}

.sc-review-submit {
  flex: 0 0 auto
}

.sc-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important
}

@media(max-width:767px) {
  .sc-review-modal {
    padding: 8px
  }

  .sc-review-box {
    max-height: calc(100dvh - 16px);
    border-radius: 16px
  }

  .sc-review-header {
    padding: 17px 15px 14px;
    gap: 10px
  }

  .sc-review-header h3 {
    font-size: 22px
  }

  .sc-review-header p {
    font-size: 10.5px
  }

  .sc-review-close {
    flex-basis: 34px;
    width: 34px;
    height: 34px
  }

  .sc-review-form {
    padding: 15px 15px 18px
  }

  .sc-review-grid {
    grid-template-columns: 1fr;
    gap: 11px
  }

  /* 16px: iPhone par focus karte hi zoom nahi hoga */
  .sc-review-input input,
  .sc-review-input select,
  .sc-review-message-field textarea {
    font-size: 16px
  }

  .sc-review-rating {
    margin-top: 13px;
    padding: 12px
  }

  .sc-rating-star {
    width: 33px;
    height: 33px;
    font-size: 24px
  }

  .sc-review-message-field textarea {
    height: 108px;
    min-height: 108px;
    max-height: 108px
  }

  .sc-review-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 11px
  }

  .sc-review-note {
    max-width: none;
    font-size: 9.5px
  }

  .sc-review-submit {
    width: 100%
  }
}

/* ---------- 7. FLOATING CONTACT ---------- */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px
}

.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  animation: floatingMove 3s ease-in-out infinite;
  transition: transform .3s, box-shadow .3s
}

.floating-call {
  background: linear-gradient(135deg, #e5383f, var(--sc-red))
}

.floating-whatsapp {
  background: #25d366;
  animation-delay: .5s
}

.floating-btn svg {
  width: 27px;
  height: 27px;
  fill: currentColor
}

@keyframes floatingMove {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.floating-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: floatingPulse 2.5s infinite
}

.floating-call::before {
  color: #e5383f
}

.floating-whatsapp::before {
  color: #25d366
}

@keyframes floatingPulse {
  0% {
    transform: scale(.9);
    opacity: .65
  }

  100% {
    transform: scale(1.35);
    opacity: 0
  }
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .23);
  animation-play-state: paused
}

.floating-btn:focus-visible {
  outline: 3px solid var(--sc-brown);
  outline-offset: 4px
}

.floating-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--sc-brown);
  color: #fff;
  font: 500 12px var(--sc-font-body);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  pointer-events: none
}

.floating-btn:hover .floating-tooltip,
.floating-btn:focus-visible .floating-tooltip {
  opacity: 1;
  visibility: visible
}

@media(max-width:768px) {
  .floating-contact {
    right: 13px;
    bottom: 22px;
    gap: 12px
  }

  .floating-btn {
    width: 48px;
    height: 48px
  }

  .floating-btn svg {
    width: 24px;
    height: 24px
  }

  .floating-tooltip {
    display: none
  }
}

@media(max-width:360px) {
  .floating-contact {
    right: 10px;
    bottom: 15px
  }

  .floating-btn {
    width: 44px;
    height: 44px
  }

  .floating-btn svg {
    width: 22px;
    height: 22px
  }
}

/* ---------- 8. REDUCED MOTION ---------- */
@media(prefers-reduced-motion:reduce) {

  .sc-btn,
  .sc-testimonial-card,
  .sc-review-box,
  .sc-review-close,
  .sc-rating-star,
  .floating-btn,
  .floating-btn::before {
    transition: none;
    animation: none
  }

  .sc-btn:hover,
  .sc-testimonial-card:hover {
    transform: none
  }
}