body {
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  background: #ffffff;
  color: #333333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.qr-section {
  text-align: center;
  margin-bottom: 2rem;
}
.qr-section img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.07);
}

.upi-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.11rem;
  color: #006699;
  background: transparent;
  text-decoration: underline;
  transition: color 0.18s;
}
.upi-link:hover {
  color: #003366;
  text-decoration: none;
}

h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  color: #003366;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

form {
  background: #f6f8fa;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(0, 51, 102, 0.06);
  padding: 2rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  border: 1px solid #dde4ee;
}

.form-group {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}
.form-group.half {
  flex: 1 1 calc(50% - 0.6rem);
}

label {
  margin-bottom: 3px;
  font-weight: 500;
  color: #003366;
  font-size: 1.01rem;
}

.required {
  color: #b90021;
  margin-left: 3px;
  font-weight: bold;
}

input,
select,
textarea {
  padding: 0.53rem 0.72rem;
  font-size: 1.04rem;
  border-radius: 7px;
  border: 1px solid #b1bdd1;
  background: #fff;
  margin-bottom: 1px;
  transition: border-color 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #006699;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
input[type="file"] {
  padding: 0.28rem;
  background: #f9faff;
}

.submit-btn {
  margin-top: 1.2rem;
  padding: 0.8rem 1.7rem;
  font-size: 1.09rem;
  background: linear-gradient(90deg, #006699 80%, #003366 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.16s, box-shadow 0.17s;
  box-shadow: 0 1px 4px rgba(0, 51, 102, 0.08);
  width: 100%;
}
.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.submit-btn:hover {
  background: linear-gradient(90deg, #003366 60%, #006699 100%);
  box-shadow: 0 3px 14px rgba(0, 51, 102, 0.1);
}

@media (min-width: 768px) {
  .form-group.half {
    flex: 1 1 calc(50% - 0.8rem);
  }
  .submit-btn {
    width: auto;
    align-self: center;
    min-width: 190px;
  }
}

.box,
.expired-box {
  max-width: 520px;
  background: #f6f8fa;
  margin: 90px auto 0 auto;
  padding: 2.4rem 1.5rem 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.1);
  border: 1.5px solid #dde4ee;
  text-align: center;
  width: 94%;
}
.emoji {
  font-size: 2.7em;
  margin-bottom: 5px;
}
.msg {
  font-size: 1.08em;
  color: #003366;
  line-height: 1.75;
  white-space: pre-line;
  background: #e8f1fb;
  border-radius: 8px;
  padding: 0.87em 1em;
  margin-bottom: 17px;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}
.date-now {
  margin-top: 17px;
  color: #225;
  font-size: 1em;
}
@media (max-width: 520px) {
  .box,
  .expired-box {
    margin: 14px auto 0 auto;
    padding: 1.13rem 0.37rem 1.08rem 0.37rem;
    width: 99%;
  }
  body {
    font-size: 0.96em;
  }
  .msg {
    font-size: 0.97em;
    padding: 0.69em 0.57em;
  }
}
#copyUpiBtn:hover {
  background: #d3e6f5;
  color: #005580;
}
#upiIdBox {
  margin-top: 6px;
}
