:root {
  --frame-w: 393;
  --frame-h: 852;
  --bg-a: #1462a4;
  --bg-b: #043b69;
  --white: #ffffff;
  --black: #000000;
  --gray: #d9d9d9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  background: #0a2f53;
}

body {
  display: block;
}

.page-wrap {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.figma-frame {
  position: relative;
  width: min(100vw, 393px);
  aspect-ratio: 393 / 852;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--bg-a) 0%, var(--bg-b) 100%);
}

.status-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(44 / var(--frame-h) * 100%);
  background: var(--gray);
}

.brand-logo {
  position: absolute;
  left: calc(269 / var(--frame-w) * 100%);
  top: calc(64 / var(--frame-h) * 100%);
  width: calc(108 / var(--frame-w) * 100%);
  height: calc(47 / var(--frame-h) * 100%);
  object-fit: cover;
}

.hero-top {
  position: absolute;
  left: calc(-10 / var(--frame-w) * 100%);
  top: calc(120 / var(--frame-h) * 100%);
  width: calc(413 / var(--frame-w) * 100%);
  height: calc(204 / var(--frame-h) * 100%);
  object-fit: cover;
}

.title-line {
  position: absolute;
  left: calc(47 / var(--frame-w) * 100%);
  top: calc(316 / var(--frame-h) * 100%);
  width: calc(300 / var(--frame-w) * 100%);
  height: calc(25 / var(--frame-h) * 100%);
  margin: 0;
  color: var(--white);
  font-size: clamp(15px, 4.58vw, 18px);
  font-weight: 400;
  line-height: 1.362;
}

.contest-form {
  position: absolute;
  inset: 0;
}

.form-shell {
  position: absolute;
  left: calc(16 / var(--frame-w) * 100%);
  top: calc(352 / var(--frame-h) * 100%);
  width: calc(361 / var(--frame-w) * 100%);
  height: calc(290 / var(--frame-h) * 100%);
  border-radius: 10px;
  border: 1px solid #ffffff;
  background: rgba(0, 0, 0, 0.35);
}

.field-label {
  position: absolute;
  margin: 0;
  color: var(--white);
  font-size: clamp(16px, 5.09vw, 20px);
  font-weight: 600;
  line-height: 1.362;
  text-align: right;
}

.label-name {
  left: calc(103 / var(--frame-w) * 100%);
  top: calc(378 / var(--frame-h) * 100%);
}

.label-mobile {
  left: calc(35 / var(--frame-w) * 100%);
  top: calc(419 / var(--frame-h) * 100%);
}

.label-state {
  left: calc(95 / var(--frame-w) * 100%);
  top: calc(460 / var(--frame-h) * 100%);
}

.label-role {
  left: calc(35 / var(--frame-w) * 100%);
  top: calc(501 / var(--frame-h) * 100%);
}

.input {
  position: absolute;
  width: calc(204 / var(--frame-w) * 100%);
  height: calc(29 / var(--frame-h) * 100%);
  border: 0;
  border-radius: 8px;
  background: var(--gray);
  color: var(--black);
  padding: 0 12px;
  font-size: clamp(14px, 4.07vw, 16px);
  line-height: 1.8125;
  font-weight: 400;
  font-family: inherit;
  outline: none;
}

.input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.input-name {
  left: calc(151 / var(--frame-w) * 100%);
  top: calc(378 / var(--frame-h) * 100%);
}

.input-mobile {
  left: calc(153 / var(--frame-w) * 100%);
  top: calc(419 / var(--frame-h) * 100%);
}

.select-wrap {
  position: absolute;
  left: calc(154 / var(--frame-w) * 100%);
  top: calc(462 / var(--frame-h) * 100%);
  width: calc(204 / var(--frame-w) * 100%);
  height: calc(29 / var(--frame-h) * 100%);
}

.input-select {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
}

.select-arrow {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.role-wrap {
  position: absolute;
  left: calc(154 / var(--frame-w) * 100%);
  top: calc(500 / var(--frame-h) * 100%);
  width: calc(200 / var(--frame-w) * 100%);
  height: calc(116 / var(--frame-h) * 100%);
}

.role-texts {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.role-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.role-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid #d9d9d9;
  background: #d9d9d9;
  flex: 0 0 28px;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.role-option-text {
  color: var(--white);
  font-size: clamp(14px, 4.07vw, 16px);
  line-height: 1.8125;
  font-weight: 400;
  white-space: nowrap;
}

.role-option input[type="radio"]:checked {
  background: #ffffff;
  border-color: #ffffff;
}

.role-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1462a4;
}

.terms-wrap {
  position: absolute;
  left: calc(16 / var(--frame-w) * 100%);
  top: calc(678 / var(--frame-h) * 100%);
  width: calc(366 / var(--frame-w) * 100%);
  min-height: calc(46 / var(--frame-h) * 100%);
  display: block;
  color: var(--white);
  font-size: clamp(14px, 4.32vw, 17px);
  line-height: 1.362;
  font-weight: 400;
  cursor: pointer;
}

.terms-check {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border: 2px solid #d9d9d9;
  background: #d9d9d9;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.terms-check:checked {
  background: #ffffff;
}

.terms-check:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #1462a4;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-text {
  position: absolute;
  left: calc(33 / 366 * 100%);
  top: 0;
  width: calc(333 / 366 * 100%);
}

.cta-btn {
  position: absolute;
  left: calc(111 / var(--frame-w) * 100%);
  top: calc(756 / var(--frame-h) * 100%);
  width: calc(173 / var(--frame-w) * 100%);
  height: calc(57 / var(--frame-h) * 100%);
  border: 0;
  color: var(--white);
  font-family: inherit;
  font-size: clamp(20px, 6.11vw, 24px);
  line-height: 1.362;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: url("../assets/images/contest-button-bg-67ca7b.png") center / cover no-repeat;
  cursor: pointer;
}

.home-indicator {
  position: absolute;
  left: calc(133 / var(--frame-w) * 100%);
  top: calc(832 / var(--frame-h) * 100%);
  width: calc(134 / var(--frame-w) * 100%);
  height: calc(5 / var(--frame-h) * 100%);
  border-radius: 25px;
  background: var(--gray);
}

@media (min-width: 768px) {
  .figma-frame {
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.38);
  }
}
