/* IMEI Checker Page Styles */
.imei-checker {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 15px 60px;
  font-family: 'Noto Sans JP', 'Open Sans', sans-serif;
}

/* Hero */
.imei-checker__hero {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 15px;
  background: #f8f9fa;
  border-radius: 8px;
}
.imei-checker__hero h2 {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}
.imei-checker__hero p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.7;
}

/* Form */
.imei-checker__form-section {
  margin-bottom: 30px;
}
.imei-checker__form {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
}
.imei-checker__input-group {
  margin-bottom: 20px;
}
.imei-checker__input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95em;
  color: #333;
}
.imei-checker__input-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.1em;
  border: 2px solid #ced4da;
  border-radius: 6px;
  letter-spacing: 0.1em;
  font-family: 'Montserrat', monospace;
  box-sizing: border-box;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.imei-checker__input-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}
.imei-checker__counts {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}
.imei-checker__count {
  margin: 0;
  font-size: 0.85em;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}
.imei-checker__count--over {
  color: #dc3545;
  font-weight: 600;
}
.imei-checker__count--invalid {
  color: #dc3545;
}
.imei-checker__hint {
  margin-top: 6px;
  font-size: 0.82em;
  color: #6c757d;
}
.imei-checker__hint code {
  background: #e9ecef;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.95em;
}
.imei-checker__error {
  margin-top: 6px;
  font-size: 0.88em;
  color: #dc3545;
  font-weight: 500;
}

/* Carrier Checkboxes */
.imei-checker__carrier-group {
  margin-bottom: 20px;
}
.imei-checker__carrier-group > label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95em;
  color: #333;
}
.imei-checker__carriers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.imei-checker__carrier-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-weight: 400;
}
.imei-checker__carrier-label:hover {
  background: #e9ecef;
  border-color: #ced4da;
}
.imei-checker__carrier-label:has(input:checked) {
  background: #e7f1ff;
  border-color: #a0c4ff;
}
.imei-checker__carrier-label:has(input:checked):hover {
  background: #d0e3ff;
  border-color: #7aadff;
}
.imei-checker__carrier-label:has(input:checked) span {
  color: #0056b3;
}

/* Submit */
.imei-checker__submit {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1.05em;
  font-weight: 700;
  color: #fff;
  background: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.imei-checker__submit:hover {
  background: #0056b3;
}
.imei-checker__submit:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Loading */
.imei-checker__loading {
  text-align: center;
  padding: 40px 0;
}
.imei-checker__spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: imei-spin 0.8s linear infinite;
}
@keyframes imei-spin {
  to { transform: rotate(360deg); }
}
.imei-checker__loading p {
  margin-top: 12px;
  color: #555;
  font-size: 0.95em;
}

/* Progress */
.imei-checker__progress {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 20px;
}
.imei-checker__progress-text {
  margin-top: 12px;
  color: #333;
  font-size: 1em;
  font-weight: 600;
}
.imei-checker__progress-bar-wrapper {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin: 12px auto 0;
  overflow: hidden;
}
.imei-checker__progress-bar {
  height: 100%;
  background: #007bff;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.imei-checker__queue-info {
  margin-top: 10px;
  font-size: 0.85em;
  color: #6c757d;
}

/* Result Groups */
.imei-checker__result-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.imei-checker__result-group {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.imei-checker__result-group-header {
  padding: 8px 14px;
  background: #f8f9fa;
  font-weight: 700;
  font-size: 0.85em;
  color: #333;
  font-family: 'Montserrat', monospace;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #dee2e6;
}

/* Results */
.imei-checker__results {
  margin-bottom: 30px;
}
.imei-checker__results h2 {
  font-size: 1.15em;
  margin-bottom: 10px;
  color: #333;
}
.imei-checker__result-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.imei-checker__result-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border-left: 3px solid #6c757d;
}
.imei-checker__result-card + .imei-checker__result-card {
  border-top: 1px solid #f0f0f0;
}
.imei-checker__result-symbol {
  font-size: 1.2em;
  font-weight: 700;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.imei-checker__result-info {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.imei-checker__result-carrier {
  font-weight: 700;
  font-size: 0.88em;
  color: #333;
  width: 7em;
  flex-shrink: 0;
}
.imei-checker__result-status {
  font-size: 0.82em;
  color: #555;
}
.imei-checker__result-error {
  font-size: 0.78em;
  color: #dc3545;
  margin-left: auto;
}

/* CTA */
.imei-checker__cta {
  text-align: center;
  padding: 25px;
  margin: 20px 0;
  background: #f8f9fa;
  border-radius: 8px;
}
.imei-checker__cta p {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}
.imei-checker__cta-btn {
  display: inline-block;
  padding: 10px 25px;
  margin: 0 5px 10px;
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  background: #28a745;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.imei-checker__cta-btn:hover {
  background: #218838;
  color: #fff;
  text-decoration: none;
}
.imei-checker__cta-btn--secondary {
  background: #6c757d;
}
.imei-checker__cta-btn--secondary:hover {
  background: #5a6268;
}

/* Legend */
.imei-checker__legend {
  margin-bottom: 30px;
  padding: 20px 25px;
  background: #f8f9fa;
  border-radius: 8px;
}
.imei-checker__legend h2 {
  font-size: 1.15em;
  margin-bottom: 12px;
  color: #333;
}
.imei-checker__legend dl {
  margin: 0;
}
.imei-checker__legend-item {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  align-items: baseline;
}
.imei-checker__legend-item dt {
  font-size: 1.3em;
  font-weight: 700;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}
.imei-checker__legend-item dd {
  margin: 0;
  font-size: 0.88em;
  color: #555;
  line-height: 1.5;
}

/* About / SEO */
.imei-checker__about {
  line-height: 1.8;
  color: #444;
}
.imei-checker__about h2 {
  font-size: 1.15em;
  margin: 25px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e9ecef;
  color: #333;
}
.imei-checker__about p {
  font-size: 0.92em;
  margin-bottom: 10px;
}
.imei-checker__about ul {
  padding-left: 20px;
  font-size: 0.92em;
}
.imei-checker__about ul li {
  margin-bottom: 5px;
  list-style: disc;
  font-size: inherit;
}
.imei-checker__about code {
  background: #e9ecef;
  padding: 1px 5px;
  border-radius: 3px;
}

/* FAQ */
.imei-checker__faq details {
  margin-bottom: 8px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
}
.imei-checker__faq summary {
  padding: 12px 15px;
  font-size: 0.92em;
  font-weight: 600;
  cursor: pointer;
  background: #f8f9fa;
  color: #333;
}
.imei-checker__faq summary:hover {
  background: #e9ecef;
}
.imei-checker__faq details p {
  padding: 12px 15px;
  font-size: 0.88em;
  color: #555;
  margin: 0;
}
.imei-checker__faq details a {
  color: #007bff;
  text-decoration: underline;
}
.imei-checker__faq details a:hover {
  color: #0056b3;
}

/* Two-column layout on PC */
@media (min-width: 768px) {
  .imei-checker {
    max-width: 1100px;
  }
  .imei-checker__body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 30px;
  }
  .imei-checker__body-left {
    flex: 1;
    min-width: 0;
  }
  .imei-checker__body-right {
    flex: 1;
    min-width: 0;
  }
  .imei-checker__results {
    margin-bottom: 0;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .imei-checker {
    padding: 15px 10px 40px;
  }
  .imei-checker__hero {
    padding: 20px 12px;
  }
  .imei-checker__hero h2 {
    font-size: 1.3em;
  }
  .imei-checker__form {
    padding: 18px 15px;
  }
  .imei-checker__carriers {
    gap: 6px;
  }
  .imei-checker__carrier-label {
    font-size: 0.85em;
    padding: 5px 10px;
  }
  .imei-checker__cta-btn {
    display: block;
    margin: 0 0 10px;
  }
}
