/* ==========================================================================
   Бърз отказ от договор (чл. 52а ЗЗП) — Front-End Styles
   ========================================================================== */

:root {
  --fw-accent: #b89569;
  --fw-dark: #26221f;
  --fw-muted: #66605a;
  --fw-border: #e6dfd5;
  --fw-cream: #faf7f2;
  --fw-danger: #9b1c2e;
}

/* --- ВИДИМ БУТОН ВЪВ ФУТЪРА (ПЪЛНА ШИРИНА ПОД 4-ТЕ КОЛОНИ ПО ЧЛ. 52А ЗЗП) --- */
.fw-footer-bar-wrap {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  clear: both !important;
  padding-left: 15px;
  padding-right: 15px;
  margin-top: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.fw-footer-bar {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--fw-border);
  border-left: 3.5px solid var(--fw-accent);
  border-radius: 10px;
  padding: 12px 18px;
  box-sizing: border-box;
}

.fw-footer-bar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
}

.fw-footer-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fw-muted);
}

.fw-footer-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--fw-border);
  color: var(--fw-dark);
  font-size: 14px;
  font-weight: 700;
}

.fw-footer-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--fw-dark) !important;
  color: var(--fw-dark) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.16s ease !important;
}

.fw-footer-btn:hover {
  background: var(--fw-dark) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* --- СТРАНИЦА ЗА БЪРЗ ОТКАЗ --- */
.fw-page {
  max-width: 1120px;
  margin: 0 auto 36px;
  color: var(--fw-dark);
}

.fw-hero {
  background: linear-gradient(135deg, #fffdf9 0%, #f8f3eb 100%);
  border: 1px solid var(--fw-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.fw-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--fw-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fw-heading {
  margin: 0 0 8px !important;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: var(--fw-dark) !important;
}

.fw-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fw-muted);
  max-width: 780px;
}

.fw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.fw-card {
  background: #ffffff;
  border: 1px solid var(--fw-border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(38, 34, 31, 0.04);
}

.fw-card-title {
  margin: 0 0 4px !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--fw-dark) !important;
}

.fw-card-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--fw-muted);
}

.fw-card-sub span,
.fw-req {
  color: var(--fw-danger);
  font-weight: 700;
}

.fw-opt {
  font-weight: 400;
  color: #8a837b;
  font-size: 12px;
}

.fw-alert-error {
  background: #fdf2f4;
  border: 1px solid #ecc6cd;
  color: var(--fw-danger);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.fw-alert-error ul {
  margin: 0;
  padding-left: 18px;
}

/* Бърз избор на скорошна поръчка (за логнати клиенти) */
.fw-quick-orders {
  background: var(--fw-cream);
  border: 1px solid var(--fw-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.fw-quick-orders-lbl {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fw-dark);
}

.fw-quick-orders-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw-order-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd3c5;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  color: var(--fw-dark);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fw-order-chip:hover {
  border-color: var(--fw-accent);
  background: #fffdf9;
}

.fw-order-chip span {
  font-size: 11px;
  color: var(--fw-muted);
}

/* Полета на формата */
.fw-field {
  margin-bottom: 14px;
}

.fw-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--fw-dark);
  text-align: left;
}

.fw-field input[type="text"],
.fw-field input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 8px 13px;
  border: 1.5px solid #d9d0c4;
  border-radius: 9px;
  background: #ffffff;
  font-size: 14px;
  color: var(--fw-dark);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fw-field input:focus {
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 105, 0.16);
}

.fw-field small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fw-muted);
}

.fw-optional-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: #8a837b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fw-optional-divider::before,
.fw-optional-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: #ebe4da;
}

.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.fw-btn-submit {
  width: 100%;
  background: var(--fw-danger);
  border-color: var(--fw-danger);
  color: #ffffff !important;
  font-size: 15.5px;
  padding: 13px 20px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(155, 28, 46, 0.22);
}

.fw-btn-submit:hover {
  filter: brightness(0.92);
}

.fw-btn-primary {
  background: var(--fw-accent);
  border-color: var(--fw-accent);
  color: #ffffff !important;
}

.fw-btn-outline {
  background: #ffffff;
  border-color: #d8cfc2;
  color: var(--fw-dark) !important;
}

.fw-btn-outline:hover {
  border-color: var(--fw-accent);
  background: var(--fw-cream);
}

.fw-legal-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fw-muted);
}

/* Потвърждение (разписка) */
.fw-receipt-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1f6b44;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.fw-receipt h2 {
  margin: 0 0 8px !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
}

.fw-receipt-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--fw-muted);
}

.fw-receipt-dl {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--fw-cream);
  border: 1px solid var(--fw-border);
  border-radius: 10px;
}

.fw-receipt-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e6ddd0;
  font-size: 13.5px;
}

.fw-receipt-dl > div:last-child {
  border-bottom: 0;
}

.fw-receipt-dl dt {
  font-weight: 600;
  color: var(--fw-muted);
}

.fw-receipt-dl dd {
  margin: 0;
  text-align: right;
  color: var(--fw-dark);
}

.fw-return-box {
  background: #ffffff;
  border: 1.5px solid var(--fw-accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.fw-return-box p {
  margin: 6px 0 8px;
  color: var(--fw-muted);
}

.fw-return-addr {
  padding: 8px 12px;
  background: var(--fw-cream);
  border-radius: 7px;
  font-weight: 700;
  color: var(--fw-dark);
}

.fw-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Дясна колона — правила и изключения */
.fw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fw-sidebar h3 {
  margin: 0 0 12px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--fw-dark) !important;
}

.fw-card-exceptions {
  border-left: 4px solid var(--fw-danger);
  background: #fffdfd;
}

.fw-exc-intro {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--fw-dark);
}

.fw-rules-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3a3531;
}

.fw-rules-list li strong {
  color: var(--fw-dark);
}

.fw-custom-exc {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e6d5d8;
  font-size: 13px;
  color: var(--fw-muted);
}

@media (max-width: 991px) {
  .fw-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .fw-footer-bar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .fw-footer-bar-text {
    justify-content: center;
    font-size: 12.5px;
  }

  .fw-hero {
    padding: 18px 16px;
  }

  .fw-card {
    padding: 16px;
  }

  .fw-receipt-dl > div {
    flex-direction: column;
    gap: 2px;
  }

  .fw-receipt-dl dd {
    text-align: left;
  }
}

@media print {
  #header,
  #footer,
  .fw-sidebar,
  .fw-receipt-actions {
    display: none !important;
  }
  .fw-grid {
    display: block !important;
  }
}
