/* =========================================
   GLOBAL LOCK
========================================= */
html.cf7pm-lock,
html.cf7pm-lock body { overflow: hidden; }

/* =========================================
   MODAL BASE
========================================= */
.cf7pm-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
}
.cf7pm-modal.is-open{ display:block; }

.cf7pm-overlay{
  position:absolute;
  inset:0;
  background:rgba(10,10,10,.55);
}

/* =========================================
   SHELL
========================================= */
.cf7pm-shell{
  position:relative;
  width:min(1280px, calc(100% - 32px));
  margin: 6vh auto;
  outline:none;
}

/* =========================================
   LAYOUT
========================================= */
.cf7pm-wrap{
  border-radius:26px;
  overflow:hidden;
  background:#0b0b0b;
  box-shadow:0 30px 90px rgba(0,0,0,.45);

  display:grid;
  grid-template-columns: 1.35fr 1fr;
  min-height:520px;
}

/* =========================================
   LEFT SIDE
========================================= */
.cf7pm-left{
  position:relative;
  padding:56px 56px 48px;
  background:#0b0b0b;
  color:#fff;
}

.cf7pm-decor{
  position:absolute;
  left:22px;
  top:18px;
  width:27px;
  height:auto;
}

.cf7pm-left-title{
  margin:0 0 18px;
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.06;
  font-size:clamp(28px, 3.2vw, 54px);
}

.cf7pm-accent{ color:#2d8cff; font-style:italic; }

.cf7pm-left-text{
  margin:0;
  max-width:520px;
  font-size:14px;
  line-height:1.55;
  opacity:.92;
}

/* =========================================
   RIGHT SIDE
========================================= */
.cf7pm-right{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px;
}

.cf7pm-card{
  position:relative;
  width:100%;
  max-width:520px;
  background:#fff;
  border-radius:22px;
  padding:30px 30px 26px;
}

.cf7pm-right-title{
  margin:0;
  text-align:center;
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.1;
  font-size:32px;
  color:#111;
}

.cf7pm-green{ color:#2db64a; }

.cf7pm-right-sub{
  text-align:center;
  margin:10px auto 18px;
  max-width:380px;
  font-size:13px;
  line-height:1.35;
  color:#111;
  opacity:.9;
}

/* =========================================
   CLOSE BUTTON (FORCED STYLE)
========================================= */
.cf7pm-card > .cf7pm-x{
  position:absolute !important;
  right:-25px !important;
  top:-25px !important;

  width:34px !important;
  height:34px !important;

  border:0 !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:999px !important;

  background:#ff3b5c !important;
  color:#ffffff !important;

  font-size:20px !important;
  line-height:34px !important;
  text-align:center !important;

  padding:0 !important;
  margin:0 !important;

  cursor:pointer !important;
  z-index:100 !important;

  transition: transform .18s ease, background .18s ease;
}

.cf7pm-card > .cf7pm-x:hover{
  background:#ff1f45 !important;
  transform:scale(1.08);
}

.cf7pm-card > .cf7pm-x:focus,
.cf7pm-card > .cf7pm-x:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

/* =========================================
   FORM FIELDS
========================================= */
.cf7pm-form .wpcf7 form p{ margin:0 0 14px; }

.cf7pm-form input[type="text"],
.cf7pm-form input[type="email"],
.cf7pm-form input[type="tel"]{
  width:100%;
  height:56px;
  padding:0 18px;

  color:#000000 !important;

  border-radius:12px;
  border:1px solid #d8dbe2;
  background:#fff;

  font-size:14px;
  outline:none;

  transition:border .2s ease;
}

.cf7pm-form input:focus{ border-color:#b8bfcc; }

/* =========================================
   ANIMATED SUBMIT BUTTON (ICON ALWAYS ALIGNED)
========================================= */
.cf7pm-form .button-form-block{
  position:relative;
  margin-top:10px;
  min-height:60px;
}

.cf7pm-form .button-form-block input[type="submit"]{
  width:100%;
  height:60px;

  border:0 !important;
  border-radius:14px;

  background:#2db64a !important;
  color:#0b0b0b !important;

  font-weight:800;
  font-size:16px;

  cursor:pointer;

  padding-left:74px;
  padding-right:22px;

  transition: background .35s ease, color .35s ease, transform .15s ease;
}

.cf7pm-form .button-form-block::before{
  content:"";
  position:absolute;
  left:26px;
  top:34%;
  width:28px;
  height:28px;

  transform: translateY(-50%) rotate(0deg);
  transform-origin: 50% 50%;

  background-repeat:no-repeat;
  background-size:28px 28px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='4' y='10' width='3' height='8' rx='1.5' fill='%230b0b0b'/%3E%3Cpath d='M11 9.2c0-.9 1-1.4 1.7-.9l9.5 5.5c.7.4.7 1.4 0 1.8l-9.5 5.5c-.7.4-1.7 0-1.7-.9V9.2z' fill='%230b0b0b'/%3E%3C/svg%3E");

  transition:
    transform .55s cubic-bezier(.2,.9,.2,1),
    background-image .25s ease,
    filter .35s ease;
}

.cf7pm-form .button-form-block:hover input[type="submit"],
.cf7pm-form .button-form-block:focus-within input[type="submit"]{
  background:#0b0b0b !important;
  color:#fff !important;
}

.cf7pm-form .button-form-block:hover::before,
.cf7pm-form .button-form-block:focus-within::before{
  transform: translateY(-50%) rotate(180deg);
  filter: brightness(1.05);

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='4' y='10' width='3' height='8' rx='1.5' fill='%23ffffff'/%3E%3Cpath d='M11 9.2c0-.9 1-1.4 1.7-.9l9.5 5.5c.7.4.7 1.4 0 1.8l-9.5 5.5c-.7.4-1.7 0-1.7-.9V9.2z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.cf7pm-form .button-form-block input[type="submit"]:active{
  transform: scale(.99);
}

/* =========================================
   CF7 MESSAGES
========================================= */
.cf7pm-form .wpcf7-not-valid-tip{
  font-size:12px;
  margin-top:6px;
}
.cf7pm-form .wpcf7-response-output{ margin:12px 0 0; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px){
  .cf7pm-wrap{ grid-template-columns: 1fr; }
  .cf7pm-left{ padding:34px 24px 26px; }
  .cf7pm-right{ padding:18px; }
  .cf7pm-card{ padding:24px 18px 18px; }
  .cf7pm-right-title{ font-size:28px; }

  .cf7pm-card > .cf7pm-x{
    right:-18px !important;
    top:-18px !important;
  }

.cf7pm-left .cf7pm-decor{
  left:auto !important;
  right:18px !important;
  top:18px !important;
}
}