/* Global */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f4f7;
  color: #333;
}

.results-container {
  padding: 30px 15px;
  margin-top: 80px;
}

.wrapper {
  display: flex;
  gap: 20px;
}

/* On mobile, stack them */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }
}

.wrapper section {
  flex: 1;
}

/* Main Box */
.result-box {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 18px 15px 25px;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Inputs */
.input-group-field {
  margin-bottom: 18px;
}

.input-group-field label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.input-group-field input,
.input-group-field select {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  font-size: 1rem;
  outline: none;
}

.input-group-field input:focus,
.input-group-field select:focus {
  border-color: #b71c1c;
  box-shadow: 0 0 0 2px rgba(183, 28, 28, 0.15);
}

/* Remove spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Offline prefix */
.offline-wrap {
  display: flex;
  align-items: center;
}
.offline-wrap .prefix {
  background: #eee;
  padding: 10px 12px;
  border-radius: 8px 0 0 8px;
  border: 1px solid #ccc;
}
.offline-wrap input {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

/* Main Button */
.btn-check-result {
  width: 100%;
  padding: 12px;
  background: #c62828;
  color: white;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 700;
}
.btn-check-result:hover {
  background: #b71c1c;
}

/* Result Area (Base) */
.result-area {
  margin-top: 25px;
  padding: 20px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-left: 6px solid transparent;
}

/* Red – Not Found */
.result-red {
  background: #ffe5e7;
  border-left-color: #d50000;
  color: #b71c1c;
}

/* Yellow – Absent */
.result-yellow {
  background: #fff4cc;
  border-left-color: #ffb300;
  color: #e65100;
}

/* Green – Success */
.result-green {
  background: #dbf7df;
  border-left-color: #2e7d32;
  color: #1b5e20;
}

/* Coupon Button */
.btn-coupon {
  display: block;
  margin-top: 15px;
  padding: 12px;
  text-align: center;
  background: #2e7d32;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.btn-coupon:hover {
  background: #1b5e20;
}

.loader {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-check-result.loading {
  opacity: 0.7;
  pointer-events: none;
}
