/*
Theme Name: Canun Child
Theme URI: http://themeforest.net/user/wpoceans/portfolio/
Author: wpoceans
Author URI: http://themeforest.net/user/wpoceans
Description: Canun - Lawyer & Attorney WordPress Theme
Template:	canun
Version: 1.0
Text Domain: canun-child
*/

body {
  font-family: "Muli", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* 2) Заголовки переводимо на EB Garamond */
h1, h2, h3, h4, h5, h6,
.hero-title, .slider-title, .page-title { /* якщо тема має свої класи */
  font-family: "EB Garamond", serif !important;
  font-weight: 600;            /* 700 часто виглядає “дубово” */
  letter-spacing: 0;           /* якщо тема десь ставить -0.02em — прибираємо */
}

/* 3) Щоб рендер був “гладкіший” */
body, h1, h2, h3, h4, h5, h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* overlay */
.pb-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

/* ВАЖЛИВО: саме цей клас вмикає показ */
.pb-modal.is-open {
  display: block;
}

.pb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.pb-modal__dialog {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.pb-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 38px;
  cursor: pointer;
  opacity: .7;
}
.pb-modal__close:hover { opacity: 1; }

body.pb-modal-open { overflow: hidden; }

.pb-modal__header {
  margin-bottom: 14px;
  padding-right: 26px; /* щоб текст не залазив під хрестик */
}

.pb-modal__title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.pb-modal__subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.72);
  margin: 0;
}

/* --- Close button --- */
.pb-modal__close {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 20px;
  line-height: 34px;
  opacity: 1;
}
.pb-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
}

/* --- Inputs spacing --- */
.pb-modal .wpcf7 form > div {
  margin-bottom: 10px;
}

/* --- Button (make compact) --- */
.pb-modal .submit-area {
  margin-top: 10px;
}

.pb-modal .submit-area .theme-btn,
.pb-modal .wpcf7 input[type="submit"].theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;              /* НЕ 100% */
  min-width: 180px;
  padding: 10px 16px;       /* компактніше */
  border-radius: 12px;      /* менше, ніж “плюшка” */
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* якщо тема робить кнопку fullwidth через div або стилі */
.pb-modal .submit-area,
.pb-modal .wpcf7-submit {
  max-width: 100%;
}

/* Optional: вирівняти кнопку по центру */
.pb-modal .submit-area {
  display: flex;
  justify-content: center;
}

/* --- Make modal a bit tighter --- */
.pb-modal__dialog {
  padding: 18px 18px 16px;
  border-radius: 16px;
}