/* ==============================================================================
   WICKED SOUTH AMERICA — RELOCATION OFFERS WIDGET STYLES (ELEMENTOR READY)
   Scope: #wsa-relocations-container (Zero conflicts with WP Theme/Elementor)
   Language: English
   ============================================================================== */

#wsa-relocations-container {
  --wsa-red: #c51212;
  --wsa-red-hover: #9e0e0e;
  --wsa-dark: #111827;
  --wsa-card-bg: #ffffff;
  --wsa-border: #e5e7eb;
  --wsa-border-hover: #cbd5e1;
  --wsa-text: #1f2937;
  --wsa-muted: #64748b;
  --wsa-highlight: #f8fafc;
  --wsa-radius-lg: 16px;
  --wsa-radius-md: 10px;
  --wsa-radius-sm: 6px;
  --wsa-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --wsa-shadow-hover: 0 14px 34px -4px rgba(15, 23, 42, 0.16);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wsa-text);
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 12px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

#wsa-relocations-container * {
  box-sizing: border-box;
}

/* ================= HEADER SECTION ================= */
.wsa-header {
  text-align: center;
  margin-bottom: 2.25rem;
  padding: 0 10px;
}

.wsa-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: var(--wsa-red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #fee2e2;
  margin-bottom: 0.75rem;
}

.wsa-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--wsa-red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(197, 18, 18, 0.25);
  animation: wsa-pulse 2s infinite ease-in-out;
}

@keyframes wsa-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.wsa-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--wsa-dark);
  margin: 0 0 0.65rem 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.wsa-title span {
  color: var(--wsa-red);
}

.wsa-subtitle {
  font-size: 1.05rem;
  color: var(--wsa-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 400;
}

.wsa-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: #475569;
}

.wsa-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.wsa-trust-icon {
  color: var(--wsa-red);
  font-weight: 900;
}

/* ================= GRID & CARDS ================= */
.wsa-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.wsa-card {
  background: var(--wsa-card-bg);
  border: 1px solid var(--wsa-border);
  border-radius: var(--wsa-radius-lg);
  overflow: hidden;
  box-shadow: var(--wsa-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.wsa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wsa-shadow-hover);
  border-color: var(--wsa-border-hover);
}

/* Image container */
.wsa-card-img-container {
  position: relative;
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}

.wsa-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wsa-card:hover .wsa-card-img {
  transform: scale(1.04);
}

/* Route Badge */
.wsa-route-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: calc(100% - 28px);
}

.wsa-route-arrow {
  color: #f87171;
  font-size: 0.95rem;
  font-weight: 900;
}

/* Price Badge */
.wsa-price-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--wsa-red);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--wsa-radius-md);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 4px 14px rgba(197, 18, 18, 0.45);
  text-align: right;
}

.wsa-price-badge small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================= CARD BODY ================= */
.wsa-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wsa-vehicle-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wsa-dark);
  margin: 0 0 0.85rem 0;
  line-height: 1.25;
}

.wsa-offer-description {
  margin: -0.35rem 0 0.9rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--wsa-muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Specs Grid */
.wsa-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--wsa-highlight);
  padding: 12px;
  border-radius: var(--wsa-radius-md);
  border: 1px solid #f1f5f9;
  margin-bottom: 1.1rem;
}

.wsa-spec-item {
  display: flex;
  flex-direction: column;
}

.wsa-spec-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wsa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.wsa-spec-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--wsa-dark);
}

/* ================= DATE SELECTOR ================= */
.wsa-date-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--wsa-radius-md);
  padding: 12px;
  margin-top: auto;
  margin-bottom: 1rem;
}

.wsa-date-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wsa-dark);
}

.wsa-date-limit {
  font-size: 0.75rem;
  color: var(--wsa-muted);
  font-weight: 500;
}

.wsa-date-helper-note {
  font-size: 0.77rem;
  color: #334155;
  background: #f8fafc;
  border-left: 3px solid var(--wsa-red);
  padding: 6px 10px;
  border-radius: var(--wsa-radius-sm);
  margin-bottom: 8px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.wsa-date-helper-icon {
  flex-shrink: 0;
  font-size: 0.82rem;
}

.wsa-date-rules {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--wsa-radius-sm);
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 0.74rem;
  color: var(--wsa-dark);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wsa-rule-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.wsa-rule-icon {
  font-size: 0.82rem;
  flex-shrink: 0;
}

.wsa-rule-text {
  color: #475569;
}

.wsa-rule-text strong {
  color: var(--wsa-dark);
  font-weight: 700;
}

.wsa-date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wsa-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wsa-date-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wsa-muted);
  text-transform: uppercase;
}

.wsa-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wsa-dark);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--wsa-radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.wsa-input:focus {
  border-color: var(--wsa-red);
  box-shadow: 0 0 0 3px rgba(197, 18, 18, 0.15);
}

/* Feedback & Estimated Total */
.wsa-feedback {
  display: none;
  font-size: 0.78rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: var(--wsa-radius-sm);
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.35;
}

.wsa-estimate-box {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 12px;
  border-radius: var(--wsa-radius-sm);
  margin-top: 8px;
}

.wsa-estimate-main {
  font-size: 0.86rem;
  font-weight: 800;
  color: #166534;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wsa-estimate-breakdown {
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
  margin-top: 2px;
  display: block;
}

.wsa-estimate-note {
  font-size: 0.72rem;
  color: #15803d;
  margin-top: 3px;
  display: block;
  opacity: 0.88;
}

/* ================= ACTION BUTTON ================= */
.wsa-btn-action {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--wsa-radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wsa-btn-action:not(.wsa-btn-disabled) {
  background: var(--wsa-red);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(197, 18, 18, 0.35);
  cursor: pointer;
}

.wsa-btn-action:not(.wsa-btn-disabled):hover {
  background: var(--wsa-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 18, 18, 0.45);
}

.wsa-btn-disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.9;
  border: 1px dashed #cbd5e1;
}

.wsa-btn-disabled:hover {
  background: #cbd5e1;
  color: #475569;
}

/* ================= STATES: LOADING & EMPTY ================= */
.wsa-status-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--wsa-border);
  border-radius: var(--wsa-radius-lg);
  box-shadow: var(--wsa-shadow);
  max-width: 580px;
  margin: 2rem auto;
}

.wsa-status-icon {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.wsa-status-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wsa-dark);
  margin: 0 0 0.5rem 0;
}

.wsa-status-desc {
  font-size: 0.95rem;
  color: var(--wsa-muted);
  line-height: 1.5;
  margin: 0;
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 768px) {
  .wsa-title {
    font-size: 1.75rem;
  }
  .wsa-subtitle {
    font-size: 0.95rem;
  }
  .wsa-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .wsa-card-img-container {
    height: 190px;
  }
}

@media (max-width: 580px) {
  #wsa-relocations-container {
    padding: 0;
  }
  .wsa-title {
    font-size: 1.45rem;
    word-break: break-word;
  }
  .wsa-subtitle {
    font-size: 0.88rem;
  }
  .wsa-card-body {
    padding: 1rem;
  }
  .wsa-route-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
    max-width: calc(100% - 20px);
  }
  .wsa-price-badge {
    font-size: 1.1rem;
    padding: 5px 10px;
  }
  .wsa-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
  }
  .wsa-spec-item {
    padding: 6px 8px;
  }
  .wsa-date-box {
    padding: 10px;
  }
  .wsa-date-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wsa-trust-bar {
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
  }
}

