/* ================================================================
   BRAND MAKER — features.css
   Reviews | Packages | Estimate Calculator
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   SECTION: REVIEWS
   ──────────────────────────────────────────────────────────────── */
#reviews-section {
  background: linear-gradient(160deg, #200040 0%, #0d001a 100%);
  /* FIX: right padding increased to 8% so social float icons (position:fixed right:20px)
     don't overlap the testimonial card edge */
  padding: 100px 8% 100px 6%;
  position: relative;
  overflow: hidden;
}

#reviews-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(106,0,176,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Section header — breathing room below ── */
#reviews-section > div:first-child {
  margin-bottom: 56px !important;
}

/* ── Main layout ──
   FIX: was 400px 1fr — on screens ~800px wide the 1fr column was only ~330px
   which caused the card to look cut off. Switched to percentage-based split
   so both columns scale proportionally. ── */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ════════════════════════════════════════
   REVIEW SUBMIT FORM (LEFT)
   ════════════════════════════════════════ */
.review-form-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  /* FIX: ensure form never overflows its column */
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.review-form-title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.review-form-sub {
  font-size: 0.8rem;
  color: #C4AEDE;
  margin-bottom: 24px;
  line-height: 1.6;
}

.review-form-wrap .form-group {
  margin-bottom: 16px;
}
.review-form-wrap .form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #C4AEDE;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.review-form-wrap input[type="text"],
.review-form-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  font-family: inherit;
}
.review-form-wrap textarea { min-height: 90px; }
.review-form-wrap input[type="text"]::placeholder,
.review-form-wrap textarea::placeholder {
  color: rgba(196, 174, 222, 0.45);
}
.review-form-wrap input[type="text"]:focus,
.review-form-wrap textarea:focus {
  border-color: rgba(255, 122, 0, 0.5);
  background: rgba(255, 122, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.rating-stars-input {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}
.rating-stars-input label {
  font-size: 1.6rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  font-weight: normal;
}
.rating-stars-input input[type="radio"] { display: none; }
.rating-stars-input label:hover,
.rating-stars-input label.selected {
  color: #FFB800;
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.65);
  transform: scale(1.2);
}

.review-img-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s;
  font-size: 0.8rem;
  color: #C4AEDE;
  width: 100%;
  box-sizing: border-box;
}
.review-img-upload:hover {
  border-color: rgba(255, 122, 0, 0.4);
  background: rgba(255, 122, 0, 0.04);
  color: #FF7A00;
}
.review-img-upload i { font-size: 1rem; }
.review-img-upload input { display: none; }
#review-img-name { font-size: 0.72rem; color: #C4AEDE; margin-top: 4px; }

/* ════════════════════════════════════════
   TESTIMONIAL SLIDER BOX (RIGHT)
   ════════════════════════════════════════ */
.reviews-slider-box {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* FIX: critical — without min-width:0 a grid child won't shrink below its
     content size, causing overflow past the column boundary */
  min-width: 0;
  width: 100%;
}

.reviews-slider-wrap {
  position: relative;
  /* FIX: overflow:hidden clips the card to its column — this was missing
     proper containment when the column was too narrow */
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
}

.reviews-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  /* FIX: ensure track never causes horizontal scroll */
  width: 100%;
}

/* FIX: each card must be exactly 100% of the wrapper, not the viewport */
.review-card {
  min-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.review-card-inner {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 20px;
  padding: 40px 36px 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.07);
  /* FIX: no fixed min-height — was forcing card to fixed size regardless of content */
  box-sizing: border-box;
  width: 100%;
}
.review-card-inner:hover {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 16px 56px rgba(255, 122, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.09);
}

.review-card-inner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,122,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.review-quote-icon {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 122, 0, 0.09);
  font-family: Georgia, serif;
  animation: quoteFloat 4s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes quoteFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.09; }
  50%       { transform: translateY(-6px) rotate(0deg); opacity: 0.18; }
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.review-stars span {
  color: #FFB800;
  font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.55);
}
.review-stars span.empty { color: rgba(255, 255, 255, 0.15); text-shadow: none; }

/* FIX: removed -webkit-line-clamp / overflow:hidden / -webkit-box-orient
   Those three together hard-cut the text mid-sentence (the original bug).
   Text now wraps naturally to card height. */
.review-text {
  font-size: 1rem;
  line-height: 1.85;
  color: #e8dff7;
  font-style: italic;
  margin-bottom: 0;
  flex: 1;
  /* FIX: word-break ensures long words don't escape the card boundary */
  word-break: break-word;
  overflow-wrap: break-word;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 24px;
}
.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 122, 0, 0.35);
  background: linear-gradient(135deg, #6A00B0, #FF7A00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.18);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-author-name {
  font-weight: 700;
  font-size: 0.97rem;
  color: #fff;
  /* FIX: long names don't overflow */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-author-biz {
  font-size: 0.78rem;
  color: #C4AEDE;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Slider controls ── */
.reviews-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.reviews-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  flex-shrink: 0;
}
.reviews-dot.active {
  background: #FF7A00;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.65);
  width: 24px;
  border-radius: 4px;
}

/* ────────────────────────────────────────────────────────────────
   SECTION: PACKAGES
   ──────────────────────────────────────────────────────────────── */
#packages {
  background: linear-gradient(160deg, #0d001a 0%, #1a0030 100%);
  padding: 100px 5%;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 60px auto 0;
  align-items: stretch;
}

.package-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,122,0,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.38s ease;
}
.package-card:hover { transform: translateY(-10px); border-color: rgba(255,122,0,0.45); box-shadow: 0 24px 64px rgba(255,122,0,0.15), 0 0 0 1px rgba(255,122,0,0.1); }
.package-card:hover::before { opacity: 1; }
.package-card.featured { border-color: rgba(255, 122, 0, 0.5); background: rgba(255, 122, 0, 0.06); box-shadow: 0 0 0 1px rgba(255,122,0,0.2), 0 20px 60px rgba(255,122,0,0.12); }
.package-card.featured::before { opacity: 1; }
.package-card.featured::after { content: ''; position: absolute; inset: -1px; border-radius: 23px; background: linear-gradient(135deg, #FF7A00, #6A00B0, #FF7A00); background-size: 200% 200%; animation: borderGlow 3s linear infinite; z-index: -1; }
@keyframes borderGlow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.package-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #FF7A00, #E65000); color: #fff; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 18px; border-radius: 0 0 12px 12px; white-space: nowrap; box-shadow: 0 4px 16px rgba(255,122,0,0.45); }
.package-icon { font-size: 2.6rem; margin-bottom: 16px; display: block; }
.package-name { font-family: 'PT Serif', Georgia, serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.package-price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 24px; }
.package-price .currency { font-size: 1.2rem; font-weight: 600; color: #FF7A00; }
.package-price .amount { font-family: 'PT Serif', Georgia, serif; font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.package-price .per { font-size: 0.8rem; color: #C4AEDE; align-self: flex-end; padding-bottom: 6px; }
.package-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,122,0,0.3), transparent); margin-bottom: 22px; }
.package-features { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.package-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: #e0d4f7; line-height: 1.5; }
.package-features li .feat-check { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: rgba(255,122,0,0.18); border: 1px solid rgba(255,122,0,0.35); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.package-features li .feat-check i { font-size: 0.6rem; color: #FF7A00; }
.package-cta { width: 100%; padding: 14px 24px; border-radius: 99px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.35s ease; border: none; letter-spacing: 0.03em; position: relative; z-index: 1; }
.package-cta.primary-cta { background: linear-gradient(135deg, #FF7A00, #E65000); color: #fff; box-shadow: 0 6px 24px rgba(255,122,0,0.35); }
.package-cta.primary-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 36px rgba(255,122,0,0.5); }
.package-cta.outline-cta { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.package-cta.outline-cta:hover { background: rgba(255,122,0,0.12); border-color: rgba(255,122,0,0.5); transform: translateY(-3px); }

/* ────────────────────────────────────────────────────────────────
   SECTION: CUSTOM ESTIMATE
   ──────────────────────────────────────────────────────────────── */
#estimate { background: linear-gradient(160deg, #1a0030 0%, #0d001a 100%); padding: 100px 5%; }
.estimate-wrap { max-width: 920px; margin: 0 auto; }
.estimate-selected-pkg { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,122,0,0.1); border: 1px solid rgba(255,122,0,0.3); border-radius: 99px; padding: 8px 20px; font-size: 0.82rem; font-weight: 600; color: #FF9A3C; margin-bottom: 32px; }
.estimate-selected-pkg i { font-size: 0.9rem; }
.estimate-glass { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 40px 36px; backdrop-filter: blur(20px); margin-bottom: 28px; }
.estimate-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.estimate-service-row { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color 0.3s, background 0.3s; }
.estimate-service-row.has-qty { border-color: rgba(255,122,0,0.35); background: rgba(255,122,0,0.05); }
.est-svc-left { flex: 1; min-width: 0; }
.est-svc-name { font-weight: 600; font-size: 0.88rem; color: #fff; margin-bottom: 3px; }
.est-svc-price { font-size: 0.74rem; color: #C4AEDE; }
.est-qty-ctrl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.est-qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,122,0,0.4); background: rgba(255,122,0,0.08); color: #FF7A00; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; line-height: 1; }
.est-qty-btn:hover { background: rgba(255,122,0,0.22); border-color: #FF7A00; transform: scale(1.1); }
.est-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.est-qty-num { min-width: 22px; text-align: center; font-weight: 700; font-size: 1rem; color: #fff; }
.estimate-totals { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.estimate-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: #C4AEDE; }
.estimate-row.subtotal { color: #e0d4f7; }
.estimate-row.gst-row { cursor: pointer; user-select: none; }
.estimate-row.grand-total { border-top: 1px solid rgba(255,122,0,0.25); padding-top: 14px; margin-top: 4px; font-size: 1.15rem; font-weight: 700; color: #fff; }
.estimate-row.grand-total .est-total-val { color: #FF7A00; font-family: 'PT Serif', Georgia, serif; font-size: 1.5rem; }
.gst-toggle-wrap { display: flex; align-items: center; gap: 10px; }
.gst-switch { position: relative; width: 38px; height: 20px; flex-shrink: 0; }
.gst-switch input { display: none; }
.gst-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.12); border-radius: 99px; cursor: pointer; transition: background 0.3s; }
.gst-slider::before { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform 0.3s; }
.gst-switch input:checked + .gst-slider { background: #FF7A00; }
.gst-switch input:checked + .gst-slider::before { transform: translateX(18px); }
.estimate-wa-btn { width: 100%; padding: 16px 28px; border-radius: 99px; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 12px; transition: all 0.35s ease; box-shadow: 0 8px 28px rgba(37,211,102,0.3); letter-spacing: 0.02em; }
.estimate-wa-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 40px rgba(37,211,102,0.45); }
.estimate-wa-btn i { font-size: 1.25rem; }

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────────── */

/* Large laptop (≤1280px) */
@media (max-width: 1280px) {
  .reviews-layout {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 30px;
    max-width: 1000px;
  }
}

/* Laptop (≤1080px) */
@media (max-width: 1080px) {
  .reviews-layout {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 26px;
    max-width: 880px;
  }
}

/* Tablet landscape / smaller laptop (≤920px): stack, slider on top */
@media (max-width: 920px) {
  #reviews-section {
    padding: 80px 5%;
  }
  .reviews-layout {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 28px;
  }
  .review-form-wrap { order: 2; }
  .reviews-slider-box { order: 1; }
  .packages-grid { grid-template-columns: 1fr 1fr; }
  .package-card.featured { order: -1; }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
  #reviews-section { padding: 70px 5%; }
  #packages, #estimate { padding: 70px 5%; }
  .reviews-layout { max-width: 560px; gap: 24px; }
  .review-card-inner { padding: 32px 28px 28px; }
  .review-text { font-size: 0.95rem; line-height: 1.8; }
  .review-form-wrap { padding: 28px 24px; }
  .packages-grid { grid-template-columns: 1fr; max-width: 420px; }
  .package-card.featured { order: 0; }
  .estimate-glass { padding: 28px 20px; }
  .estimate-services-grid { grid-template-columns: 1fr; }
}

/* Large mobile (≤600px) */
@media (max-width: 600px) {
  #reviews-section { padding: 60px 5%; }
  .reviews-layout { max-width: 100%; gap: 20px; }
  .review-card-inner { padding: 28px 22px 24px; }
  .review-text { font-size: 0.92rem; line-height: 1.75; }
  .review-quote-icon { font-size: 3.6rem; }
  .review-form-wrap { padding: 24px 20px; }
  .review-form-title { font-size: 1.15rem; }
  .reviews-slider-controls { margin-top: 18px; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  #reviews-section { padding: 50px 4%; }
  .review-card-inner { padding: 24px 18px 20px; }
  .review-text { font-size: 0.87rem; line-height: 1.7; }
  .review-stars span { font-size: 0.95rem; }
  .review-avatar { width: 46px; height: 46px; font-size: 1.1rem; }
  .review-author { gap: 12px; padding-top: 18px; margin-top: 18px; }
  .review-form-wrap { padding: 22px 16px; }
  .review-form-title { font-size: 1.1rem; }
  .review-form-wrap input[type="text"],
  .review-form-wrap textarea { padding: 10px 12px; font-size: 0.85rem; }
  .package-card { padding: 28px 20px 24px; }
  .estimate-glass { padding: 22px 16px; }
  .est-svc-name { font-size: 0.82rem; }
  .estimate-row.grand-total .est-total-val { font-size: 1.3rem; }
  .estimate-wa-btn { font-size: 0.9rem; padding: 14px 20px; }
}

/* Extra small (≤360px) */
@media (max-width: 360px) {
  #reviews-section { padding: 44px 4%; }
  .review-card-inner { padding: 20px 16px 18px; }
  .review-text { font-size: 0.83rem; line-height: 1.6; }
  .reviews-slider-controls { gap: 10px; }
  .reviews-dot.active { width: 20px; }
  .package-price .amount { font-size: 2.2rem; }
}