/* ============================================
   CEK TARIF PLUGIN STYLES - SCOPED VERSION
   ============================================ */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Quicksand:wght@500;600;700&display=swap");

/* ============================================
   SCOPED RESET - HANYA UNTUK PLUGIN
   ============================================ */
.cek-tarif-wrapper,
.cek-tarif-wrapper * {
  box-sizing: border-box;
}

.cek-tarif-wrapper {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: #2d3748;
  line-height: 1.6;
  background: transparent;
}

/* ============================================
   CONTAINER
   ============================================ */
.cek-tarif-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ============================================
   FORM SECTION
   ============================================ */
.cek-tarif-wrapper .form-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(190, 49, 49, 0.12);
  margin-bottom: 40px;
}

/* Form Header */
.cek-tarif-wrapper .form-header {
  text-align: center;
  margin-bottom: 32px;
}

.cek-tarif-wrapper .form-title {
  font-family: "Quicksand", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
  margin-top: 0;
}

.cek-tarif-wrapper .form-description {
  font-size: 16px;
  color: #718096;
  margin: 0;
}

/* ============================================
   FORM GRID
   ============================================ */
.cek-tarif-wrapper .form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.cek-tarif-wrapper .form-grid-mobil {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.cek-tarif-wrapper .form-group {
  display: flex;
  flex-direction: column;
}

.cek-tarif-wrapper label {
  font-size: 12px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* ============================================
   SELECT STYLING
   ============================================ */
.cek-tarif-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 14px 40px 14px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  background: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  width: 100%;
}

.cek-tarif-wrapper select:hover {
  border-color: #a0aec0;
}

.cek-tarif-wrapper select:focus {
  outline: none;
  border-color: #be3131;
  box-shadow: 0 0 0 3px rgba(190, 49, 49, 0.1);
}

.cek-tarif-wrapper select:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
  border-color: #e2e8f0;
  opacity: 0.6;
}

.cek-tarif-wrapper select:disabled:hover {
  border-color: #e2e8f0;
}

/* ============================================
   BUTTON SUBMIT
   ============================================ */
.cek-tarif-wrapper .btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: #be3131;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.cek-tarif-wrapper .btn-submit:hover {
  background: #a02828;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(190, 49, 49, 0.3);
}

.cek-tarif-wrapper .btn-submit:active {
  transform: translateY(0);
}

.cek-tarif-wrapper .btn-submit:disabled {
  background: #cbd5e0;
  color: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cek-tarif-wrapper .btn-submit:disabled:hover {
  background: #cbd5e0;
  transform: none;
  box-shadow: none;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.cek-tarif-wrapper .results-section {
  padding: 60px 0;
}

.cek-tarif-wrapper .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.cek-tarif-wrapper .section-title {
  font-family: "Quicksand", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  margin-top: 0;
}

/* Route badge */
.cek-tarif-wrapper .route-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  font-weight: 600;
  font-family: "Quicksand", sans-serif;
  color: #be3131;
  margin-bottom: 16px;
}

.cek-tarif-wrapper .route-arrow {
  color: #be3131;
  font-weight: 700;
}

.cek-tarif-wrapper .results-count {
  display: inline-block;
  background: #be3131;
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

/* ============================================
   TARIF GRID
   ============================================ */
.cek-tarif-wrapper .tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.cek-tarif-wrapper .tarif-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.cek-tarif-wrapper .tarif-card:hover {
  border-color: rgba(190, 49, 49, 0.2);
  box-shadow: 0 12px 40px rgba(190, 49, 49, 0.15);
  transform: translateY(-4px);
}

/* ============================================
   TARIF HEADER
   ============================================ */
.cek-tarif-wrapper .tarif-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f7fafc;
}

.cek-tarif-wrapper .moda-label {
  font-size: 12px;
  font-weight: 600;
  color: #be3131;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-family: "Quicksand", sans-serif;
}

.cek-tarif-wrapper .moda-trans {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
  margin-top: 0;
  font-family: "Quicksand", sans-serif;
}

.cek-tarif-wrapper .price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cek-tarif-wrapper .price-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.cek-tarif-wrapper .price-value {
  font-size: 32px;
  font-weight: 800;
  color: #be3131;
  letter-spacing: -0.02em;
  font-family: "Quicksand", sans-serif;
}

/* ============================================
   TARIF DETAILS
   ============================================ */
.cek-tarif-wrapper .tarif-details {
  margin-bottom: 24px;
}

.cek-tarif-wrapper .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f7fafc;
}

.cek-tarif-wrapper .detail-row:last-child {
  border-bottom: none;
}

.cek-tarif-wrapper .detail-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.cek-tarif-wrapper .detail-value {
  font-size: 14px;
  color: #2d3748;
  font-weight: 600;
  text-align: right;
  font-family: "Poppins", sans-serif;
}

/* ============================================
   BUTTON WHATSAPP
   ============================================ */
.cek-tarif-wrapper .btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.cek-tarif-wrapper .btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  color: white;
  text-decoration: none;
}

.cek-tarif-wrapper .btn-whatsapp:active {
  transform: translateY(0);
}

.cek-tarif-wrapper .btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ============================================
   ERROR & NO DATA
   ============================================ */
.cek-tarif-wrapper .error-box {
  background: #fff5f5;
  border: 2px solid #feb2b2;
  border-radius: 12px;
  padding: 20px 24px;
  color: #c53030;
  font-weight: 500;
  margin-top: 24px;
  font-family: "Poppins", sans-serif;
}

.cek-tarif-wrapper .no-data {
  display: flex;
  justify-content: center;
}

.cek-tarif-wrapper .no-data-content {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.cek-tarif-wrapper .no-data-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.cek-tarif-wrapper .no-data-content p {
  margin: 0 0 1.5rem;
  color: #666;
}

/* ============================================
   DEBUG INFO
   ============================================ */
.cek-tarif-wrapper .debug-info {
  margin-top: 60px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  font-size: 13px;
  color: #718096;
  font-family: "Courier New", monospace;
}

.cek-tarif-wrapper .debug-badge {
  display: inline-block;
  background: #be3131;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .cek-tarif-wrapper .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cek-tarif-wrapper .form-grid-mobil {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cek-tarif-wrapper .tarif-grid {
    grid-template-columns: 1fr;
  }

  .cek-tarif-wrapper .form-section {
    padding: 32px 24px;
  }

  .cek-tarif-wrapper .section-title {
    font-size: 28px;
  }

  .cek-tarif-wrapper .btn-submit {
    min-height: 52px;
  }
}

@media (max-width: 640px) {
  .cek-tarif-wrapper .form-section {
    padding: 24px 20px;
    margin-top: -30px;
  }

  .cek-tarif-wrapper .form-title {
    font-size: 22px;
  }

  .cek-tarif-wrapper .route-badge {
    font-size: 16px;
    padding: 12px 24px;
  }

  .cek-tarif-wrapper .price-value {
    font-size: 24px;
  }

  .cek-tarif-wrapper select {
    padding: 12px 36px 12px 14px;
    font-size: 14px;
  }

  .cek-tarif-wrapper .btn-submit {
    padding: 14px 24px;
    font-size: 15px;
    min-height: 50px;
  }
}
