/*
General / global stylesheet — Xpress Working Capital

Loaded on every page, after all other theme stylesheets, so rules here
take priority without needing !important. Use it for site-wide tweaks
that shouldn't live inside main.css/responsive.css.
*/
/* ==========================================================================
   Gravity Forms Custom Styling: .apply-gravity-form
   ========================================================================== */

.apply-gravity-form {
  --agf-primary: #204ce5;
  --agf-primary-hover: #1738ab;
  --agf-bg: #ffffff;
  --agf-text: #1a202c;
  --agf-label: #2d3748;
  --agf-border: #cbd5e1;
  --agf-border-focus: #204ce5;
  --agf-radius: 32px;
  --agf-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--agf-text);
}

.apply-gravity-form *,
.apply-gravity-form *::before,
.apply-gravity-form *::after {
  box-sizing: inherit;
}

/* Card Container */
.apply-gravity-form .gform_wrapper {
  background-color: var(--agf-bg);
  padding: 26px;
  border-radius: var(--agf-radius);
  box-shadow: var(--agf-shadow);
  border: 1px solid #e2e8f0;
  max-width: 640px;
  margin: 0 auto;
}

/* Header */
.apply-gravity-form .gform_heading {
  margin-bottom: 24px;
  text-align: center;
}

.apply-gravity-form .gform_title {
  font-size: 22px;
  font-weight: 700;
  color: var(--agf-text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  text-align: left;
}

/* 2-Column Responsive Layout */
.apply-gravity-form .gform_fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
}

/* Full-width fields (Name & Phone share row; others take full width) */
.apply-gravity-form .gfield {
  margin: 0;
  width: 100%;
  grid-column: span 2;
}

.apply-gravity-form .gfield--width-full {
  grid-column: span 2;
}

/* Mobile responsive fallback */
@media (max-width: 640px) {
  .apply-gravity-form .gform_wrapper {
    padding: 20px;
  }
  .apply-gravity-form .gform_fields {
    grid-template-columns: 1fr;
  }
  .apply-gravity-form .gfield,
  .apply-gravity-form .gfield--width-full {
    grid-column: span 1;
  }
}

/* Field Labels */
.apply-gravity-form .gfield_label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--agf-label);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif !important;
}

/* Inputs & Select Dropdowns */
.apply-gravity-form input[type="text"],
.apply-gravity-form input[type="email"],
.apply-gravity-form input[type="tel"],
.apply-gravity-form select.gfield_select {
  width: 100%;
  height: 44px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--agf-text);
  background-color: #f8fafc;
  border: 1px solid var(--agf-border) !important;
  border-radius: var(--agf-radius) !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.apply-gravity-form select.gfield_select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
  cursor: pointer;
}

/* Focus States */
.apply-gravity-form input[type="text"]:focus,
.apply-gravity-form input[type="email"]:focus,
.apply-gravity-form input[type="tel"]:focus,
.apply-gravity-form select.gfield_select:focus {
  background-color: #ffffff;
  border-color: var(--agf-border-focus);
  box-shadow: 0 0 0 3px rgba(32, 76, 229, 0.15);
}

/* Submit Button & Footer */
.apply-gravity-form .gform_footer {
  margin-top: 24px;
  padding: 0;
}

.apply-gravity-form button.gform_button,
.apply-gravity-form input[type="submit"] {
  width: 100%;
  height: 48px;
  background-color: var(--agf-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--agf-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-gravity-form button.gform_button:hover,
.apply-gravity-form input[type="submit"]:hover {
  background-color: var(--agf-primary-hover);
}

.apply-gravity-form button.gform_button:active,
.apply-gravity-form input[type="submit"]:active {
  transform: translateY(1px);
}