/* JB Theme compatibility: Contact Form 7 + Elementor */
.jb-theme-site .wpcf7 form {
  display: grid;
  gap: 14px;
}

.jb-theme-site .wpcf7 form p {
  margin: 0;
}

.jb-theme-site .wpcf7 :where(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  select,
  textarea
) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
  box-sizing: border-box;
}

.jb-theme-site .wpcf7 textarea {
  min-height: 130px;
  resize: vertical;
}

.jb-theme-site .wpcf7 :where(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  select,
  textarea
):focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.jb-theme-site .wpcf7 input[type="submit"],
.jb-theme-site .wpcf7 button,
.jb-theme-site .elementor-button,
.jb-theme-site .elementor-form .elementor-button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #0056d2;
  background: #0056d2;
  color: #ffffff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.jb-theme-site .wpcf7 input[type="submit"]:hover,
.jb-theme-site .wpcf7 button:hover,
.jb-theme-site .elementor-button:hover,
.jb-theme-site .elementor-form .elementor-button:hover {
  background: #0a65cc;
  border-color: #0a65cc;
  color: #ffffff;
}

.jb-theme-site .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}

.jb-theme-site .wpcf7 .wpcf7-response-output {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.jb-theme-site .wpcf7 form.sent .wpcf7-response-output {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.jb-theme-site .wpcf7 form.invalid .wpcf7-response-output,
.jb-theme-site .wpcf7 form.unaccepted .wpcf7-response-output,
.jb-theme-site .wpcf7 form.failed .wpcf7-response-output,
.jb-theme-site .wpcf7 form.aborted .wpcf7-response-output,
.jb-theme-site .wpcf7 form.spam .wpcf7-response-output {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.jb-theme-site .elementor-form .elementor-field,
.jb-theme-site .elementor-form .elementor-select-wrapper select,
.jb-theme-site .elementor-form .elementor-field-textual {
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 12px;
}

.jb-theme-site .elementor-form .elementor-field:focus,
.jb-theme-site .elementor-form .elementor-select-wrapper select:focus,
.jb-theme-site .elementor-form .elementor-field-textual:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.jb-theme-site .elementor-form .elementor-message {
  margin-top: 8px;
  border-radius: 10px;
  padding: 10px 12px;
}

@media (max-width: 767px) {
  .jb-theme-site .wpcf7 input[type="submit"],
  .jb-theme-site .wpcf7 button,
  .jb-theme-site .elementor-button,
  .jb-theme-site .elementor-form .elementor-button {
    width: 100%;
  }
}

/* Unified Blog Card Design */
.jb-theme-blog-card {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.jb-theme-blog-thumb {
  display: block;
  margin-bottom: 0;
}

.jb-theme-blog-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.jb-theme-blog-card .jb-theme-entry-title {
  margin: 14px 16px 8px;
  font-size: 18px;
  line-height: 1.35;
}

.jb-theme-blog-card .jb-theme-entry-title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jb-theme-blog-card .jb-theme-entry-title a:hover {
  color: #1d4ed8;
}

.jb-theme-blog-card .jb-theme-entry-excerpt {
  margin: 0 16px;
  color: #4a6490;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jb-theme-blog-card .jb-theme-read-more {
  color: #345dc9;
  text-decoration: none;
  font-weight: 500;
}

.jb-theme-blog-card .jb-theme-read-more:hover {
  text-decoration: underline;
}

.jb-theme-blog-card .jb-theme-entry-meta {
  margin: auto 16px 16px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .jb-theme-blog-card .jb-theme-entry-title {
    font-size: 16px;
  }

  .jb-theme-blog-card .jb-theme-entry-excerpt {
    font-size: 15px;
  }

  .jb-theme-blog-card .jb-theme-entry-meta {
    font-size: 13px;
  }
}

/* Elementor full-width compatibility */
body.elementor-page .jb-theme-wrap.jb-theme-page-wrap,
body.elementor-page .jb-theme-page-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}
