@charset "utf-8";

/* ===========================
   APPLY FORM
=========================== */

.apply-form {
  --form-label-width: 18rem;
}

.apply-form__top {
  display: flex;
  justify-content: flex-end;
}

.apply-form__required-info {
  font-size: 1.5rem;
  color: #666;
}

.apply-form__section {
  margin-top: 4rem;
}

.apply-form__section:first-of-type {
  margin-top: 0;
}

.apply-form__title {
  position: relative;

  margin-bottom: 1.6rem;
  padding-left: 1.6rem;

  font-size: 2.2rem;
  font-weight: 800;
  color: #222;
}

.apply-form__title::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0.7em;

  width: 0.7rem;
  height: 0.7rem;

  background: var(--sub-primary);
}

/* ===========================
   FORM TABLE
=========================== */

.form-table {
  border-top: 1px solid #d9d1c8;
  background: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: var(--form-label-width) minmax(0, 1fr);

  min-width: 0;

  border-bottom: 1px solid var(--table-border);
}

fieldset.form-row {
  margin: 0;
  padding: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.form-label {
  display: flex;
  align-items: center;

  padding: 1.6rem 1.8rem;

  background: var(--table-bg);

  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
}

.form-field {
  min-width: 0;

  padding: 1.2rem 1.6rem;
}

.form-required {
  display: inline-block;

  margin-left: 0.3rem;

  color: #e65629;
  font-weight: 800;
}

.form-static {
  display: flex;
  align-items: center;

  min-height: 4.8rem;

  font-size: 1.6rem;
  color: #333;
}

/* ===========================
   CONTROL
=========================== */

.form-control {
  width: 100%;
  min-height: 4.8rem;
  padding: 0 1.4rem;

  border: 1px solid #d6d0ca;
  border-radius: 0.8rem;

  background: #fff;
  color: #333;

  font-size: 1.6rem;
  line-height: 1.4;

  transition: 0.25s ease;
}

.form-control[readonly],
.form-control:disabled {
  background: var(--sub-bg-light);
  color: #555;
}

.form-control:focus-visible {
  border-color: var(--sub-primary);
  outline: 3px solid rgba(154, 107, 74, 0.22);
  outline-offset: 0;
}

.form-control::placeholder {
  color: #999;
}

select.form-control {
  padding-right: 3.6rem;
}

.form-control--file {
  padding: 1rem 1.4rem;
}

.form-help {
  margin-top: 0.8rem;

  font-size: 1.4rem;
  line-height: 1.6;
  color: #777;
}

/* ===========================
   CHOICE
=========================== */

.form-choice {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;

  min-height: 4.8rem;
}

.form-choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  min-height: 4rem;

  font-size: 1.6rem;
  color: #333;

  cursor: pointer;
}

.form-choice input {
  width: 1.8rem;
  height: 1.8rem;

  accent-color: var(--sub-primary);
}

/* ===========================
   ADDRESS
=========================== */

.address-field {
  display: grid;
  gap: 0.8rem;
}

.address-field__zip {
  display: flex;
  gap: 0.8rem;
}

.address-field__zip .form-control {
  max-width: 18rem;
}

/* ===========================
   BUTTON
=========================== */

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 12rem;
  min-height: 4.8rem;
  padding: 0 2rem;

  border-radius: 0.8rem;
  border: 1px solid transparent;

  font-size: 1.6rem;
  font-weight: 800;

  transition: 0.25s ease;
}

.form-button--primary {
  background: var(--sub-btn-primary);
  border-color: var(--sub-btn-primary);
  color: #fff;
}

.form-button--primary:hover,
.form-button--primary:focus-visible {
  background: #c95509;
  border-color: #c95509;
}

.form-button--basic {
  background: var(--sub-btn-basic);
  border-color: var(--sub-btn-basic);
  color: #fff;
}

.form-button--basic:hover,
.form-button--basic:focus-visible {
  background: #2f2925;
  border-color: #2f2925;
}

.form-button--outline {
  background: #fff;
  border-color: #cfc7bf;
  color: #333;
}

.form-button--outline:hover,
.form-button--outline:focus-visible {
  border-color: var(--sub-primary);
  color: var(--sub-primary);
  background: var(--sub-bg-light);
}

/* ===========================
   AGREE BOX
=========================== */

.agree-box {
  border: 1px solid #d9d1c8;
  border-radius: 1.4rem;
  background: #fff;
  overflow: hidden;
}

.agree-box__content {
  max-height: 22rem;
  overflow-y: auto;

  padding: 2.4rem;

  background: var(--sub-bg-light);

  font-size: 1.5rem;
  line-height: 1.75;
  color: #444;
}

.agree-box__content:focus-visible {
  outline: 3px solid rgba(154, 107, 74, 0.22);
  outline-offset: -3px;
}

.agree-box__content p + p,
.agree-box__content ul + p {
  margin-top: 1.2rem;
}

.agree-box__check {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  padding: 1.6rem 2.4rem;

  border: 1px solid #e7e0d8;

  background: #fff;
}

.agree-box__check input {
  width: 2rem;
  height: 2rem;

  accent-color: var(--sub-primary);
}

.agree-box__check label {
  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
  cursor: pointer;
}

/* ===========================
   ACTIONS
=========================== */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  margin-top: 4rem;
}

/* ===========================
   ACCESSIBILITY
=========================== */

.blind {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
  .apply-form {
    --form-label-width: 16rem;
  }

  .apply-form__section {
    margin-top: 3.2rem;
  }
}

@media (max-width: 768px) {
  .apply-form__top {
    justify-content: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-label {
    padding: 1.4rem 1.6rem 0.6rem;

    background: #fff;

    font-size: 1.5rem;
  }

  .form-field {
    padding: 0.6rem 1.6rem 1.4rem;
  }

  .address-field__zip {
    flex-wrap: wrap;
  }

  .address-field__zip .form-control {
    /* flex: 1 1 16rem; */
    flex: none;
    max-width: none;
  }

  .address-field__zip .form-button {
    flex: 0 0 auto;
  }

  .agree-box__content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .apply-form__title {
    font-size: 2rem;
  }

  .form-control,
  .form-button {
    font-size: 1.5rem;
  }

  .form-choice {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .address-field__zip {
    flex-direction: column;
  }

  .address-field__zip .form-button {
    width: 100%;
  }

  .agree-box__check {
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .form-button {
    width: 100%;
  }
}

/* ===========================
   INSTRUCTOR APPLY FORM
=========================== */


.form-row--full {
  grid-template-columns: var(--form-label-width) minmax(0, 1fr);
}

.form-inline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.form-inline .form-control {
  max-width: 20rem;
}

.form-inline__dash {
  color: #777;
}

.form-help--top {
  margin: -0.4rem 0 1.6rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1rem;
  background: var(--sub-bg-light);
  color: #555;
}

.form-control--textarea {
  min-height: 16rem;
  padding: 1.4rem;
  line-height: 1.7;
  resize: vertical;
}

.form-control--file {
  height: auto;
  min-height: 4.8rem;
  padding: 1rem 1.4rem;
}

/* ===========================
   REPEAT GROUP
=========================== */

.repeat-group {
  display: grid;
  gap: 1.2rem;
}

.repeat-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.repeat-group__title {
  font-size: 1.5rem;
  color: #666;
}

.repeat-group__list {
  display: grid;
  gap: 1rem;
}

.repeat-group__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--table-border);
  border-radius: 1.2rem;
  background: var(--sub-bg-light);
}

.repeat-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.repeat-field--career {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.repeat-field--field {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.repeat-field label {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.repeat-field label > span {
  font-size: 1.4rem;
  font-weight: 800;
  color: #333;
}

.repeat-group__actions {
  display: flex;
  align-items: flex-end;
}

.form-button--small {
  min-width: 7.2rem;
  min-height: 3.8rem;
  padding: 0 1.2rem;
  font-size: 1.4rem;
}

/* ===========================
   AGREE RADIO
=========================== */

.agree-box__check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0;
  padding: 1.6rem 2.4rem;
  border: 0;
  border-top: 1px solid #e7e0d8;
  background: #fff;
}

.agree-box__check label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 4rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
  cursor: pointer;
}

.agree-box__check input[type="radio"] {
  width: 1.9rem;
  height: 1.9rem;
  accent-color: var(--sub-primary);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
  .repeat-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repeat-field--career,
  .repeat-field--field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .form-row--full {
    grid-template-columns: 1fr;
  }

  .form-inline {
    flex-wrap: wrap;
  }

  .form-inline .form-control {
    flex: 1 1 16rem;
    max-width: none;
  }

  .repeat-group__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .repeat-group__head .form-button {
    width: 100%;
  }

  .repeat-group__item {
    grid-template-columns: 1fr;
  }

  .repeat-field,
  .repeat-field--career,
  .repeat-field--field {
    grid-template-columns: 1fr;
  }

  .repeat-group__actions {
    align-items: stretch;
  }

  .repeat-group__actions .form-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-control--textarea {
    min-height: 13rem;
  }

  .agree-box__check {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.4rem 1.6rem;
  }
}


/* ===========================
   RENTAL APPLY FORM
=========================== */

/* readonly */

.rental-apply-form .form-control[readonly] {
  background: var(--sub-bg-light);
  color: #555;
  font-weight: 700;
  cursor: default;
}

/* 전화번호 */

.phone-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.phone-field .form-control {
  flex: 1;
  min-width: 0;
}

.phone-field select.form-control {
  flex: 0 0 11rem;
}

.phone-field__dash {
  color: #777;
}

/* textarea */

.form-control--textarea {
  min-height: 16rem;
  padding: 1.4rem;
  resize: vertical;
  line-height: 1.7;
}

.form-control--sm {
  min-height: 11rem;
}

/* file */

.form-control--file {
  height: auto;
  min-height: 4.8rem;
  padding: 1rem 1.4rem;
}

/* 대관료 table */

.fee-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fee-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  border-top: 2px solid var(--sub-primary);
  background: #fff;
  font-size: 1.5rem;
}

.fee-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fee-table th,
.fee-table td {
  padding: 1.5rem 1.6rem;
  border-bottom: 1px solid var(--table-border);
  text-align: left;
}

.fee-table thead th {
  background: var(--table-bg);
  color: #222;
  font-weight: 800;
  text-align: center;
}

.fee-table tbody th {
  width: 40%;
  background: var(--table-bg);
  color: #333;
  font-weight: 800;
}

.fee-table tbody td {
  text-align: right;
  color: #444;
}

.fee-table__total th,
.fee-table__total td {
  background: var(--sub-bg-light);
  color: var(--sub-btn-primary);
  font-weight: 900;
  font-size: 1.7rem;
}

/* agree radio */

.agree-box__check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0;
  padding: 1.6rem 2.4rem;
  border: 0;
  border-top: 1px solid #e7e0d8;
  background: #fff;
}

.agree-box__check label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 4rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
  cursor: pointer;
}

.agree-box__check input[type="radio"] {
  width: 1.9rem;
  height: 1.9rem;
  accent-color: var(--sub-primary);
}

/* contact */

.contact-box--form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem 2.8rem;
  border: 1px solid #ded6ce;
  border-radius: 1.4rem;
  background: var(--sub-bg-light);
}

.contact-box__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #222;
}

.contact-box__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 2rem;
  border-radius: 999px;
  background: var(--sub-btn-basic);
  color: #fff;
  font-weight: 800;
}

/* responsive */

@media (max-width: 768px) {
  .phone-field {
    flex-wrap: wrap;
  }

  .phone-field select.form-control {
    flex: 1 1 10rem;
  }

  .phone-field input.form-control {
    flex: 1 1 12rem;
  }

  .phone-field__dash {
    display: none;
  }

  .contact-box--form {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem;
  }

  .contact-box__tel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-control--textarea {
    min-height: 13rem;
  }

  .agree-box__check {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.4rem 1.6rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .form-button {
    width: 100%;
  }

  .fee-table {
    min-width: 42rem;
  }
}