/* === Enhanced CF7 Form — Brand Matched === */
body .wpcf7 form {
  max-width: 520px;              /* more compact, premium feel */
  margin: 0 auto;
  padding: clamp(16px, 4vw, 24px);
  background: linear-gradient(145deg, #000435 0%, #0a0f3d 100%);
  border: 1px solid #1b2550;
  border-radius: var(--radius, 20px);
  color: var(--ink, #F9FAFB);
  box-shadow: 0 14px 34px rgba(0,0,0,.6);
  position: relative;
  overflow: hidden;
}

/* Subtle card glow effect */
body .wpcf7 form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(214,158,2,.15);
  opacity: 0.4;
}

/* Form container padding */
body .wpcf7 form .wpcf7-response-output {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  font-size: var(--fs-small, 14px);
  line-height: 1.4;
}

/* Success message */
body .wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.3);
  color: #34D399;
}

/* Error message */
body .wpcf7 form .wpcf7-response-output.wpcf7-validation-errors {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #F87171;
}

/* Labels — Clean, bold, with subtle accent */
body .wpcf7 form label {
  display: block;
  font-weight: 700;              /* bolder for better hierarchy */
  margin-bottom: 6px;
  color: var(--ink, #F9FAFB);
  font-size: var(--fs-small, 14px);
  letter-spacing: -0.01em;
}

/* Field containers for better spacing */
body .wpcf7 form p {
  margin-bottom: 16px;           /* consistent field spacing */
}

/* Enhanced inputs with brand styling */
body .wpcf7 form input[type="text"],
body .wpcf7 form input[type="email"],
body .wpcf7 form input[type="tel"],
body .wpcf7 form select,
body .wpcf7 form textarea {
  width: 100%;
  padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 16px);
  margin-bottom: 0;              /* remove default margin, control with p */
  border-radius: var(--btn-radius, 14px);
  border: 1.5px solid #1b2550;   /* thicker, more premium border */
  background: linear-gradient(145deg, #0a0f3d 0%, #000435 100%);
  color: var(--ink, #F9FAFB);
  font-size: var(--fs-body, 16px);
  line-height: 1.5;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Focus states matching your design system */
body .wpcf7 form input[type="text"]:focus,
body .wpcf7 form input[type="email"]:focus,
body .wpcf7 form input[type="tel"]:focus,
body .wpcf7 form select:focus,
body .wpcf7 form textarea:focus {
  outline: none;
  border-color: var(--btn, #D69E02);
  box-shadow: var(--focus, 0 0 0 4px rgba(214,158,2,.25));
}

/* Hover states for interactive fields */
body .wpcf7 form input[type="text"]:hover,
body .wpcf7 form input[type="email"]:hover,
body .wpcf7 form input[type="tel"]:hover,
body .wpcf7 form select:hover,
body .wpcf7 form textarea:hover {
  border-color: #2a3785;
}

/* Select dropdown styling */
body .wpcf7 form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23D1D5DB' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
  cursor: pointer;
}

/* Compact textarea */
body .wpcf7 form textarea {
  min-height: 80px;              /* even more compact */
  resize: vertical;
}

/* Enhanced placeholder with brand colors */
body .wpcf7 form ::placeholder {
  color: #9CA3AF;
  opacity: 0.8;
  font-weight: 400;
}

/* Checkbox/Radio styling */
body .wpcf7 form input[type="checkbox"],
body .wpcf7 form input[type="radio"] {
  width: auto;
  margin-right: 8px;
  accent-color: var(--btn, #D69E02);
}

/* Consent checkbox styling */
body .wpcf7 form .wpcf7-acceptance {
  margin: 16px 0;
}

body .wpcf7 form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  margin: 0;
  color: #D1D5DB;
  line-height: 1.4;
  cursor: pointer;
  font-weight: 500;
}

body .wpcf7 form .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Premium Submit Button — Matches your gold CTA design */
body .wpcf7 form input[type="submit"] {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  font-size: var(--fs-body, 16px);
  font-weight: 800;
  border-radius: var(--btn-radius, 14px);
  background: linear-gradient(135deg, var(--btn, #D69E02), var(--btn-dark, #B8860B)) !important;
  color: #000 !important;
  border: 2px solid var(--btn-dark, #B8860B);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 14px rgba(0,0,0,.35);
  text-transform: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

/* Submit button hover/focus states */
body .wpcf7 form input[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px rgba(0,0,0,.45);
}

body .wpcf7 form input[type="submit"]:focus-visible {
  outline: none;
  box-shadow: var(--focus, 0 0 0 4px rgba(214,158,2,.25)), inset 0 1px 0 rgba(255,255,255,.4);
}

/* Submit button loading state */
body .wpcf7 form input[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 4px rgba(0,0,0,.2);
}

/* Submit button text */
body .wpcf7 form input[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}

body .wpcf7 form input[type="submit"]:hover::before {
  left: 100%;
}

/* Field validation states */
body .wpcf7 form input:invalid,
body .wpcf7 form textarea:invalid {
  border-color: #F87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,.1);
}

body .wpcf7 form input:valid:focus,
body .wpcf7 form textarea:valid:focus {
  border-color: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}

/* Required field indicator */
body .wpcf7 form label:after {
  content: "*";
  color: #F87171;
  margin-left: 2px;
  font-weight: 800;
  font-size: 12px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  body .wpcf7 form {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: none;
  }
  
  body .wpcf7 form input[type="submit"] {
    min-height: 44px;
    font-size: 15px;
    padding: 10px 20px;
  }
}

/* Dark mode consistency (if theme supports it) */
@media (prefers-color-scheme: dark) {
  body .wpcf7 form input[type="text"],
  body .wpcf7 form input[type="email"],
  body .wpcf7 form input[type="tel"],
  body .wpcf7 form select,
  body .wpcf7 form textarea {
    background: linear-gradient(145deg, #0a0f3d 0%, #000435 100%);
  }
}

/* Animation for form submission */
body .wpcf7 form .wpcf7-response-output {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== BLOG INDEX STYLING ===== */
body.blog,
body.archive {
  background: #000; /* black background for brand consistency */
  font-family: 'Inter', system-ui, sans-serif;
  color: #f9fafb;
  padding: 40px 20px;
}

/* Container */
body.blog #main,
body.archive #main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Page title */
body.blog h1.page-title,
body.archive h1.page-title {
  text-align: center;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #fff, #d69e02);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Posts grid */
body.blog .post,
body.archive .post {
  background: linear-gradient(145deg, #000435, #0a0f3d 40%, #000000 100%);
  border: 1px solid #1b2550;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
body.blog .post:hover,
body.archive .post:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0,0,0,.75);
}

/* Post titles */
body.blog .post h2.entry-title a,
body.archive .post h2.entry-title a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
}
body.blog .post h2.entry-title a:hover {
  color: #d69e02;
}

/* Featured image */
body.blog .post-thumbnail img,
body.archive .post-thumbnail img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Excerpt */
body.blog .post .entry-summary,
body.archive .post .entry-summary {
  color: #d1d5db;
  font-size: 16px;
  margin-bottom: 16px;
}

/* Meta info */
body.blog .post .entry-meta,
body.archive .post .entry-meta {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 12px;
}

/* Read More button */
body.blog .post a.more-link,
body.archive .post a.more-link {
  display: inline-block;
  background: #d69e02;
  color: #000;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
body.blog .post a.more-link:hover {
  background: #fff;
  color: #000;
}

/* Pagination */
body.blog .pagination,
body.archive .pagination {
  text-align: center;
  margin-top: 40px;
}
body.blog .pagination a,
body.archive .pagination a {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0a0a0a;
  color: #f9fafb;
  text-decoration: none;
  font-weight: 700;
}
body.blog .pagination a:hover,
body.archive .pagination a:focus {
  background: #d69e02;
  color: #000;
}
/* Nudge GPU for common animated elements */
.floater-icon, .growth-line, .blueprint-cta, .growth-card, .portrait-frame img { will-change: transform, opacity; backface-visibility: hidden; }
