/* Quote request form — mirrors the form card in src/components/B2BContactSection.tsx */

.csm-scope .csm-form__card {
  padding: 28px;
  border: 1px solid var(--csm-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.csm-scope .csm-form__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.csm-scope .csm-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .csm-scope .csm-form__card {
    padding: 40px;
  }
  .csm-scope .csm-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Honeypot: off-screen for people, still in the DOM for bots */
.csm-scope .csm-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.csm-scope .csm-form__alert {
  padding: 12px 16px;
  border: 1px solid var(--csm-error);
  border-radius: 8px;
  background: #fff4f2;
  color: var(--csm-error);
  font-size: 13px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Fields                                                                     */
/* -------------------------------------------------------------------------- */

.csm-scope .csm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csm-scope .csm-field__label {
  margin: 0;
  color: var(--csm-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.5;
  text-transform: uppercase;
}

.csm-scope .csm-field__optional {
  color: var(--csm-muted);
  font-weight: 400;
  text-transform: none;
}

.csm-scope .csm-field__input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--csm-line);
  border-radius: 12px;
  background: var(--csm-bg);
  color: var(--csm-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.csm-scope .csm-field__input::placeholder {
  color: rgba(116, 120, 120, 0.6);
}

.csm-scope .csm-field__input:focus {
  border-color: var(--csm-black);
  outline: none;
  box-shadow: 0 0 0 1px var(--csm-black);
}

.csm-scope .csm-field__select {
  cursor: pointer;
}

.csm-scope .csm-field__textarea {
  height: auto;
  padding: 16px;
  resize: vertical;
}

.csm-scope .csm-field__input[aria-invalid="true"] {
  border-color: var(--csm-error);
}

.csm-scope .csm-field__error {
  color: var(--csm-error);
  font-size: 12px;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* Attachment                                                                 */
/* -------------------------------------------------------------------------- */

.csm-scope .csm-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 2px dashed var(--csm-line);
  border-radius: 12px;
  background: var(--csm-bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.csm-scope .csm-drop:hover {
  border-color: var(--csm-black);
  background: #f1eee6;
}

.csm-scope .csm-drop:focus-within {
  outline: 2px solid var(--csm-black);
  outline-offset: 2px;
}

.csm-scope .csm-drop.has-file {
  border-color: var(--csm-accent);
  background: var(--csm-bg-alt);
}

/* Visually hidden but focusable, so the drop zone works from the keyboard */
.csm-scope .csm-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.csm-scope .csm-drop__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.csm-scope .csm-drop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #ebe8e0;
  color: var(--csm-text);
  transition: transform 0.2s;
}

.csm-scope .csm-drop:hover .csm-drop__icon {
  transform: scale(1.1);
  color: var(--csm-black);
}

.csm-scope .csm-drop__icon svg {
  width: 20px;
  height: 20px;
}

.csm-scope .csm-drop__title {
  color: var(--csm-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.csm-scope .csm-drop__hint {
  margin-top: 4px;
  color: var(--csm-muted);
  font-size: 10px;
  font-weight: 500;
}

.csm-scope .csm-drop__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 448px;
  padding: 14px;
  border: 1px solid var(--csm-line);
  border-radius: 8px;
  background: #fff;
}

.csm-scope .csm-drop__file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
}

.csm-scope .csm-drop__file-icon {
  display: flex;
  color: var(--csm-accent);
}

.csm-scope .csm-drop__file-icon svg {
  width: 20px;
  height: 20px;
}

.csm-scope .csm-drop__file-name {
  display: block;
  max-width: 200px;
  overflow: hidden;
  color: var(--csm-ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.csm-scope .csm-drop__file-size {
  display: block;
  color: var(--csm-muted);
  font-size: 10px;
}

.csm-scope .csm-drop__remove {
  display: flex;
  padding: 4px;
  border-radius: 4px;
  color: var(--csm-muted);
}

.csm-scope .csm-drop__remove:hover {
  background: #f1eee6;
  color: var(--csm-error);
}

.csm-scope .csm-drop__remove svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------------------- */
/* Consent and submit                                                         */
/* -------------------------------------------------------------------------- */

.csm-scope .csm-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--csm-text);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.csm-scope .csm-check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--csm-accent);
  cursor: pointer;
}

.csm-scope .csm-check a {
  color: var(--csm-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.csm-scope .csm-check a:hover {
  color: var(--csm-accent);
}

.csm-scope .csm-form__submit {
  padding-top: 8px;
}

.csm-scope .csm-form__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 40px;
  border-radius: 12px;
  background: var(--csm-black);
  color: var(--csm-cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.csm-scope .csm-form__send:hover {
  background: var(--csm-accent);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.csm-scope .csm-form__send:disabled {
  opacity: 0.5;
  cursor: default;
}

.csm-scope .csm-form__send svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .csm-scope .csm-form__send {
    width: auto;
  }
}

/* -------------------------------------------------------------------------- */
/* Sent                                                                       */
/* -------------------------------------------------------------------------- */

.csm-scope .csm-form__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0;
  text-align: center;
}

.csm-scope .csm-form__done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border: 2px solid var(--csm-accent);
  border-radius: 999px;
  background: rgba(229, 229, 116, 0.5);
  color: var(--csm-accent);
}

.csm-scope .csm-form__done-icon svg {
  width: 32px;
  height: 32px;
}

.csm-scope .csm-form__done-title {
  margin-bottom: 12px;
  color: var(--csm-ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.csm-scope .csm-form__done-text {
  max-width: 512px;
  margin-bottom: 32px;
  color: var(--csm-text);
  font-size: 14px;
  line-height: 1.625;
}

.csm-scope .csm-form__summary {
  width: 100%;
  max-width: 448px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--csm-line);
  border-radius: 12px;
  background: var(--csm-bg-alt);
  font-size: 12px;
  text-align: left;
}

.csm-scope .csm-form__summary div + div {
  margin-top: 4px;
}

.csm-scope .csm-form__summary dt {
  display: inline;
  color: var(--csm-muted);
  text-transform: uppercase;
}

.csm-scope .csm-form__summary dd {
  display: inline;
  color: var(--csm-ink);
  font-weight: 700;
}

.csm-scope .csm-form__again {
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--csm-black);
  border-radius: 8px;
  background: var(--csm-bg);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.15s, color 0.15s;
}

.csm-scope .csm-form__again:hover {
  background: var(--csm-black);
  color: #fff;
}

@media (min-width: 640px) {
  .csm-scope .csm-form__done-title {
    font-size: 30px;
  }
  .csm-scope .csm-form__done-text {
    font-size: 16px;
  }
}
