:root {
  --esa-mint: #05c8c2;
  --esa-mint-dark: #00b9b3;
  --esa-mint-pale: #c8f2f0;
  --esa-ink: #111;
  --esa-muted: #898e98;
  --esa-line: #e4e4e7;
  --esa-surface: #f1f5f9;
  --esa-soft: #f7f8fa;
  --esa-error: #e34b4b;
}

.esa-page,
.esa-page * {
  box-sizing: border-box;
}

.esa-page {
  min-height: 100vh;
  padding: 84px 20px 76px;
  color: var(--esa-ink);
  background: var(--esa-surface);
  font-family: "Noto Sans KR", Arial, sans-serif;
}

.esa-hero {
  margin: 0 auto 50px;
  text-align: center;
}

.esa-hero h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.6px;
}

.esa-hero p {
  margin: 16px 0 0;
  color: #90959e;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -.2px;
}

.esa-card {
  width: min(100%, 1000px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}

.esa-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 52px;
  border-bottom: 1px solid #e8ebee;
}

.esa-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999da6;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.esa-tab:hover,
.esa-tab:focus {
  color: var(--esa-mint-dark);
}

.esa-tab.is-active {
  color: var(--esa-mint-dark);
  font-weight: 700;
}

.esa-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--esa-mint);
  content: "";
}

.esa-form-shell {
  width: min(100%, 840px);
  min-height: 1180px;
  margin: 0 auto;
  padding: 80px 0 76px;
}

.esa-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 250px;
  margin: 0 auto 68px;
  padding: 0;
  list-style: none;
}

.esa-step-item {
  position: relative;
  flex: 1;
  min-width: 76px;
  color: #b5bac3;
  text-align: center;
}

.esa-step-item:not(:last-child)::after {
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  border-top: 3px dotted #dce0e5;
  content: "";
}

.esa-step-item.is-complete:not(:last-child)::after {
  border-color: var(--esa-mint);
}

.esa-step-circle {
  position: relative;
  z-index: 1;
  display: flex;
  width: 29px;
  height: 29px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dce1;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.esa-step-item.is-active,
.esa-step-item.is-complete {
  color: var(--esa-mint-dark);
}

.esa-step-item.is-active .esa-step-circle {
  border-color: var(--esa-mint);
  background: var(--esa-mint);
  color: #fff;
}

.esa-step-item.is-complete .esa-step-circle {
  border-color: #8ce2de;
  background: #8ce2de;
  color: transparent;
}

.esa-step-item.is-complete .esa-step-circle::before {
  position: absolute;
  color: #fff;
  font-size: 15px;
  content: "✓";
}

.esa-step-name {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.esa-panel[hidden] {
  display: none !important;
}

.esa-panel-title {
  margin: 0 0 48px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.9px;
}

.esa-plant-block + .esa-plant-block {
  margin-top: 50px;
  padding-top: 42px;
  border-top: 1px solid #e5e8ec;
}

.esa-plant-heading {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.esa-plant-block + .esa-plant-block .esa-plant-heading {
  display: flex;
}

.esa-plant-heading h3 {
  margin: 0;
  font-size: 19px;
}

.esa-plant-heading-added {
  display: none;
}

.esa-plant-block + .esa-plant-block .esa-plant-heading-first {
  display: none;
}

.esa-plant-block + .esa-plant-block .esa-plant-heading-added {
  display: inline;
}

.esa-delete-plant {
  padding: 0;
  border: 0;
  color: var(--esa-error);
  background: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.esa-field {
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}

.esa-field > label,
.esa-field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}

/* common.css hides every legend as screen-reader-only content. These legends
   are visible field titles in the energy solution designs. */
.esa-field > legend {
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
  visibility: visible;
}

.esa-field label em,
.esa-field legend em {
  color: var(--esa-mint-dark);
  font-style: normal;
  font-weight: 600;
}

.esa-field legend span {
  color: #8e939d;
  font-weight: 400;
}

.esa-field input[type="text"],
.esa-field input[type="email"],
.esa-field input[type="tel"],
.esa-field input[type="number"],
.esa-field input[type="date"],
.esa-field input[type="month"],
.esa-field select,
.esa-field textarea {
  width: 100%;
  border: 1px solid var(--esa-line);
  border-radius: 4px;
  outline: none;
  color: #222;
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}

.esa-field input,
.esa-field select {
  height: 44px;
  padding: 0 12px;
}

.esa-field select {
  padding-right: 42px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #89909a 50%), linear-gradient(135deg, #89909a 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.esa-field textarea {
  min-height: 106px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.esa-field input:focus,
.esa-field select:focus,
.esa-field textarea:focus {
  border-color: var(--esa-mint);
  box-shadow: 0 0 0 2px rgb(5 200 194 / 10%);
}

.esa-field input::placeholder,
.esa-field textarea::placeholder {
  color: #9ca1aa;
}

.esa-address-row,
.esa-file-row {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}

.esa-address-row input,
.esa-file-row input {
  flex: 1;
  min-width: 0;
}

.esa-address-search,
.esa-file-select {
  flex: 0 0 88px;
  height: 44px;
  border: 1px solid var(--esa-mint);
  border-radius: 4px;
  color: #fff;
  background: var(--esa-mint);
  font-size: 13px;
  cursor: pointer;
}

.esa-input-unit {
  position: relative;
}

.esa-input-unit input {
  padding-right: 92px !important;
}

.esa-input-unit > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #20242a;
  font-size: 14px;
  transform: translateY(-50%);
}

.esa-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.esa-choice,
.esa-radio-choice {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--esa-line);
  border-radius: 4px;
  color: #18181b;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.esa-choice i,
.esa-radio-choice i {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e5e9;
}

.esa-choice i::after,
.esa-radio-choice i::after {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.esa-choice.is-selected,
.esa-radio-choice.is-selected {
  border-color: var(--esa-mint);
  color: #18181b;
  background: #f0fdfa;
}

.esa-choice.is-selected i,
.esa-radio-choice input:checked + i {
  background: var(--esa-mint);
}

.esa-radio-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.esa-choice-group--contract {
  flex-direction: column;
  align-items: stretch;
}

.esa-choice-group--contract .esa-radio-choice {
  min-height: 52px;
  justify-content: flex-start;
  padding: 0 20px;
}

.esa-vpp-notice {
  margin: -8px 0 30px;
  padding: 20px;
  border-radius: 6px;
  background: #fff7ed;
  color: #52525b;
  font-size: 13px;
  line-height: 1.45;
}

.esa-vpp-notice[hidden] {
  display: none;
}

.esa-vpp-notice-title {
  display: block;
  margin-bottom: 6px;
  color: #18181b;
  font-size: 14px;
  line-height: 1.5;
}

.esa-vpp-notice-title em {
  color: #fb3d61;
  font-style: normal;
}

.esa-vpp-notice p {
  margin: 0 0 14px;
}

.esa-vpp-notice dl,
.esa-vpp-notice dl div {
  margin: 0;
}

.esa-vpp-notice dl div + div {
  margin-top: 12px;
}

.esa-vpp-notice dt {
  font-weight: 700;
}

.esa-vpp-notice dd {
  margin: 1px 0 0;
}

.esa-add-plant {
  display: flex;
  width: 100%;
  height: 80px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #cfd4da;
  border-radius: 12px;
  color: #6c727c;
  background: #fafbfc;
  font-size: 15px;
  cursor: pointer;
}

.esa-add-plant span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--esa-mint);
  font-weight: 700;
}

.esa-add-plant:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.esa-add-guide,
.esa-field-guide {
  margin: 8px 0 0;
  color: #9297a0;
  font-size: 12px;
  line-height: 1.55;
}

.esa-add-guide {
  text-align: right;
}

.esa-error,
.esa-submit-error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--esa-error);
  font-size: 12px;
  line-height: 1.4;
}

.esa-error:empty,
.esa-submit-error:empty {
  display: none;
}

.esa-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.esa-file-list li {
  display: inline-flex;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 10px 7px 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  color: #52525b;
  font-size: 13px;
}

.esa-file-list li > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esa-file-list button {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: #a1a1aa;
  font-size: 0;
  cursor: pointer;
}

.esa-file-list button::before,
.esa-file-list button::after {
  position: absolute;
  top: 7px;
  left: 4px;
  width: 8px;
  height: 1px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.esa-file-list button::after {
  transform: rotate(-45deg);
}

.esa-consent {
  display: flex;
  min-height: 76px;
  margin-top: 18px;
  padding: 20px 22px;
  align-items: flex-start;
  gap: 13px;
  border-radius: 8px;
  background: #f4f4f5;
  cursor: pointer;
}

.esa-consent + .esa-consent {
  margin-top: 8px;
}

.esa-consent input {
  position: absolute;
  opacity: 0;
}

.esa-checkmark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #d6dade;
}

.esa-checkmark::after {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.esa-consent input:checked + .esa-checkmark {
  background: var(--esa-mint);
}

.esa-consent strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.esa-consent small,
.esa-consent a {
  display: block;
  margin-top: 5px;
  color: #8b9098;
  font-size: 12px;
  line-height: 1.45;
}

.esa-consent a {
  color: #5d626a;
  text-decoration: underline;
}

.esa-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.esa-actions {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.esa-actions--single {
  display: block;
}

.esa-primary,
.esa-secondary {
  height: 52px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.esa-primary {
  width: 100%;
  border: 1px solid var(--esa-mint);
  color: #fff;
  background: var(--esa-mint);
}

.esa-primary:hover:not(:disabled),
.esa-primary:focus:not(:disabled) {
  border-color: var(--esa-mint-dark);
  background: var(--esa-mint-dark);
}

.esa-primary:disabled {
  border-color: var(--esa-mint-pale);
  background: var(--esa-mint-pale);
  cursor: not-allowed;
}

.esa-secondary {
  border: 1px solid #dce0e4;
  color: #363a40;
  background: #fff;
}

.esa-secondary:hover,
.esa-secondary:focus {
  border-color: #aeb4bc;
}

.esa-submit.is-loading {
  pointer-events: none;
  opacity: .65;
}

.esa-complete-card {
  min-height: 690px;
}

.esa-complete-body {
  min-height: 638px;
  padding: 118px 30px 90px;
  text-align: center;
}

.esa-complete-icon {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 36px;
  border-radius: 50%;
  background: var(--esa-mint);
}

.esa-complete-icon::after {
  position: absolute;
  top: 18px;
  left: 26px;
  width: 16px;
  height: 28px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  content: "";
  transform: rotate(45deg);
}

.esa-complete-title {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.35;
}

.esa-complete-copy {
  margin: 0;
  color: #858b94;
  font-size: 15px;
  line-height: 1.8;
}

.esa-complete-contact {
  width: min(100%, 510px);
  margin: 38px auto 0;
  padding: 24px;
  border-radius: 8px;
  background: #f6f7f8;
  color: #535860;
  font-size: 14px;
  line-height: 1.8;
}

.esa-complete-contact strong {
  color: #20242a;
}

.esa-complete-home {
  display: inline-flex;
  min-width: 250px;
  height: 52px;
  margin-top: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 27px;
  color: #fff;
  background: var(--esa-mint);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 768px) {
  .esa-plant-block > .esa-field:not(fieldset),
  .esa-plant-block > .esa-vpp-notice {
    max-width: 406px;
  }

  #esa-plant-apply-form > .esa-panel[data-step-panel="3"]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  #esa-plant-apply-form > .esa-panel[data-step-panel="3"] > .esa-panel-title,
  #esa-plant-apply-form > .esa-panel[data-step-panel="3"] > .esa-field--full,
  #esa-plant-apply-form > .esa-panel[data-step-panel="3"] > .esa-field--attachment,
  #esa-plant-apply-form > .esa-panel[data-step-panel="3"] > .esa-consent,
  #esa-plant-apply-form > .esa-panel[data-step-panel="3"] > .esa-submit-error,
  #esa-plant-apply-form > .esa-panel[data-step-panel="3"] > .esa-actions {
    grid-column: 1 / -1;
  }

  #esa-plant-apply-form .esa-field--attachment .esa-file-row {
    max-width: 406px;
  }

  .esa-panel--company:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .esa-panel--company > .esa-panel-title,
  .esa-panel--company > .esa-field--full,
  .esa-panel--company > .esa-grid-two,
  .esa-panel--company > .esa-consent,
  .esa-panel--company > .esa-submit-error,
  .esa-panel--company > .esa-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .esa-page {
    padding: 42px 0 52px;
  }

  .esa-hero {
    margin-bottom: 34px;
    padding: 0 24px;
  }

  .esa-hero h1 {
    font-size: 24px;
    letter-spacing: -1px;
  }

  .esa-hero p {
    margin-top: 12px;
    font-size: 13px;
  }

  .esa-card {
    border-radius: 0;
  }

  .esa-tabs {
    height: 52px;
  }

  .esa-tab {
    padding: 0 5px;
    font-size: 13px;
    text-align: center;
  }

  .esa-form-shell {
    min-height: 0;
    padding: 48px 16px 64px;
  }

  .esa-stepper {
    width: 230px;
    margin-bottom: 54px;
  }

  .esa-step-name {
    font-size: 11px;
  }

  .esa-panel-title {
    margin-bottom: 38px;
    font-size: 24px;
    letter-spacing: -.7px;
  }

  .esa-field {
    margin-bottom: 28px;
  }

  .esa-field > label,
  .esa-field > legend {
    font-size: 16px;
  }

  .esa-field input,
  .esa-field select,
  .esa-address-search,
  .esa-file-select {
    height: 44px;
  }

  .esa-choice,
  .esa-radio-choice {
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
  }

  .esa-choice-group--contract .esa-radio-choice {
    min-height: 52px;
  }

  .esa-address-search,
  .esa-file-select {
    flex-basis: 88px;
    font-size: 13px;
  }

  .esa-vpp-notice {
    padding: 20px;
  }

  .esa-add-plant {
    height: 72px;
  }

  .esa-add-guide {
    text-align: left;
  }

  .esa-grid-two {
    grid-template-columns: 1fr;
  }

  .esa-consent {
    padding: 18px 16px;
  }

  .esa-consent strong {
    font-size: 14px;
  }

  .esa-actions {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    margin-top: 46px;
  }

  .esa-actions--single {
    display: block;
  }

  .esa-primary,
  .esa-secondary {
    height: 52px;
    font-size: 14px;
  }

  .esa-complete-card {
    min-height: 660px;
  }

  .esa-complete-body {
    min-height: 602px;
    padding: 100px 24px 70px;
  }

  .esa-complete-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 30px;
  }

  .esa-complete-icon::after {
    top: 15px;
    left: 23px;
    width: 14px;
    height: 25px;
  }

  .esa-complete-title {
    font-size: 24px;
  }

  .esa-complete-copy {
    font-size: 13px;
  }

  .esa-complete-contact {
    padding: 20px 16px;
    font-size: 12px;
  }

  .esa-complete-home {
    width: 100%;
    min-width: 0;
  }
}
