/* ============================================
   Buy For Me Page Styles
   ============================================ */

/* Hero Section */
.bfm-hero {
  padding: 56px 0;
  background: #fff;
}

.bfm-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.bfm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  background: #f0f5ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  color: #2563c8;
}

.bfm-hero__badge span:first-child {
  font-size: 15px;
}

.bfm-hero__content h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  color: #1a2d6e;
  margin-bottom: 18px;
}

.bfm-hero__content > p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 500px;
}

.bfm-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bfm-hero__stats {
  display: flex;
  gap: 28px;
}

.bfm-hero__stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #2563c8;
}

.bfm-hero__stat-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Hero Visual / Order Card */
.bfm-hero__visual {
  border-radius: 24px;
  background: linear-gradient(160deg, #f0f5ff 0%, #c8deff 100%);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.bfm-hero__decor {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 36px;
  opacity: 0.3;
}

.bfm-order-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(37, 99, 200, 0.15);
  overflow: hidden;
  border: 1px solid #e8eef8;
}

.bfm-order-card__header {
  background: #1a2d6e;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bfm-order-card__title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.bfm-order-card__status {
  background: #5ba3d9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}

.bfm-order-card__body {
  padding: 16px 20px;
}

.bfm-order-card__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8eef8;
}

.bfm-order-card__item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f0f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.bfm-order-card__item-info {
  flex: 1;
}

.bfm-order-card__item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a2d6e;
}

.bfm-order-card__item-meta {
  font-size: 11px;
  color: #64748b;
}

.bfm-order-card__item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a2d6e;
}

.bfm-order-card__buyer {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bfm-order-card__buyer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563c8, #5ba3d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.bfm-order-card__buyer-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a2d6e;
}

.bfm-order-card__buyer-rating {
  font-size: 11px;
  color: #5ba3d9;
}

.bfm-order-card__commission {
  margin-left: auto;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
}

.bfm-order-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.bfm-order-card__btn {
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bfm-order-card__btn--primary {
  flex: 1;
  border: none;
  background: #2563c8;
  color: #fff;
}

.bfm-order-card__btn--secondary {
  padding: 9px 14px;
  border: 1px solid #e8eef8;
  background: transparent;
  color: #64748b;
}

/* FAQ Section */
.bfm-faq {
  padding: 72px 0;
  background: #1a2d6e;
}

.bfm-faq h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.bfm-faq__subtitle {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 40px;
  font-size: 14px;
}

.bfm-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bfm-faq__item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bfm-faq__question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.bfm-faq__icon {
  color: #5ba3d9;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bfm-faq__item.is-open .bfm-faq__icon {
  transform: rotate(45deg);
}

.bfm-faq__answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.bfm-faq__item.is-open .bfm-faq__answer {
  display: block;
}

/* Comparison Section */
.bfm-compare {
  padding: 72px 0;
  background: #fff;
}

.bfm-compare h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #1a2d6e;
  text-align: center;
  margin-bottom: 8px;
}

.bfm-compare__subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 40px;
  font-size: 14px;
}

.bfm-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.bfm-compare__card {
  border-radius: 20px;
  overflow: hidden;
}

.bfm-compare__card--navy {
  border: 2px solid rgba(26, 45, 110, 0.13);
}

.bfm-compare__card--blue {
  border: 2px solid rgba(37, 99, 200, 0.13);
}

.bfm-compare__header {
  background: #1a2d6e;
  padding: 24px 28px;
}

.bfm-compare__header--blue {
  background: #2563c8;
}

.bfm-compare__icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.bfm-compare__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.bfm-compare__body {
  padding: 24px 28px;
}

.bfm-compare__section-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.bfm-compare__section-title:not(:first-child) {
  margin-top: 16px;
}

.bfm-compare__item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.bfm-compare__item::before {
  flex-shrink: 0;
  font-size: 14px;
}

.bfm-compare__item--pro::before {
  content: '✓';
  color: #22c55e;
}

.bfm-compare__item--con::before {
  content: '×';
  color: #ef4444;
}

.bfm-compare__btn {
  display: block;
  margin-top: 20px;
  padding: 11px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}

.bfm-compare__btn--navy {
  background: #1a2d6e;
}

.bfm-compare__btn--blue {
  background: #2563c8;
}

/* Visual variations for purple */
.hto-card__visual--purple {
  background: linear-gradient(135deg, #f0f5ff 0%, #e0ccff 100%);
}

/* Screen content overrides for Buy For Me */
.bfm-screen__title {
  font-size: 11px;
  font-weight: 700;
  color: #1a2d6e;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.bfm-screen__field-label {
  font-size: 9px;
  color: #64748b;
  margin-bottom: 4px;
}

.bfm-screen__field {
  height: 22px;
  border-radius: 4px;
  border: 1px solid #e8eef8;
  padding-left: 8px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 10px;
  color: #1a2d6e;
}

.bfm-screen__field--active {
  border: 1.5px solid #2563c8;
  background: #f0f5ff;
}

.bfm-screen__row {
  display: flex;
  gap: 6px;
}

.bfm-screen__row > div {
  flex: 1;
}

.bfm-screen__button {
  height: 26px;
  border-radius: 4px;
  background: #2563c8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
}

/* Buyer list screen */
.bfm-buyer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef8;
}

.bfm-buyer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.bfm-buyer-info {
  flex: 1;
}

.bfm-buyer-name {
  font-size: 11px;
  font-weight: 600;
  color: #1a2d6e;
}

.bfm-buyer-rating {
  font-size: 9px;
  color: #5ba3d9;
}

.bfm-buyer-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e8eef8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfm-buyer-radio--active {
  border-color: #2563c8;
}

.bfm-buyer-radio__inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563c8;
}

/* Quote screen */
.bfm-quote-box {
  background: #f0f5ff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.bfm-quote-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 5px;
}

.bfm-quote-row span:first-child {
  color: #64748b;
}

.bfm-quote-row span:last-child {
  font-weight: 600;
  color: #1a2d6e;
}

.bfm-quote-total {
  padding-top: 6px;
  border-top: 1px solid #e8eef8;
  font-size: 11px;
}

.bfm-quote-total span:first-child {
  font-weight: 700;
  color: #1a2d6e;
}

.bfm-quote-total span:last-child {
  font-weight: 800;
  color: #2563c8;
}

.bfm-quote-actions {
  display: flex;
  gap: 6px;
}

.bfm-quote-btn {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.bfm-quote-btn--accept {
  background: #22c55e;
  color: #fff;
}

.bfm-quote-btn--decline {
  border: 1px solid #e8eef8;
  color: #64748b;
}

/* Payment screen */
.bfm-payment-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.bfm-payment-tab {
  flex: 1;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid #e8eef8;
  background: #fff;
  color: #64748b;
}

.bfm-payment-tab--active {
  border-color: #2563c8;
  background: #f0f5ff;
  font-weight: 700;
  color: #2563c8;
}

.bfm-payment-info {
  background: #f0f5ff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.bfm-payment-label {
  font-size: 9px;
  color: #64748b;
  margin-bottom: 3px;
}

.bfm-payment-value {
  font-size: 11px;
  color: #1a2d6e;
  font-weight: 600;
}

.bfm-payment-total {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bfm-payment-total span:last-child {
  color: #2563c8;
}

.bfm-payment-btn {
  height: 28px;
  border-radius: 6px;
  background: #0070ba;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

/* Tracking screen */
.bfm-tracking-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.bfm-tracking-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.bfm-tracking-dot--done {
  background: #22c55e;
  color: #fff;
}

.bfm-tracking-dot--active {
  background: #2563c8;
  color: #fff;
}

.bfm-tracking-dot--pending {
  background: #e8eef8;
  color: #64748b;
}

.bfm-tracking-label {
  font-size: 10px;
}

.bfm-tracking-label--done {
  color: #1a2d6e;
}

.bfm-tracking-label--active {
  color: #2563c8;
  font-weight: 600;
}

.bfm-tracking-label--pending {
  color: #64748b;
}

/* Items list screen */
.bfm-items-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #e8eef8;
}

.bfm-items-emoji {
  font-size: 18px;
}

.bfm-items-name {
  flex: 1;
  font-size: 10px;
  color: #1a2d6e;
}

.bfm-items-qty {
  font-size: 10px;
  color: #64748b;
}

.bfm-items-price {
  font-size: 10px;
  font-weight: 700;
  color: #1a2d6e;
}

.bfm-items-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
}

.bfm-items-total span:first-child {
  color: #64748b;
}

.bfm-items-total span:last-child {
  font-weight: 700;
  color: #1a2d6e;
}

/* Responsive */
@media (max-width: 992px) {
  .bfm-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .bfm-hero__visual {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .bfm-faq__grid {
    grid-template-columns: 1fr;
  }
  
  .bfm-compare__grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .bfm-hero {
    padding: 40px 0;
  }
  
  .bfm-hero__stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .bfm-hero__visual {
    padding: 24px 20px;
  }
  
  .bfm-order-card__header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .bfm-order-card__buyer {
    flex-wrap: wrap;
  }
  
  .bfm-order-card__commission {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .bfm-faq {
    padding: 48px 0;
  }
  
  .bfm-compare {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .bfm-hero__actions {
    flex-direction: column;
  }
  
  .bfm-hero__actions .hsr-btn {
    width: 100%;
    text-align: center;
  }
  
  .bfm-order-card__actions {
    flex-direction: column;
  }
  
  .bfm-order-card__btn--secondary {
    text-align: center;
  }
}
