* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 101%;
  height: auto;
}

body {
  background: #000;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.form {
  width: 100%;
  padding: 30px;
  background: #dddddd;
  border-left: 30px;
  border-right: 30px;
  border-top: 20px;
  border-bottom: 20px;
  border-color: #000;
  border-style: solid;
}

.form.form2 {
  background: #fff;
  border-color: #fff;
}

.form-group {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start;
  column-gap: 40px;
  margin-bottom: 20px;
}

.form-group.no-label {
  grid-template-columns: 1fr;
}

.field-label {
  display: inline-block;
  width: 100px;
  min-width: 100px;
  min-height: 44px;
  line-height: 44px;
  font-size: 18px;
  font-weight: 600;
  color: #909090;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
  position: relative;
}

.field-label:after {
  content: '';
  display: block;
  width: 2px;
  height: 30%;
  background: #909090;
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
}

.form-group,
.form-group textarea {
  width: 100%;
  padding: 0 15px;
  border: 1px solid #a0a0a0;
  background: #fff;
  border-radius: 0px;
  font-size: 18px;
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group textarea {
  border: none;
  padding: 15px 0;
}

.form-group input {
  height: 44px;
  border-radius: 0px;
  border: none;
  font-size: 18px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
  font-size: 13px;
  color: #333;
}

.form-agreement input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.form-agreement label {
  cursor: pointer;
  flex: 1;
}

.form-agreement a {
  color: #0066ff;
  text-decoration: none;
  margin-left: 4px;
}

.form-agreement a:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  cursor: pointer;
}

.consult-status-section {
  padding: 44px 20px 38px;
  background: linear-gradient(180deg, #171511 0%, #0d0c0a 100%);
}

.consult-status-inner {
  max-width: 720px;
  margin: 0 auto;
}

.consult-status-title {
  margin-bottom: 24px;
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.04em;
}

.consult-status-board {
  padding: 0 12px;
}

.consult-status-viewport {
  overflow: hidden;
  border: 1px solid rgba(28, 22, 15, 0.12);
  background: #f9f7f2;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.consult-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  transform: translateY(0);
}

.consult-status-list.is-animating {
  transition: transform 0.65s ease;
}

.consult-status-item {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1.2fr 0.8fr;
  align-items: center;
  min-height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid #e3ddd2;
  color: #6e6658;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.96);
}

.consult-status-item:last-child {
  border-bottom: none;
}

.consult-status-item span:last-child {
  text-align: right;
}

.container > footer {
  position: relative;
  padding: 36px 28px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12) 0, transparent 40%), linear-gradient(145deg, #171717 0%, #262626 100%);
  color: #eaeaea;
  border-top: 4px solid #b80f0a;
  overflow: hidden;
}

.container > footer::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.container > footer h6 {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: 0.03em;
}

.container > footer p {
  position: relative;
  font-size: 13px;
  line-height: 1.75;
  color: #d7d7d7;
}

.container > footer p + p {
  margin-top: 4px;
}

.container > footer p:last-child {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  color: #bdbdbd;
}

@media (max-width: 768px) {
  .form {
    margin: 0;
    padding: 0px 16px;
    border-right: 8px solid #000;
    border-left: 8px solid #000;
  }

  .form1 {
    padding: 15px;
  }

  .form-group {
    grid-template-columns: 50px minmax(0, 1fr);
    row-gap: 6px;
    margin-bottom: 5px;
  }

  .field-label {
    min-width: 50px;
    width: 50px;
  }

  .consult-status-section {
    padding: 30px 12px 26px;
  }

  .consult-status-title {
    margin-bottom: 16px;
    font-size: 26px;
  }

  .consult-status-board {
    padding: 0;
  }

  .consult-status-item {
    grid-template-columns: 1.1fr 0.65fr 1fr 0.75fr;
    min-height: 56px;
    padding: 0 14px;
    font-size: 11px;
  }

  .container > footer {
    padding: 28px 20px;
  }

  .container > footer h6 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .container > footer p {
    font-size: 12px;
    line-height: 1.65;
  }
}

/* Success Modal Styles */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1200;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.success-modal.active {
  display: flex;
}

.success-modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 44px 32px 36px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: successPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-modal-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c;
  margin: 0 auto 20px;
}

.success-modal-icon::before,
.success-modal-icon::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
}

.success-modal-icon::before {
  width: 4px;
  height: 14px;
  left: 24px;
  top: 30px;
  transform: rotate(-45deg);
}

.success-modal-icon::after {
  width: 4px;
  height: 24px;
  left: 36px;
  top: 20px;
  transform: rotate(45deg);
}

.success-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.success-modal-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 28px;
}

.success-modal-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #22c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.success-modal-btn:hover {
  background: #16a34a;
}

/* Agreement Modal Styles */
.agreement-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.agreement-modal.active {
  display: flex;
}

#agreeView {
  text-decoration: underline;
  cursor: pointer;
  background: #0066ff;
  color: #fff;
  padding: 10px 20px;
}

#agreement {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 640px;
  width: 100%;
  max-height: 45vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.agreement-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.agreement-modal-close:hover {
  color: #000;
}

@media (max-width: 600px) {
  #agreement {
    padding: 24px 16px;
    font-size: 13px;
  }
}

/* Policy Modal Styles */
.policy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.policy-modal.active {
  display: flex;
}

.policy-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.policy-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.policy-modal-close:hover {
  color: #000;
}

.policyModalBody {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.policyModalBody h3 {
  margin-top: 20px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.policyModalBody ol {
  margin-left: 20px;
  list-style: decimal;
}

.policyModalBody li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.policyModalBody li.desc {
  margin-top: 20px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 4px;
  list-style: none;
  margin-left: 0;
}

.policyModalBody .button {
  margin-bottom: 20px;
  text-align: center;
}

.policyModalBody .button a {
  display: inline-block;
  padding: 10px 20px;
  background: #0066ff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s;
}

.policyModalBody .button a:hover {
  background: #0052cc;
}

@media (max-width: 600px) {
  .policy-modal-content {
    margin: 16px;
    padding: 24px 20px;
  }

  .policyModalBody {
    font-size: 13px;
  }

  .policyModalBody h3 {
    font-size: 15px;
  }
}
