@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Light.woff2") format("woff2"),
    url("./fonts/Poppins/Poppins-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Regular.woff2") format("woff2"),
    url("./fonts/Poppins/Poppins-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-Medium.woff2") format("woff2"),
    url("./fonts/Poppins/Poppins-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins/Poppins-SemiBold.woff2") format("woff2"),
    url("./fonts/Poppins/Poppins-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

main,
header,
footer,
section,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background-color: #252525;
  color: #fff;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* general styling */
header {
  width: 100%;
  height: 100vh;
  padding-inline: 32px;
  position: fixed;
  top: 0;
  left: 0;
}

header,
footer {
  background-color: #252525;
}
header div {
  max-width: 365.96px;
  margin: 0 auto;
}
section {
  max-width: 856px;
  margin: 0 auto;
}
header img {
  margin-block: 0 64px;
}

header {
  display: flex;
  align-items: center;
  transform: translateY(-40px);
}
header img {
  margin-top: 0;
}

main {
  background-color: #313131;
  padding-inline: 23px;
  padding-block: 63px 126px;
  position: relative;
  margin-top: 100vh;
  z-index: 1;
}
img {
  max-width: 100%;
  height: auto;
}
#learn-more-btn {
  width: 100%;
  background-color: #252525;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  padding-block: 6.5px;
  cursor: pointer;
  transition: all 0.4s ease;
}
#learn-more-btn:hover {
  background-color: #fff;
  color: #252525;
}
h2 {
  line-height: 1.5;
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 19px;
}

main p,
h3 {
  font-weight: 500;
  line-height: 1.4;
  font-size: 18px;
}
main p {
  font-weight: 300;
}

.ordered-list {
  counter-reset: list-counter;
}

.ordered-list-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
}

.ordered-list-item::before {
  counter-increment: list-counter;
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background-color: #007bff;
  color: white;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
}
ul {
  list-style-type: disc;
  padding-left: 1.625em;
}
footer {
  text-align: center;
  padding-block: 67px 81px;
}

footer p {
  line-height: 1.5625;
  margin-bottom: 7px;
}
/* utilities */
.margin-top-63 {
  margin-top: 63px;
}

.font-weight-semibold {
  font-weight: 600;
}

/* form */
.form-container {
  width: 100%;
  max-width: 430px;
  margin: 112px auto 0 auto;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-header {
  font-size: 34px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.form-paragraph {
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

.form-group {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  padding: 12.5px 13px;
  padding-right: 16px;
  margin-top: 12px;
  transition: border-color 0.2s ease;
}

.form-row .form-group {
  width: auto;
  flex: 1;
}

.icon-container {
  width: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.form-icon {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.form-group input {
  background: transparent;
  border: none;
  outline: none;
  color: #eaeaea;
  font-size: 18px;
  font-family: inherit;
  width: 100%;
}

.form-group input::placeholder {
  color: #bdbdbd;
  opacity: 1;
}

.file-upload-group {
  position: relative;
  justify-content: flex-start;
  padding-right: 60px;
}

.upload-label {
  color: #bdbdbd;
  font-size: 18px;
  font-family: inherit;
  padding-block: 1px;
  flex: 1;
}

.upload-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  background: #ededed;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  height: 46px;
  width: 46px;
  justify-content: center;
}

#uploaded-files {
  margin-top: 10px;
  width: 100%;
}

.uploaded-file-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.uploaded-file-pill {
  background: #4b4b4b;
  border-radius: 999px;
  padding: 4px 13px;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 29px;
}

.uploaded-file-name {
  color: #eaeaea;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-file-btn {
  border: none;
  margin-left: 12px;
  cursor: pointer;
  width: 29px;
  height: 29px;
  padding: 0;
  background: transparent;
}

.send-btn {
  width: 100%;
  background-color: #fff;
  color: #252525;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5;
  padding-block: 6.5px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 24px;
}
.send-btn:hover {
  background-color: #5a5a5a;
  color: #fff;
  border: 2px solid #fff;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #313131 inset !important;
  -webkit-text-fill-color: #eaeaea !important;
  caret-color: #eaeaea !important;
  transition: background-color 5000s ease-in-out 0s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.input-error {
  border-color: #ff4d4f !important;
}
