/* =============================================================================
   Gravity Forms — Dark Quote Form
   Add class "gf-quote" to any Kadence block directly before the GF shortcode
   block — the sibling ~ selector picks up the .gform_wrapper that follows it.
   ============================================================================= */

/* ---- Collapse the trigger element (empty p used as hook) ---- */

.gf-quote {
  display: none !important;
}

/* ---- Container ---- */

.gf-quote ~ .gform_wrapper {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 40px 36px 36px !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ---- HTML field (heading + subtext) ---- */

.gf-quote ~ .gform_wrapper .gfield_html h5 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-family: 'DM Sans', sans-serif;
}

.gf-quote ~ .gform_wrapper .gfield_html p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

/* ---- Field spacing ---- */

.gf-quote ~ .gform_wrapper .gform_fields {
  row-gap: 18px !important;
}

.gf-quote ~ .gform_wrapper .gfield {
  padding: 0 !important;
}

/* ---- Labels ---- */

.gf-quote ~ .gform_wrapper .gfield_label,
.gf-quote ~ .gform_wrapper .gform-field-label--type-sub {
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  margin-bottom: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
}

.gf-quote ~ .gform_wrapper .gfield_required {
  display: none !important;
}

/* ---- Inputs, textarea, select ---- */

.gf-quote ~ .gform_wrapper input[type="text"],
.gf-quote ~ .gform_wrapper input[type="email"],
.gf-quote ~ .gform_wrapper input[type="tel"],
.gf-quote ~ .gform_wrapper input[type="number"],
.gf-quote ~ .gform_wrapper textarea,
.gf-quote ~ .gform_wrapper select {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-family: 'DM Sans', sans-serif !important;
  padding: 7px 0 !important;
  width: 100% !important;
  transition: border-color 0.2s ease;
}

.gf-quote ~ .gform_wrapper input[type="text"]:focus,
.gf-quote ~ .gform_wrapper input[type="email"]:focus,
.gf-quote ~ .gform_wrapper input[type="tel"]:focus,
.gf-quote ~ .gform_wrapper input[type="number"]:focus,
.gf-quote ~ .gform_wrapper textarea:focus,
.gf-quote ~ .gform_wrapper select:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6) !important;
}

.gf-quote ~ .gform_wrapper input::placeholder,
.gf-quote ~ .gform_wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.28) !important;
}

/* ---- Select ---- */

.gf-quote ~ .gform_wrapper select {
  appearance: none !important;
  -webkit-appearance: none !important;
  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 d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  padding-right: 28px !important;
  cursor: pointer;
}

.gf-quote ~ .gform_wrapper select option {
  background-color: #0D1E35;
  color: #fff;
}

/* ---- Textarea ---- */

.gf-quote ~ .gform_wrapper textarea {
  resize: none !important;
  min-height: 0 !important;
  height: 64px !important;
  overflow-y: auto !important;
}

/* ---- Name field grid ---- */

.gf-quote ~ .gform_wrapper .ginput_container--name {
  gap: 24px !important;
}

.gf-quote ~ .gform_wrapper .ginput_container--name .gform-grid-col {
  flex: 1 !important;
}

/* ---- File upload ---- */

.gf-quote ~ .gform_wrapper .ginput_container_fileupload input[type="file"] {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 8px 0 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.875rem !important;
}

.gf-quote ~ .gform_wrapper .gfield_description.gform_fileupload_rules {
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 0.75rem !important;
}

/* ---- Submit button ---- */

/* Footer is the clip container since <input> can't use ::before */
.gf-quote ~ .gform_wrapper .gform-footer {
  margin-top: 12px !important;
  padding: 0 !important;
  position: relative !important;
  display: block !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* JS-injected blob span sits above the button, pointer-events off so clicks pass through */
.gf-quote ~ .gform_wrapper .gf-btn-blob {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: rgba(0, 0, 0, 0.18) !important;
  clip-path: circle(0.5px at var(--x, 50%) var(--y, 50%)) !important;
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none !important;
  border-radius: 8px !important;
}

.gf-quote ~ .gform_wrapper .gform-footer.is-hovered .gf-btn-blob {
  clip-path: circle(140% at var(--x, 50%) var(--y, 50%)) !important;
}

.gf-quote ~ .gform_wrapper .gform_button {
  width: 100% !important;
  background-color: #7fa8c5 !important;
  color: #0C244A !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 16px 24px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  font-family: 'DM Sans', sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  cursor: pointer !important;
  text-align: center !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.gf-quote ~ .gform_wrapper .gform_button:hover,
.gf-quote ~ .gform_wrapper .gform_button:focus,
.gf-quote ~ .gform_wrapper .gform_button:active {
  box-shadow: none !important;
  outline: none !important;
  background-color: #7fa8c5 !important;
}

/* ---- Validation messages ---- */

.gf-quote ~ .gform_wrapper .gfield_validation_message,
.gf-quote ~ .gform_wrapper .validation_error {
  color: #f08080 !important;
  font-size: 0.8rem !important;
  border: none !important;
  background: transparent !important;
  padding: 4px 0 0 !important;
}

/* ---- GF heading area ---- */

.gf-quote ~ .gform_wrapper .gform_heading {
  display: none !important;
}

/* ---- Confirmation message ---- */

.gf-quote ~ .gform_confirmation_wrapper .gform_confirmation_message {
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
  .gf-quote ~ .gform_wrapper {
    padding: 28px 20px 24px !important;
  }

  .gf-quote ~ .gform_wrapper .gfield--width-half {
    grid-column: 1 / -1 !important;
  }

  .gf-quote ~ .gform_wrapper .ginput_container--name {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .gf-quote ~ .gform_wrapper .ginput_container--name .gform-grid-col {
    width: 100% !important;
    max-width: 100% !important;
  }
}
