@media (max-width: 900px) {
  .custom-order-layout {
    gap: 18px;
  }

  .custom-order-side {
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .page-hero--custom-order {
    padding: 64px 20px 58px;
    min-height: auto;
  }

  .page-hero--custom-order .page-hero__title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .page-hero--custom-order .page-hero__text {
    font-size: 1rem;
    max-width: 34ch;
  }

  .custom-order-layout {
    gap: 16px;
  }

  .custom-order-side {
    order: 1;
  }

  .custom-form-wrapper {
    order: 2;
    padding: 20px 18px;
    border-radius: 20px;
  }

  .custom-form-intro {
    text-align: center;
  }

  .custom-form-intro h2 {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }

  .custom-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .custom-form-grid .form-field--full {
    grid-column: 1 / -1;
  }


  .custom-form-grid > .form-field {
    min-width: 0;
  }

  .custom-form-grid > .form-field > .form-input,
  .custom-form-grid > .form-field > .form-select,
  .custom-form-grid > .form-field > .form-textarea {
    min-width: 0;
  }

  .custom-form-grid input[type="date"].form-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.2;
  }

  .custom-form-grid input[type="date"].form-input::-webkit-date-and-time-value,
  .custom-form-grid input[type="date"].form-input::-webkit-datetime-edit {
    min-width: 0;
    padding: 0;
  }

  @supports (-webkit-touch-callout: none) {
    .custom-form-grid input[type="date"].form-input {
      -webkit-appearance: none;
      appearance: none;
      padding-right: 12px;
      min-height: 48px;
      background-color: #fff;
    }
  }

  .file-picker-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .file-picker-trigger {
    width: 100%;
    min-height: 48px;
  }

  .file-picker-summary {
    text-align: center;
  }

  .attachment-list {
    grid-template-columns: 1fr;
  }

  .attachment-chip {
    width: 100%;
    justify-content: space-between;
  }

  .attachment-chip > span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
  }

  .turnstile-wrap {
    margin-inline: -4px;
    padding-bottom: 2px;
  }

  .custom-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .custom-form-actions .form-helper {
    text-align: center;
  }

  .custom-form-actions .submit-btn {
    width: 100%;
    min-height: 50px;
  }

  .custom-info-box {
    border-radius: 18px;
  }

  .custom-info-toggle {
    padding: 16px 18px;
  }

  .custom-info-title {
    font-size: 1.02rem;
  }

  .custom-info-content {
    padding: 0 18px 18px;
  }
}
