* {
  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,
.teacher {
  margin-top: 0.95rem;
}

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

input,
textarea {
  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;
}

textarea {
  resize: vertical;
}

input:focus,
textarea: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;
  flex-direction: column;
  width: 1280px;
  padding: 20px 60px 40px;
  margin-top: 2rem;
  border: 1px solid #e3e3df;
  border-radius: 10px;
  background-color: transparent;
  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;
}

.logo {
  display: flex;
  align-items: center;
  width: auto;
}

#udemy-logo {
  height: 120px;
}

.right-side {
  padding-left: 620px;
  text-align: right;
  font-size: 14px;
  font-family: "DistrictProW01-Medium", sans-serif;
  color: rgba(107, 107, 107, 0.879);
}

.right-side > div {
  margin-top: 10px;
}

.content {
  margin-top: 70px;
  font-family: "Montserrat", sans-serif;
  font-weight: bolder;
}

.content > h3 {
  color: rgba(100, 100, 100, 0.899);
  letter-spacing: 1.5px;
}

#course-name {
  margin-top: 12px;
  font-family: "Arno Pro Display", "Times New Roman", Times, serif;
  font-weight: bold;
  font-size: 80px;
  color: rgb(28, 28, 28);
}

.content > h4,
.user > h4 {
  margin-top: 18px;
  font-size: 20px;
  font-family: "DistrictProW01-Medium", sans-serif;
  font-weight: 400;
}

.content > h4 > b,
.user > h4 > b {
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  color: rgb(28, 28, 28);
}

.user {
  margin-top: 170px;
}

.user > h1 {
  font-size: 42px;
  font-family: "Poppins", sans-serif;
  color: rgb(28, 28, 28);
  font-weight: bolder;
}

.user > h4 {
  margin: 0;
}

.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;
  }
}
