/* =========================================================
   SA QUOTE & CHECKOUT — ULTRA-PREMIUM STYLES
   SA Home Comfort Furniture
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================================
   FLOATING CART BUTTON
   ========================================================= */
.saqc-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f5a623 0%, #ffb945 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 12px 32px rgba(245,166,35,0.5);
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.saqc-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 18px 40px rgba(245,166,35,0.65);
}
.saqc-float svg {
  width: 26px;
  height: 26px;
  stroke: #1a1a1a;
}
.saqc-float-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #1a1a1a;
  color: #f5a623;
  font-size: 12px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* =========================================================
   MODAL
   ========================================================= */
.saqc-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
}
.saqc-modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 44px 40px;
  position: relative;
  animation: saqcUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
@keyframes saqcUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.saqc-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  line-height: 1;
  z-index: 2;
  transition: all 0.25s;
}
.saqc-close:hover { color: #1a1a1a; transform: rotate(90deg); }

.saqc-modal-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}
.saqc-sub {
  color: #777;
  font-size: 14px;
  margin: 0 0 28px;
  font-family: 'Inter', sans-serif;
}
.saqc-sub strong {
  color: #f5a623;
  font-size: 16px;
  font-weight: 800;
}

/* =========================================================
   CHOICE BUTTONS
   ========================================================= */
.saqc-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.saqc-choice {
  background: #fbf7f0;
  border: 2px solid #f0e9dd;
  border-radius: 16px;
  padding: 28px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.35s;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.saqc-choice:hover {
  border-color: #f5a623;
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(245,166,35,0.18);
}
.saqc-choice-icon { font-size: 36px; line-height: 1; }
.saqc-choice-title {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}
.saqc-choice-sub {
  font-size: 11.5px;
  color: #8a8a8a;
  line-height: 1.4;
}

/* =========================================================
   FORM
   ========================================================= */
.saqc-modal-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.saqc-modal-box input,
.saqc-modal-box select,
.saqc-modal-box textarea {
  padding: 14px 18px;
  border: 1.5px solid #efe5d3;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.25s;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  color: #2c2c2c;
}
.saqc-modal-box input:focus,
.saqc-modal-box select:focus,
.saqc-modal-box textarea:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 4px rgba(245,166,35,0.12);
}
.saqc-modal-box textarea { resize: vertical; min-height: 80px; }

.saqc-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.saqc-btn:hover {
  background: linear-gradient(135deg, #f5a623 0%, #ffb945 100%);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245,166,35,0.45);
}

.saqc-msg {
  font-size: 13px;
  margin: 8px 0 0;
  text-align: center;
  min-height: 18px;
  font-family: 'Inter', sans-serif;
}
.saqc-msg.success { color: #0a8f3c; font-weight: 600; }
.saqc-msg.error { color: #c0392b; font-weight: 600; }

/* =========================================================
   QUOTE CART SUMMARY
   ========================================================= */
.saqc-cart-summary {
  background: #fbf7f0;
  border: 1px solid #f0e9dd;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  max-height: 320px;
  overflow-y: auto;
}
.saqc-cart-summary h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin: 0 0 16px;
  font-weight: 800;
}
.saqc-cart-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #efe5d3;
}
.saqc-cart-row:last-of-type { border-bottom: none; }
.saqc-cart-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  flex-shrink: 0;
}
.saqc-cart-info { flex-grow: 1; min-width: 0; }
.saqc-cart-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}
.saqc-cart-meta {
  font-size: 11.5px;
  color: #999;
  font-family: 'Inter', sans-serif;
}
.saqc-cart-price {
  font-size: 14px;
  font-weight: 800;
  color: #f5a623;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.saqc-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 2px solid #f5a623;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}
.saqc-cart-total strong {
  color: #f5a623;
  font-size: 22px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* =========================================================
   BANK DETAILS BLOCK (THANK YOU PAGE)
   ========================================================= */
.saqc-bank {
  background: #fbf7f0;
  border: 2px dashed #f5a623;
  border-radius: 18px;
  padding: 36px;
  margin: 30px 0;
  font-family: 'Inter', sans-serif;
}
.saqc-bank h2 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: #1a1a1a;
  font-weight: 600;
}
.saqc-bank h3 {
  margin: 28px 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #1a1a1a;
  font-weight: 600;
}
.saqc-bank p {
  color: #666;
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}
.saqc-bank-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.saqc-bank-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  background: #fff;
  border-bottom: 1px solid #f0e9dd;
  width: 40%;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
}
.saqc-bank-table td {
  padding: 14px 18px;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 700;
  background: #fff;
  border-bottom: 1px solid #f0e9dd;
  font-family: 'Inter', sans-serif;
}
.saqc-bank-table tr:last-child th,
.saqc-bank-table tr:last-child td { border-bottom: none; }

#saqc-slip-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
}
#saqc-slip-form input[type="file"] {
  padding: 14px;
  background: #fff;
  border: 1.5px dashed #f5a623;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
#saqc-slip-form input[type="file"]::file-selector-button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}
#saqc-slip-form input[type="file"]::file-selector-button:hover {
  background: #f5a623;
  color: #1a1a1a;
}

/* =========================================================
   THANK YOU OVERLAY
   ========================================================= */
.saqc-thanks {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: saqcFadeIn 0.4s ease;
  font-family: 'Inter', sans-serif;
}
@keyframes saqcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.saqc-thanks-box {
  background: #fff;
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  padding: 60px 44px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: saqcPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes saqcPop {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.saqc-thanks-check {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #f5a623 0%, #ffb945 100%);
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  line-height: 1;
  box-shadow: 0 15px 40px rgba(245,166,35,0.5);
  animation: saqcPulse 1.4s ease-in-out infinite;
}
@keyframes saqcPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.saqc-thanks-box h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  margin: 0 0 14px;
  color: #1a1a1a;
  font-weight: 600;
}
.saqc-thanks-box p {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 12px;
  font-family: 'Inter', sans-serif;
}
.saqc-thanks-sub {
  font-size: 13px;
  color: #999;
  margin: 28px 0 28px !important;
}
.saqc-thanks-sub strong {
  color: #f5a623;
  font-size: 18px;
  font-weight: 800;
}
.saqc-thanks-btn {
  display: inline-block !important;
  text-decoration: none !important;
  margin-top: 6px;
}

/* =========================================================
   CART PAGE — DUAL BUTTONS
   ========================================================= */
.woocommerce-cart .wc-proceed-to-checkout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 18px 32px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  transition: all 0.3s !important;
  text-align: center !important;
  display: block !important;
  margin-bottom: 0 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: linear-gradient(135deg, #f5a623 0%, #ffb945 100%) !important;
  color: #1a1a1a !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245,166,35,0.45);
}

.saqc-cart-quote-btn {
  background: transparent;
  color: #f5a623;
  border: 2px solid #f5a623;
  border-radius: 50px;
  padding: 16px 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.saqc-cart-quote-btn:hover {
  background: #f5a623;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245,166,35,0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 700px) {
  .saqc-choices { grid-template-columns: 1fr; }
  .saqc-modal-box { padding: 32px 24px; max-height: 92vh; }
  .saqc-modal-box h3 { font-size: 22px; }
  .saqc-float { bottom: 18px; right: 18px; width: 56px; height: 56px; }
  .saqc-float svg { width: 22px; height: 22px; }
  .saqc-float-count { width: 22px; height: 22px; font-size: 11px; }
  .saqc-bank { padding: 24px; }
  .saqc-bank h2 { font-size: 22px; }
  .saqc-bank h3 { font-size: 18px; }
  .saqc-thanks-box { padding: 44px 28px; }
  .saqc-thanks-box h2 { font-size: 26px; }
  .saqc-thanks-check { width: 72px; height: 72px; font-size: 38px; }
}