* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f6f6f3;
  color: #121212;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-main {
  flex: 1;
}

.notice-banner {
  width: 100%;
  border-bottom: 1px solid #e8d8a9;
  background-color: #fff8e6;
}

.notice-banner p {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 0.7rem 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
  color: #6b4b00;
}

.container {
  width: 100%;
  margin: 3.2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-shell {
  width: min(620px, 100%);
  background-color: #ffffff;
  border: 1px solid #e3e3de;
  border-radius: 14px;
  padding: 2rem 1.6rem;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #6f6f6f;
}

.form-shell h1 {
  margin-top: 0.72rem;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin-top: 0.6rem;
  color: #5c5c5c;
  font-size: 0.95rem;
}

#form {
  margin-top: 1.35rem;
}

.first-name,
.last-name,
.date,
.length,
.course {
  margin-top: 0.95rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a3a3a;
}

input {
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid #dcdcd7;
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #1f1f1f;
  outline: none;
}

input:focus {
  border-color: #b8b8b2;
}

.btn {
  margin-top: 1.35rem;
}

#Generate,
#download {
  width: 100%;
  border: none;
  border-radius: 10px;
  background-color: #171717;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  padding: 0.72rem 1rem;
  cursor: pointer;
}

#download {
  display: none;
  width: min(320px, 100%);
  margin-top: 1rem;
}

/* Certificate layout (kept for output compatibility) */
#certificate {
  box-sizing: content-box;
  display: none;
  width: 1180px;
  margin-top: 2rem;
  border: 1px solid #e3e3df;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.08);
}

.form-shell,
.notice-banner p,
.site-footer p {
  width: min(1080px, 92vw);
}

.form-shell {
  max-width: 620px;
}

#certificate * {
  box-sizing: content-box;
}

.outer {
  border: 20px solid white;
}

.light-br {
  border: 3px solid rgba(177, 177, 177, 0.746);
  padding: 4px;
}

.dark-br {
  border: 15px solid rgba(135, 135, 135, 0.81);
  padding: 8px;
}

.main-content {
  display: flex;
  flex-flow: row nowrap;
  width: inherit;
  height: 740px;
  border: 6px solid rgb(177, 177, 177);
}

.left-side {
  width: 25%;
}

.left-side > img {
  height: 740px;
}

.right-content {
  margin-top: 90px;
  margin-left: 20px;
  width: 62%;
  color: #737373;
  font-size: 18px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
}

#logo {
  height: 24px;
  margin-left: 9px;
}

#sign {
  height: 67px;
}

.congrats,
.course-name,
.para,
.authority,
.certificate-id {
  margin-left: 40px;
}

.congrats > h2 {
  margin-top: 3px;
  margin-bottom: 0;
  font-weight: 300;
}

.congrats > h3 {
  margin-top: 0;
  font-size: 23px;
  font-weight: 300;
}

.course-name {
  margin-top: 45px;
  color: #6e6f6e;
}

.course-name > h1 {
  margin: 0;
}

.completion {
  display: flex;
  align-items: center;
  color: #707071;
}

.completion > h3 {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 400;
}

#clength {
  margin-left: 11px;
}

.para > h2 {
  margin-top: 30px;
  color: #707071;
  font-size: 17px;
  font-weight: 400;
}

.authority {
  display: flex;
  align-items: flex-end;
  margin-top: 15px;
  color: #707071;
  font-size: 12.6px;
  font-weight: 300;
}

.vl {
  border: 1px solid #d0d0d1;
  height: 70px;
}

.part-1 > h3,
.part-2 > h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.certificate-id {
  margin-top: 140px;
  font-size: 13px;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 1.15rem 0 1.4rem;
  border-top: 1px solid #e8e8e3;
}

.site-footer p {
  width: min(1080px, 92vw);
  margin: 0 auto;
  text-align: center;
  color: #636363;
  font-size: 0.86rem;
}

.site-footer a {
  color: #2a2a2a;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #cfcfca;
}

.site-footer .footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  margin-left: 0.38rem;
}

.site-footer .footer-sep {
  color: #9a9a96;
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 800px) {
  .container {
    margin-top: 2.2rem;
  }

  .form-shell {
    padding: 1.5rem 1rem;
  }
}
