/* All rules scoped to .dwg-page to avoid conflicts with the WordPress theme */

.dwg-page *,
.dwg-page *::before,
.dwg-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dwg-page {
  font-family: 'DM Sans', sans-serif;
  color: #222;
  line-height: 1.6;
  font-weight: 400;
}

.dwg-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.dwg-page .header {
  background-color: #fff;
  padding: 20px 40px;
  border-bottom: 1px solid #e0e0e0;
}

.dwg-page .header-content {
  max-width: 1000px;
  margin: 0 auto;
}

.dwg-page .logos {
  display: flex;
  gap: 40px;
  align-items: center;
}

.dwg-page .logo {
  height: auto;
}

.dwg-page .daggerwing-logo {
  width: 180px;
}

.dwg-page .credera-logo {
  width: 140px;
}

/* Hero Section */
.dwg-page .hero {
  background-color: #f2f5f6;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.dwg-page .hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding-right: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.dwg-page .eyebrow {
  color: #ff5328;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dwg-page .hero h1 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 400;
  max-width: 900px;
  letter-spacing: -0.5px;
  color: #222;
}

/* Accent Blocks */
.dwg-page .accent-blocks {
  position: absolute;
  right: 0;
  top: 0;
  width: 200px;
  height: 100%;
  pointer-events: none;
}

.dwg-page .accent-block {
  position: absolute;
  background: #ff5328;
}

.dwg-page .accent-block-1 {
  width: 40px;
  height: 100%;
  right: 0;
  bottom: 40px;
}

.dwg-page .accent-block-2 {
  width: 180px;
  height: 40px;
  right: 40px;
  bottom: 0px;
}

/* Content Section */
.dwg-page .content {
  background-color: #fff;
  padding: 60px 40px;
}

.dwg-page .container {
  max-width: 1000px;
  margin: 0 auto;
}

.dwg-page .content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #222;
}

/* Button link */
.dwg-page .btn-credera {
  display: inline-block;
  background-color: #ff5328;
  color: #fff !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border-radius: 50px;
  padding: 14px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.dwg-page .btn-credera:hover {
  opacity: 0.9;
}

/* CTA Section */
.dwg-page .cta {
  background-color: #ff5328;
  color: #fff;
  padding: 50px 40px;
}

.dwg-page .cta .container {
  max-width: 1000px;
  margin: 0 auto;
}

.dwg-page .cta p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #fff;
}

.dwg-page .cta a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #fff;
}

.dwg-page .cta a:hover {
  opacity: 0.9;
}

.dwg-page sup {
  font-size: 0.8em;
}

/* Responsive */
@media (max-width: 1024px) {
  .dwg-page .hero {
    padding: 50px 30px;
  }

  .dwg-page .hero h1 {
    font-size: 42px;
  }

  .dwg-page .accent-blocks {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .dwg-page .header {
    padding: 20px 20px;
  }

  .dwg-page .logos {
    gap: 20px;
  }

  .dwg-page .daggerwing-logo {
    width: 140px;
  }

  .dwg-page .credera-logo {
    width: 100px;
  }

  .dwg-page .hero {
    padding: 40px 20px;
    min-height: auto;
  }

  .dwg-page .hero h1 {
    font-size: 32px;
  }

  .dwg-page .accent-blocks {
    width: 80px;
  }

  .dwg-page .accent-block-1 {
    height: 280px;
  }

  .dwg-page .accent-block-2 {
    width: 80px;
    height: 40px;
  }

  .dwg-page .content,
  .dwg-page .cta {
    padding: 40px 20px;
  }

  .dwg-page .content p,
  .dwg-page .cta p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .dwg-page .header {
    padding: 30px 15px;
  }

  .dwg-page .logos {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .dwg-page .hero {
    padding: 30px 15px;
  }

  .dwg-page .hero h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .dwg-page .eyebrow {
    font-size: 11px;
  }

  .dwg-page .accent-blocks {
    display: none;
  }

  .dwg-page .content,
  .dwg-page .cta {
    padding: 30px 15px;
  }
}

/* ── Gravity Forms (inside orange CTA section) ───────────── */

/* Gravity Forms wrapper */
.dwg-page .gform_wrapper {
  max-width: 700px;
  margin: 0;
  font-family: 'DM Sans', sans-serif !important;
}

/* Field grid */
.dwg-page .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dwg-page .gfield {
  margin-bottom: 0;
}

/* Full-width fields */
.dwg-page .gfield--width-full,
.dwg-page .gfield--type-textarea,
.dwg-page .gfield--type-checkbox,
.dwg-page .gfield--type-consent,
.dwg-page .gfield--type-html {
  grid-column: 1 / -1;
}

/* Labels */
.dwg-page .gfield_label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin-bottom: 6px !important;
}

.dwg-page .gfield_required {
  color: #fff;
}

/* Inputs, selects, textarea */
.dwg-page .ginput_container input[type="text"],
.dwg-page .ginput_container input[type="email"],
.dwg-page .ginput_container input[type="tel"],
.dwg-page .ginput_container input[type="number"],
.dwg-page .ginput_container input[type="url"],
.dwg-page .ginput_container select,
.dwg-page .ginput_container textarea {
  width: 100% !important;
  background: #fff !important;
  border: 1px solid #d0d5d8 !important;
  border-radius: 0 !important;
  padding: 11px 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  color: #222 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.dwg-page .ginput_container input::placeholder,
.dwg-page .ginput_container textarea::placeholder {
  color: #aab0b5 !important;
}

.dwg-page .ginput_container input:focus,
.dwg-page .ginput_container select:focus,
.dwg-page .ginput_container textarea:focus {
  outline: none !important;
  border-color: #ff5328 !important;
}

/* Select arrow */
.dwg-page .ginput_container_select {
  position: relative;
}

.dwg-page .ginput_container_select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #666;
  pointer-events: none;
}

/* Textarea */
.dwg-page .ginput_container textarea {
  min-height: 120px !important;
  resize: vertical;
}

/* Checkbox / consent */
.dwg-page .gfield_checkbox label,
.dwg-page .gfield_consent_label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  color: #fff !important;
  line-height: 1.5 !important;
}

/* Submit button */
.dwg-page .gform_footer {
  text-align: left !important;
  margin-top: 30px !important;
  padding: 0 !important;
}

.dwg-page .gform_button {
  background-color: #fff !important;
  color: #ff5328 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 40px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
}

.dwg-page .gform_button:hover {
  opacity: 0.9 !important;
}

/* Validation */
.dwg-page .gfield_error input,
.dwg-page .gfield_error select,
.dwg-page .gfield_error textarea {
  border-color: #cc0000 !important;
}

.dwg-page .validation_message,
.dwg-page .gfield_validation_message {
  color: #cc0000 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

.dwg-page .gform_validation_errors {
  border-color: #cc0000 !important;
  background: #fff5f5 !important;
}
