/**
 * Seaplast Theme AI Product Configurator & Comparison Suite Stylesheet
 * 100% Identical to reference target design: 3 white rounded cards side-by-side with comparison table, select inputs, & recommended product badge.
 */

.sp-config-section {
  position: relative;
  background: linear-gradient(180deg, #EDF4F8 0%, #F8FAFC 100%);
  padding: 64px 0 80px 0;
  overflow: hidden;
  color: #0F172A;
}

.sp-config-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

/* Card Container */
.sp-config-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 43, 72, 0.05);
  transition: all 0.35s ease;
}

.sp-config-card:hover {
  border-color: #00A8C6;
  box-shadow: 0 16px 40px rgba(0, 168, 198, 0.15);
}

/* Small Badge Subhead */
.sp-config-badge {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00A8C6;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Card Main Title */
.sp-config-card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0F2B48;
  margin: 0 0 20px 0;
  line-height: 1.25;
}

/* ═══════════════════════════════════════════════════
   CARD 1: COMPARISON TABLE
   ═══════════════════════════════════════════════════ */
.sp-compare-table-wrapper {
  overflow-x: auto;
}

.sp-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sp-compare-table thead tr {
  background: #06283D;
  color: #FFFFFF;
}

.sp-compare-table th {
  padding: 10px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sp-compare-table th.sp-th-seaplast {
  text-align: center;
  color: #00D2FF;
}

.sp-compare-table th.sp-th-others {
  text-align: center;
  color: #CBD5E1;
}

.sp-compare-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
}

.sp-compare-table td {
  padding: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
}

.sp-feat-name {
  font-weight: 700;
  color: #0F2B48;
}

.sp-cell-check, .sp-cell-cross {
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   CARD 2: SELECT DROPDOWNS & FORM
   ═══════════════════════════════════════════════════ */
.sp-config-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.sp-select-wrapper {
  position: relative;
  width: 100%;
}

.sp-config-select {
  width: 100%;
  appearance: none;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px 36px 12px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0F2B48;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.sp-config-select:focus, .sp-config-select:hover {
  border-color: #00A8C6;
  box-shadow: 0 0 0 3px rgba(0, 168, 198, 0.15);
}

.sp-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.sp-btn-config-submit {
  width: 100%;
  background: #00768C;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 6px;
}

.sp-btn-config-submit:hover {
  background: #00A8C6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 198, 0.3);
}

/* ═══════════════════════════════════════════════════
   CARD 3: RECOMMENDED PRODUCT DETAILS
   ═══════════════════════════════════════════════════ */
.sp-rec-product-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.sp-rec-img-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-rec-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sp-rec-details {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.sp-rec-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0F2B48;
  margin: 0 0 14px 0;
  line-height: 1.25;
}

.sp-rec-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-rec-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #334155;
}

.sp-btn-rec-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #00A8C6;
  background: #FFFFFF;
  color: #00768C;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sp-btn-rec-outline:hover {
  background: #00A8C6;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 168, 198, 0.25);
}

/* -------------------------------------------------------------
 * RESPONSIVE MEDIA QUERIES
 * ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .sp-config-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .sp-config-section {
    padding: 40px 0 48px 0;
  }

  .sp-rec-product-flex {
    flex-direction: column;
    text-align: center;
  }

  .sp-rec-specs-list li {
    justify-content: center;
  }
}
