/* Unified inquiry form — reference layout/animation, legacy brand palette */

.inq-form-wrapper {
  width: 100%;
  position: relative;
}

.inq-form-card {
  border-radius: 1.2rem;
  padding: 3.2rem;
  transition: box-shadow 0.3s ease;
}

/* Dark variant — home contact form */
.inq-form-wrapper--dark .inq-form-card {
  position: relative;
  overflow: visible;
  background: var(--brand-navy);
  box-shadow: 0 1.6rem 4rem rgba(9, 75, 139, 0.28);
}

.inq-form-wrapper--dark .inq-form__corner-badge {
  position: absolute;
  top: 0;
  right: -1.8rem;
  z-index: 2;
  transform: translateY(-35%) rotate(8deg);
  padding: 1rem 1.4rem;
  border-radius: 1rem;
  background: var(--brand-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.inq-form-wrapper--dark .inq-form__header {
  padding-right: 10rem;
}

.inq-form-wrapper--dark .inq-form__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.2rem;
  border-radius: 0.6rem;
  background: var(--brand-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.inq-form-wrapper--dark .inq-form__title {
  color: #fff;
}

.inq-form-wrapper--dark .inq-form__title span {
  color: #fff;
}

.inq-form-wrapper--dark .inq-form__label {
  color: #fff;
}

.inq-form-wrapper--dark .inq-form__required {
  color: #fca5a5;
}

.inq-form-wrapper--dark .inq-form__input,
.inq-form-wrapper--dark .inq-form__textarea {
  background: #eef4fb;
  border-color: transparent;
  color: #333;
}

.inq-form-wrapper--dark .inq-form__input::placeholder,
.inq-form-wrapper--dark .inq-form__textarea::placeholder {
  color: #9ca3af;
}

.inq-form-wrapper--dark .inq-form__input:focus,
.inq-form-wrapper--dark .inq-form__textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.inq-form-wrapper--dark .inq-form__input:focus + .inq-form__input-icon,
.inq-form-wrapper--dark .inq-form__input-wrap:focus-within .inq-form__input-icon {
  color: var(--brand-blue);
}

.inq-form-wrapper--dark .inq-form__upload {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.inq-form-wrapper--dark .inq-form__upload:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.inq-form-wrapper--dark .inq-form__upload-title {
  color: #fff;
}

.inq-form-wrapper--dark .inq-form__upload-title.is-selected {
  color: #dbeafe;
}

.inq-form-wrapper--dark .inq-form__upload-desc {
  color: rgba(255, 255, 255, 0.72);
}

.inq-form-wrapper--dark .inq-form__upload-icon-circle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.inq-form-wrapper--dark .inq-form__upload-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.inq-form-wrapper--dark .inq-form__upload:hover .inq-form__upload-btn {
  background: #fff;
  color: var(--brand-navy);
  border-color: #fff;
}

.inq-form-wrapper--dark .inq-form__privacy {
  color: rgba(255, 255, 255, 0.88);
}

/* Light variant — contact page, product detail */
.inq-form-wrapper--light .inq-form-card {
  background: #fff;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.08);
}

.inq-form-wrapper--light .inq-form__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.2rem;
  border-radius: 0.6rem;
  background: var(--brand-blue-light);
  border: 1px solid rgba(9, 75, 139, 0.15);
  color: var(--brand-navy);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.inq-form-wrapper--light .inq-form__title {
  color: var(--brand-navy);
}

.inq-form-wrapper--light .inq-form__subtitle {
  margin: 0.8rem 0 0;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-text);
}

.inq-form-wrapper--light .inq-form__title span {
  color: var(--brand-blue);
}

.inq-form-wrapper--light .inq-form__label {
  color: var(--brand-text);
}

.inq-form-wrapper--light .inq-form__required {
  color: var(--brand-red);
}

.inq-form-wrapper--light .inq-form__input,
.inq-form-wrapper--light .inq-form__textarea {
  background: #fff;
  border-color: var(--brand-border);
  color: var(--brand-text);
}

.inq-form-wrapper--light .inq-form__input::placeholder,
.inq-form-wrapper--light .inq-form__textarea::placeholder {
  color: #9ca3af;
}

.inq-form-wrapper--light .inq-form__input:focus,
.inq-form-wrapper--light .inq-form__textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(9, 75, 139, 0.12);
}

.inq-form-wrapper--light .inq-form__input:focus + .inq-form__input-icon,
.inq-form-wrapper--light .inq-form__input-wrap:focus-within .inq-form__input-icon {
  color: var(--brand-blue);
}

.inq-form-wrapper--light .inq-form__upload {
  border-color: var(--brand-border);
  background: #f8fafc;
}

.inq-form-wrapper--light .inq-form__upload:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.inq-form-wrapper--light .inq-form__upload-title {
  color: var(--brand-text);
}

.inq-form-wrapper--light .inq-form__upload-title.is-selected {
  color: var(--brand-blue);
}

.inq-form-wrapper--light .inq-form__upload-desc {
  color: var(--brand-muted);
}

.inq-form-wrapper--light .inq-form__upload-icon-circle {
  background: #fff;
  border-color: var(--brand-border);
  color: var(--brand-blue);
}

.inq-form-wrapper--light .inq-form__upload-btn {
  background: #fff;
  border-color: var(--brand-border);
  color: var(--brand-text);
}

.inq-form-wrapper--light .inq-form__upload:hover .inq-form__upload-btn {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.inq-form-wrapper--light .inq-form__privacy {
  color: var(--brand-muted);
}

/* Compact — blog sidebar */
.inq-form-wrapper--compact .inq-form-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  box-shadow: none;
}

.inq-form-wrapper--compact .inq-form__header {
  margin-bottom: 2rem;
}

.inq-form-wrapper--compact .inq-form__title {
  font-size: 2.2rem;
  color: var(--brand-navy);
}

.inq-form-wrapper--compact .inq-form__subtitle {
  margin: 0 0 1.6rem;
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: #535353;
}

.inq-form-wrapper--compact .inq-form__grid {
  gap: 1.6rem;
}

.inq-form-wrapper--compact .inq-form__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 0.4rem;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.inq-form-wrapper--compact .inq-form__label {
  color: var(--brand-text);
}

.inq-form-wrapper--compact .inq-form__required {
  color: var(--brand-red);
}

.inq-form-wrapper--compact .inq-form__input,
.inq-form-wrapper--compact .inq-form__textarea {
  background: #fff;
  border-color: var(--brand-border);
  color: var(--brand-text);
}

.inq-form-wrapper--compact .inq-form__input:focus,
.inq-form-wrapper--compact .inq-form__textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(9, 75, 139, 0.12);
}

.inq-form-wrapper--compact .inq-form__upload {
  border-color: var(--brand-border);
  background: #f8fafc;
  padding: 1.6rem;
}

.inq-form-wrapper--compact .inq-form__upload-btn {
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
}

.inq-form-wrapper--compact .inq-form__privacy {
  color: var(--brand-muted);
  font-size: 1.2rem;
}

/* Shared structure */
.inq-form__header {
  margin-bottom: 2.4rem;
}

.inq-form__title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
}

.inq-form__subtitle {
  margin: 1.2rem 0 0;
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: #535353;
}

.inq-form.inquiry-form {
  display: block;
}

.inq-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.inq-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

.inq-form__group--full {
  grid-column: span 2;
}

.inq-form__label {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inq-form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.inq-form__input,
.inq-form__textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 1.2rem 1.4rem 1.2rem 4.4rem;
  font-size: 1.4rem;
  line-height: 1.5;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.inq-form__textarea {
  padding: 1.2rem 1.4rem;
  min-height: 11rem;
  resize: vertical;
}

.inq-form__input-icon {
  position: absolute;
  left: 1.4rem;
  color: #9ca3af;
  transition: color 0.3s ease;
  pointer-events: none;
}

.inq-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inq-form__upload {
  border: 1.5px dashed var(--brand-border);
  border-radius: 0.8rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.inq-form__upload-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
}

.inq-form__upload-icon-circle {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 0.8rem;
  border: 1px solid var(--brand-border);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.inq-form__upload:hover .inq-form__upload-icon-circle {
  transform: translateY(-2px);
}

.inq-form__upload-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  word-break: break-word;
  transition: color 0.3s ease;
}

.inq-form__upload-desc {
  display: block;
  font-size: 1.2rem;
}

.inq-form__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.inq-form__submit {
  width: 100%;
  min-height: 5.2rem;
  margin-top: 0.4rem;
  padding: 1.2rem 2rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--brand-red);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  font-family: inherit;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.inq-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 0.8rem 2rem rgba(193, 10, 18, 0.35);
}

.inq-form__submit:disabled,
.inq-form__submit.is-loading {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.inq-form__submit.is-loading .inq-form__submit-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.inq-form__submit.is-loading .inq-form__submit-text::before {
  content: '';
  width: 1.6rem;
  height: 1.6rem;
  border: 0.2rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: inq-form-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.inq-form.is-submitting {
  pointer-events: none;
}

.inq-form.is-submitting .inq-form__submit {
  pointer-events: none;
}

@keyframes inq-form-spin {
  to {
    transform: rotate(360deg);
  }
}

.inq-form__privacy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.55;
}

.inq-form__privacy svg {
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.inq-form .inquiry-form__feedback {
  margin: 1.2rem 0 0;
  padding: 1.2rem 1.6rem;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.inq-form-wrapper--dark .inquiry-form__feedback.is-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.inq-form-wrapper--dark .inquiry-form__feedback.is-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.inq-form-wrapper--light .inquiry-form__feedback.is-success,
.inq-form-wrapper--compact .inquiry-form__feedback.is-success {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.inq-form-wrapper--light .inquiry-form__feedback.is-error,
.inq-form-wrapper--compact .inquiry-form__feedback.is-error {
  color: var(--brand-red);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.inq-form__input.is-invalid,
.inq-form__textarea.is-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25) !important;
}

.inquiry-form__feedback {
  margin: 0;
  font-size: 1.4rem;
}

.inquiry-form__feedback.is-success {
  color: #047857;
}

.inquiry-form__feedback.is-error {
  color: var(--brand-red);
}

@media (max-width: 768px) {
  .inq-form-card {
    padding: 2.4rem 1.6rem;
  }

  .inq-form__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .inq-form__group--full {
    grid-column: span 1;
  }

  .inq-form__upload {
    flex-direction: column;
    align-items: flex-start;
  }

  .inq-form__upload-btn {
    width: 100%;
    justify-content: center;
    font-size: 2.6rem;
  }

  .inq-form__title {
    font-size: 3rem;
  }

  .inq-form__label {
    font-size: 2.6rem;
  }

  .inq-form__input::placeholder {
    font-size: 2.2rem;
  }

  .inq-form__textarea::placeholder {
    font-size: 2.2rem;
  }

  .inq-form__upload-title,
  .inq-form__upload-desc {
    font-size: 2rem;
  }

  .inq-form__submit-text {
    font-size: 2.8rem;
  }

  .inq-form__privacy {
    font-size: 2rem;
  }

  .inq-form__corner-badge {
    font-size: 1.4rem;
  }
}

@media (max-width: 639px) {
  .inq-form-wrapper--compact .inq-form-card {
    padding: 1.6rem;
  }
}

/* Product detail — smaller centered submit button */
.pd-inquiry .inq-form__group--full:has(.inq-form__submit) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-inquiry .inq-form__submit {
  width: fit-content;
  max-width: 100%;
  min-width: 18rem;
  min-height: 4.4rem;
  padding: 1rem 2.4rem;
  font-size: 1.4rem;
  align-self: center;
}
