/* Tasket Form Styles */

.order-form-section {
  padding: var(--spacing-xxl) 0;
  background-color: #EEEBE6;
  position: relative;
  z-index: 4;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.order-form-section .container {
  padding: var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.order-form-section .container > * {
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.order-form-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xl);
  text-align: left;
  margin-bottom: 16px;
}

.sustainability-text {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.4;
  width: 100%;
  max-width: 1200px;
  margin: 0 0 var(--spacing-xl) 0;
  text-align: left;
  font-weight: 400;
  color: var(--color-text-primary);
}

.order-form-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--spacing-xl);
  gap: 141px;
  align-items: flex-start;
}

.form-description {
  flex: 1;
  max-width: 400px;
}

.form-description p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.form-container {
  flex: 1;
  width: 100%;
  max-width: 631px;
  background-color: #EEEBE6;
  padding: var(--spacing-md);
  border-radius: 0px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-image {
  width: 100%;
  margin-bottom: var(--spacing-md);
}

.contact-info-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-info-details {
  padding: var(--spacing-md);
  font-size: 16px;
  line-height: 1.5;
}

.contact-info-details h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.contact-info-details p {
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-secondary);
}

@media screen and (max-width: 1024px) {
  .order-form-container {
    gap: 60px;
  }

  .form-description {
    max-width: 300px;
  }
}

@media screen and (max-width: 767px) {
  .order-form-section .container {
    padding: var(--spacing-sm);
  }

  .form-section-title {
    font-size: 48px;
    margin-bottom: var(--spacing-lg);
  }

  .order-form-container {
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
    padding: 0;
  }
  
  .form-container {
    padding: var(--spacing-sm);
    width: 100%;
    max-width: 100%;
  }
  
  .form-group {
    width: 100%;
    max-width: 100%;
  }
  
  .form-description {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  /* Left-align description paragraphs on small screens for readability */
  .form-description p {
    text-align: left;
  }

  .form-input, 
.form-submit-btn {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  background-color: #0033ad;
  color: #fff;
  border-radius: 0;
  justify-content: center;
  align-items: center;
  padding: 1em;
  display: flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

  [data-radiocheck-group] {
    width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 480px) {
  .form-section-title {
    font-size: 36px;
  }

  .form-field-group {
    margin-bottom: var(--spacing-sm);
  }

  .form-input, 
  .form-submit-btn {
    font-size: 14px;
  }

  .radiocheck-label {
    font-size: 14px;
  }
}

.form {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  flex-flow: column;
  width: 100%;
  display: flex;
}

.form-field-group {
  flex-flow: column;
  align-items: flex-start;
  display: flex;
  margin-bottom: 32px;
}

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

.form-label {
  color: #A7A7A7;
  width: 100%;
  margin-bottom: 10px;
  font-size: 10.3px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-required {
  color: #f0591c;
  margin-left: 2px;
}

.form-input {
  outline-offset: 0px;
  color: var(--color-text-primary);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  vertical-align: middle;
  background-color: #FFFFFF;
  border: 1px solid #D3D3D3;
  border-radius: 0px;
  outline: 0 #0000;
  height: auto;
  margin-bottom: 0;
  padding: 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  width: 100%;
  transition: border-color 0.2s ease;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.form-input.is--textarea {
  resize: vertical;
  min-height: 120px;
  padding: 16px;
  border-radius: 0px;
}

.form-input:focus {
  border-color: var(--color-text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
  color: #A7A7A7;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.form-field-icon {
  opacity: 0;
  pointer-events: none;
  color: var(--color-text-secondary);
  -webkit-user-select: none;
  user-select: none;
  border-radius: .375em;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  max-height: 3.5em;
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 1px;
}

.form-field-icon.is--error {
  color: #f0591c;
}

.form-field-icon.is--select {
  right: 1.75em;
}

.radio-dot {
  color: inherit;
  background-color: currentColor;
  border-radius: 50%;
  width: .375em;
  height: .375em;
}

.radiocheck-field-icon {
  opacity: 0;
  pointer-events: none;
  color: var(--color-text-secondary);
  -webkit-user-select: none;
  user-select: none;
  border-radius: .375em;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  max-height: 3.5em;
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  position: absolute;
  top: 1px;
  right: 1px;
}

.radiocheck-field-icon.is--error {
  color: #f0591c;
}

.radiocheck-label {
  color: var(--color-text-primary);
  cursor: pointer;
  flex-grow: 1;
  margin-bottom: 0;
  padding-left: 1.8em;
  font-size: 1.125em;
  font-weight: 500;
  line-height: 1.2;
}

.radiocheck-label.is--small {
  flex-grow: 1;
  padding-left: 2em;
  font-size: 1em;
}

.radiocheck-group {
  grid-column-gap: .75em;
  grid-row-gap: .75em;
  flex-flow: column;
  width: 100%;
  display: flex;
  position: relative;
  align-items: flex-start;
}

.checkbox-input {
  cursor: pointer;
  width: 0;
  height: 0;
  margin-top: 0;
  margin-left: 0;
  position: absolute;
}

.form-field-chevron {
  pointer-events: none;
  color: var(--color-text-primary);
  -webkit-user-select: none;
  user-select: none;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: flex;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.form-field-chevron svg {
  width: 16px;
  height: 16px;
  stroke: #A7A7A7;
}

select.form-input {
  padding-right: 48px;
  cursor: pointer;
}

.form-inactive-text {
  opacity: .35;
  margin-left: auto;
  padding-left: .5em;
}

.radiocheck-field {
  align-items: flex-start;
  margin-bottom: 0;
  padding-left: 0;
  display: flex;
  position: relative;
  width: auto;
  text-align: left;
}

.radio-input {
  cursor: pointer;
  width: 0;
  height: 0;
  margin-top: 0;
  margin-left: 0;
  position: absolute;
}

.radiocheck-custom {
  pointer-events: none;
  color: var(--color-secondary-bg);
  -webkit-user-select: none;
  user-select: none;
  background-color: #FFFFFF;
  border: 1px solid #D3D3D3;
  border-radius: 8px;
  order: -1;
  justify-content: center;
  align-items: center;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  margin-right: 12px;
  display: flex;
  position: absolute;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radiocheck-check-svg {
  width: 1.5em;
  position: absolute;
}

.radiocheck-custom.is--radio {
  border-radius: 50%;
  width: 19px;
  height: 19px;
  border-color: #D3D3D3;
}

.radiocheck-label {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-primary);
  padding-left: 32px;
}

.form-submit {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
}

.form-submit-btn {
  outline-offset: 0px;
  color: #fff;
  cursor: pointer;
  background-color: #0033ad;
  border: none;
  border-radius: 0px;
  outline: 0 #0000;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  display: flex;
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 300px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  box-sizing: border-box;
}

.form-submit-btn:hover {
  background-color: #002b91;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 51, 173, 0.3);
}

.form-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 51, 173, 0.2);
}

.form-submit-btn:focus {
  outline-offset: 0px;
  border-width: 1px;
  border-color: #002b91;
  outline-color: #002b91;
}

.form-submit-btn-p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
}

.form-divider {
  opacity: .15;
  background-color: var(--color-text-primary);
  width: 100%;
  height: 1px;
  margin: var(--spacing-md) 0;
}

.form-notifcation {
  outline-offset: 0px;
  color: #0ba954;
  text-align: left;
  border: 1px solid #0ba954;
  border-color: inherit;
  background-color: var(--color-secondary-bg);
  border-radius: 0rem;
  outline: 0 #0000;
  width: 100%;
  padding: 1.125em;
  font-size: 1em;
  position: relative;
  display: none;
}

.w-form-done {
  display: none;
}

.w-form-fail {
  display: none;
}

.form-notifcation.is--error {
  color: #f0591c;
  margin-top: 0;
  padding-right: 3.5em;
}

.form-notification-icon {
  pointer-events: none;
  color: inherit;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  padding-left: 1em;
  padding-right: 1em;
  display: flex;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.form-notification-bg {
  opacity: .1;
  pointer-events: none;
  color: inherit;
  background-color: currentColor;
  border-radius: calc(.375rem - 2px);
  display: flex;
  position: absolute;
  inset: 0;
}

.form-notification-p {
  color: inherit;
  font-size: 1.125em;
  font-weight: 500;
}

.form-disclaimer {
  font-size: 0.85em;
  color: var(--color-text-secondary);
  margin-top: 0.25em;
  font-style: italic;
}

.form-processing-text {
  font-size: 10px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.form-section-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.form-footer-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-top: 32px;
  padding: 16px;
  background-color: #FFFFFF;
  border-radius: 0px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
}

.address-fields {
  display: none;
}

.address-fields.visible {
  display: block;
}

.shoulder-strap-field {
  display: none;
}

.shoulder-strap-field.visible {
  display: flex;
}

.button-field-group {
  display: none;
}

.button-field-group.visible {
  display: flex;
}

@media screen and (max-width: 767px) {
  .form-group {
    width: 100%;
  }

  .form-submit-btn {
    width: 100%;
    max-width: none;
  }

  .form-field-group,
  .form-field,
  .form-input,
  .radiocheck-group,
  .radiocheck-field {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .form-field-chevron {
    right: 8px;
  }

  select.form-input {
    padding-right: 32px;
  }
}

/* Field: Error */
[data-validate].is--error input,
[data-validate].is--error textarea,
[data-validate].is--error select{
  border-color: #f0591c;
}

[data-validate].is--error .form-field-icon.is--error,
[data-validate].is--error .radiocheck-field-icon.is--error{
  opacity: 1;
}

/* Field: Success */
[data-validate].is--success .form-field-icon.is--success,
[data-validate].is--success .radiocheck-field-icon.is--success{
  opacity: 1;
}

/* Field: Custom Radio or Checkbox */
[data-form-validate] .radiocheck-field input:focus-visible ~ .radiocheck-custom {
  background-color: #D0CFCD;
  color: #E2E1DF;
}

[data-form-validate] .radiocheck-field input:focus-visible:checked ~ .radiocheck-custom,
[data-form-validate] .radiocheck-field input:checked ~ .radiocheck-custom {
  background-color: var(--color-text-primary);
  color: var(--color-secondary-bg);
}

[data-form-validate] .radiocheck-field .radiocheck-label.is--small {
  margin-top: 0.125em;
}

[data-validate].is--error .radiocheck-custom {
  border-color: #f0591c; 
}

[data-validate].is--error input:checked ~ .radiocheck-custom {
  border-color: var(--color-text-primary); 
}

/* Field: Select */
[data-form-validate] select:has(option[value=""]:checked) {
  color: rgba(19, 19, 19, 0.3);
}
