* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f2f4f8;
  margin: 0;
  padding: 20px;
}

.container {
  flex: 1.8;
  margin: auto;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  margin-bottom: 5px;
  color: #1f2937;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 25px;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 15px;
  margin-bottom: 6px;
  color: #374151;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

input[type="file"] {
  width: 100%;
  border: 1px dashed #9ca3af;
  padding: 10px;
  border-radius: 6px;
  background: #f9fafb;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
}

button {
  width: 100%;
  margin-top: 25px;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1e40af;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 15px;
  color: #2563eb;
  font-weight: 600;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 15px;
}

.page {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Right side for Instructions*/
.instructions {
  flex: 1;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  max-width: 420px;
}

.instructions h3 {
  margin-top: 0;
  color: #1f2937;
  text-align: center;
}

.rule {
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rule-text {
  flex: 2;
}

.rule-image {
  flex: 0 0 140px;
}

.rule-image img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}
.rule strong {
  color: #2563eb;
}

.rule ul {
  padding-left: 18px;
  margin-top: 5px;
}

.rule li {
  font-size: 14px;
  margin-bottom: 4px;
  color: #374151;
}

.highlight {
  background: #fef3c7;
  padding: 10px;
  border-radius: 6px;
}

.note {
  font-size: 13px;
  color: #b91c1c;
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

/* For Mobile */
@media (max-width: 900px) {
  .page {
    flex-direction: column-reverse;
  }

  .rule {
    flex-direction: column;
  }
  .rule-image {
    flex: none;
    width: 100%;
  }
}


