.page.p4 {
  font-family: "Pretendard";
  padding: 60px 0;
  background-color: #f04e06;
  border-radius: 50px 50px 0 0;
}

.inquiry-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  color: white;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
}

.tab-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 15px 50px;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background-color: white;
  color: #ff6b35;
}

.form-container {
  background-color: white;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.form-content {
  display: none;
}

.form-content.active {
  display: block;
}

.form-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.form-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.form-label .required {
  color: #ff6b35;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.form-row-time {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
}

.form {
  width: 100%;
}

.time-separator {
  text-align: center;
  font-size: 18px;
  color: #666;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.option-btn {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: #666;
}

.option-btn:hover {
  border-color: #ff6b35;
}

.option-btn.selected {
  background-color: #fff5f0;
  border-color: #ff6b35;
  color: #ff6b35;
  font-weight: 500;
}

select.selected {
  border-color: #ddd;
  color: #666;
  font-weight: 500;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.checkbox-group {
  margin: 30px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #666;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff6b35;
}

.error-message {
  display: none;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.error-message.show {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-icon {
  width: 24px;
  height: 24px;
  background-color: #ff6b35;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.error-text {
  color: #333;
  font-size: 14px;
}

.form-group.error .option-btn,
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ff6b35;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
  background-color: #ff5520;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.submit-btn:disabled {
  background-color: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}
.warning_text {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  color: #ff5520;
}

.character-img {
  position: absolute;
  right: -230px;
  bottom: -200px;
  width: 400px;
  height: auto;
}
@media (max-width: 1240px) {
  .character-img {
    right: 0px;
    bottom: -200px;
    width: 300px;
  }
}
@media (max-width: 768px) {
  .page.p4 {
    border-radius: 30px 30px 0 0;
  }
  .form-container {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 32px;
  }

  .form-title {
    font-size: 24px;
    text-align: center;
  }
  .form-subtitle {
    text-align: center;
  }
  .tab-container {
    flex-direction: column;
    gap: 10px;
  }

  .tab-btn {
    width: 100%;
    padding: 12px 30px;
  }

  .form-row,
  .form-row-3,
  .form-row-time {
    grid-template-columns: 1fr;
  }

  .character-img {
    width: 200px;
  }
  .warning_text {
    white-space: wrap;
  }
}
