/* Consult Modal */
.consult-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11000;
}

.consult-modal-overlay.open {
  display: flex;
}

.consult-modal {
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.consult-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.consult-form input[type="text"],
.consult-form input[type="tel"] {
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  font-size: 16px;
}

.agree-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: #333;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
}

.agree-wrap input[type="checkbox"] {
  margin: 0;
  margin-right: 4px;
  flex-shrink: 0;
}

.agree-wrap span {
  white-space: nowrap;
  margin: 0;
  padding: 0;
  margin-right: 0;
}

.agree-wrap .subsidy-link,
.agree-wrap .policy-link {
  white-space: nowrap;
  flex-shrink: 0;
  color: #8b5cf6;
  text-decoration: underline;
  margin: 0;
  padding: 0;
  margin-left: 0;
}

/* contact-form 내부의 agree-wrap 특별 처리 */
.contact-form .agree-wrap {
  gap: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.contact-form .agree-wrap span,
.contact-form .agree-wrap .subsidy-link,
.contact-form .agree-wrap .policy-link {
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.agree-wrap .subsidy-link:hover,
.agree-wrap .policy-link:hover {
  color: #7c3aed;
}

.consult-form .btn {
  align-self: stretch;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
}

/* Mobile Styles for Consult Modal */
@media (max-width: 768px) {
  .hero-fixed-btn {
    bottom: 16px;
  }
  .consult-modal {
    width: min(94vw, 440px);
    padding: 18px;
  }
}


/* Phone Field */
.phone-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-field .prefix {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.phone-field input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  font-size: 16px;
}

/* Redesigned Phone Field */
.phone-field {
  display: flex;
  align-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  overflow: hidden;
}

.phone-field .prefix {
  background: #f9f9f9;
  color: #111;
  font-weight: 700;
  padding: 12px 10px;
  font-size: 16px;
}

.phone-field .dash {
  color: #555;
  font-weight: 700;
  padding: 0 4px;
}

.phone-field input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 16px;
}

/* Remove Inner Border Look */
.phone-field {
  display: flex;
  align-items: center;
  border: 2px solid #aaa;
  border-radius: 8px;
  overflow: hidden;
}

.phone-field input {
  border: none !important;
  box-shadow: none;
}
/* === consult modal custom header === */
.consult-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}
.consult-logo {
  max-height: 40px;
}
.consult-slogan {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}
