/*
Theme Name: Nota Trade Static
Theme URI: https://nota-trade.com/
Author: Nota Trade
Description: HTML-first WordPress theme for Nota Trade with Contact Form 7 leads.
Version: 1.0.0
Text Domain: nota-trade-static
*/

.nt-cf7-card .wpcf7 form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.nt-cf7-card .wpcf7-form-control-wrap { min-width: 0; }
.nt-cf7-card .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nt-cf7-card .form-field { min-width: 0; }
.nt-cf7-card label { display: flex; flex-direction: column; gap: 7px; color: #414765; font: 600 12px 'Manrope', system-ui, sans-serif; }
.nt-cf7-card .req { color: #0068B7; }
.nt-cf7-card input, .nt-cf7-card select, .nt-cf7-card textarea { width: 100%; min-width: 0; border: 1px solid rgba(14, 19, 67, .14); border-radius: 12px; background: #f7f9fc; color: #0E1343; font: 500 14.5px 'Manrope', system-ui, sans-serif; padding: 12px 14px; }
.nt-cf7-card input:focus, .nt-cf7-card select:focus, .nt-cf7-card textarea:focus { outline: 0; border-color: #0068B7; background: #fff; box-shadow: 0 0 0 3px rgba(0, 104, 183, .12); }
.nt-cf7-card .checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nt-cf7-card .wpcf7-list-item { margin: 0; }
.nt-cf7-card .wpcf7-list-item label { display: flex; flex-direction: row; align-items: center; gap: 7px; font-weight: 500; }
.nt-cf7-card .wpcf7-list-item input { width: auto; padding: 0; }
.nt-cf7-card .form-foot { margin-top: 4px; }
.nt-cf7-card .note { margin: 0 0 12px; color: #777d92; font: 400 12px/1.45 'Manrope', system-ui, sans-serif; }
.nt-cf7-card .wpcf7-submit { width: 100%; border: 0; border-radius: 999px; padding: 16px 26px; color: #fff; cursor: pointer; font: 600 15px 'Manrope', system-ui, sans-serif; background: linear-gradient(135deg, #0A7BCF 0%, #0059A0 100%); }
.nt-cf7-card .wpcf7-response-output { margin: 12px 0 0 !important; border-radius: 10px; font: 500 13px 'Manrope', system-ui, sans-serif; }

.nt-lead-modal[hidden] { display: none; }
.nt-lead-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: rgba(8, 16, 45, .58); backdrop-filter: blur(5px); }
.nt-lead-modal__dialog { position: relative; width: min(100%, 560px); max-height: min(92vh, 760px); overflow: auto; padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px rgba(8, 16, 45, .4); }
.nt-lead-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid rgba(14, 19, 67, .16); border-radius: 50%; background: #fff; color: #0E1343; font-size: 25px; line-height: 1; cursor: pointer; }
.nt-lead-modal__eyebrow { margin: 0 0 8px; color: #0068B7; font: 700 11px 'Manrope', system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.nt-lead-modal__title { margin: 0 38px 8px 0; color: #0E1343; font: 500 26px/1.15 'Manrope', system-ui, sans-serif; text-transform: uppercase; }
.nt-lead-modal__copy { margin: 0 0 22px; color: #5a5f7a; font: 400 14.5px/1.55 'Manrope', system-ui, sans-serif; }
@media (max-width: 640px) { .nt-cf7-card .form-row, .nt-cf7-card .checkbox-grid { grid-template-columns: minmax(0, 1fr); } .nt-lead-modal__dialog { padding: 28px 22px; } }

/* Main lead form: mirrors the approved two-column layout. */
.nt-cf7-card .nt-lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.nt-cf7-card .nt-lead-field { min-width: 0; }
.nt-cf7-card .nt-lead-field--wide { grid-column: 1 / -1; }
.nt-cf7-card .nt-lead-field > p { margin: 0; }
.nt-cf7-card .nt-lead-field label { display: block; margin: 0 0 7px; color: #414765; font: 600 13px/1.25 'Manrope', system-ui, sans-serif; }
.nt-cf7-card .nt-lead-field label .req { color: #0068B7; }
.nt-cf7-card .nt-lead-field .wpcf7-form-control-wrap { display: block; }
.nt-cf7-card .nt-lead-field input, .nt-cf7-card .nt-lead-field select, .nt-cf7-card .nt-lead-field textarea { min-height: 44px; border-color: #d9ddea; background: #fff; font-size: 14px; }
.nt-cf7-card .nt-lead-field textarea { height: 58px; min-height: 58px; resize: vertical; }
.nt-cf7-card .nt-lead-submit { position: relative; margin-top: 18px; }
.nt-cf7-card .nt-lead-submit .wpcf7-form-control-wrap { display: block; }
/* Стрілка — фон самої кнопки, тому завжди вертикально по центру, незалежно від висоти кнопки та сусідніх елементів. */
.nt-cf7-card .nt-lead-submit input { min-height: 48px; padding-left: 56px; padding-right: 56px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='13' fill='rgba(255,255,255,0.18)'/%3E%3Cpath d='M8.2 13h8.6M13.4 9.6 16.8 13l-3.4 3.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 26px 26px, linear-gradient(135deg, #0A7BCF 0%, #0059A0 100%); }
.nt-cf7-card .nt-lead-note { margin: 12px 0 0; text-align: center; color: #9296ab; font: 400 11px/1.45 'Manrope', system-ui, sans-serif; }
@media (max-width: 640px) { .nt-cf7-card .nt-lead-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .nt-cf7-card .nt-lead-submit input { background-position: right 13px center, 0 0; } }
/* CF7 inputs mають size=40 (інтринсик ~286px) — колонка "1fr" (auto-min) не давала формі стискатись на вузьких екранах, і картка вилазила за екран. */
@media (max-width: 800px) { .nt-static-form__inner { grid-template-columns: minmax(0, 1fr) !important; } }

/* Мобільна форма на головній: біла картка на всю ширину плашки, компактна кнопка. */
@media (max-width: 640px) {
  .nt-static-form__inner { padding: 26px 0 0 !important; gap: 22px !important; overflow: hidden; }
  .nt-static-form__benefits { gap: 8px !important; margin-top: 18px !important; font-size: 13.5px !important; }
  .nt-static-form__benefits li:before { width: 18px !important; height: 18px !important; font-size: 10px !important; }
  .nt-static-form__inner > div:first-child { padding: 0 20px; }
  .nt-static-form .nt-cf7-card { border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0 0 27px 27px; padding: 24px 18px 20px; }
  .nt-cf7-card .nt-lead-submit input { padding-left: 46px; padding-right: 46px; font-size: 14px; background-position: right 11px center, 0 0; background-size: 24px 24px, auto; }
}

/* У поп-апі випадаючі списки (Тип клієнта, Що цікавить) — кожен на повний рядок. */
.nt-lead-modal .nt-lead-grid .nt-lead-field:has(select) { grid-column: 1 / -1; }

/* Компактний поп-ап на мобільному: поля попарно, менші відступи — щоб влазив в один екран. */
@media (max-width: 640px) {
  .nt-lead-modal { padding: 14px; }
  .nt-lead-modal__dialog { padding: 22px 18px 18px; max-height: calc(100dvh - 28px); }
  .nt-lead-modal__title { font-size: 20px; }
  .nt-lead-modal__copy { margin-bottom: 14px; font-size: 13px; line-height: 1.45; }
  .nt-lead-modal .nt-cf7-card { padding: 0; border: 0; background: none; }
  .nt-lead-modal .nt-lead-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .nt-lead-modal .nt-lead-field label { margin-bottom: 5px; font-size: 12px; }
  .nt-lead-modal .nt-lead-field input, .nt-lead-modal .nt-lead-field select { min-height: 40px; padding: 9px 12px; font-size: 13.5px; }
  .nt-lead-modal .nt-lead-field textarea { height: 44px; min-height: 44px; padding: 9px 12px; font-size: 13.5px; }
  .nt-lead-modal .ns-btn { padding: 9px 12px; font-size: 13.5px; }
  .nt-lead-modal .nt-lead-submit { margin-top: 12px; }
  .nt-lead-modal .nt-lead-submit input { min-height: 44px; }
  .nt-lead-modal .nt-lead-note { margin-top: 8px; font-size: 10px; }
}

/* Плавний скрол до якорів (зокрема до форми #form) */
html { scroll-behavior: smooth; }
