/* =========================================================
   POWER SATELLITES — CONTACT
   assets/css/41-contact.css
   Strona Kontakt + Contact Form 7
   ========================================================= */

/* SECTION / LAYOUT */
.ps-contact-section{
  padding:82px 0;
  background:linear-gradient(180deg,#fff 0,#f5f9fd 100%);
}

.ps-contact-layout{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);
  gap:34px;
  align-items:start;
}

/* LEFT CARD — FORM */
.ps-contact-form-card.contact-card{
  position:relative;
  overflow:hidden;
  padding:34px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 8%,rgba(255,255,255,.13),transparent 30%),
    linear-gradient(135deg,#0f406c 0,#0b2946 100%);
  border:0;
  border-radius:30px;
  box-shadow:0 24px 70px rgba(15,64,108,.24);
}

.ps-contact-form-card.contact-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 38%);
  pointer-events:none;
}

.ps-contact-form-card.contact-card>*{
  position:relative;
  z-index:1;
}

.ps-contact-card-head{
  margin-bottom:26px;
  padding-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.14);
}

.ps-contact-card-head .eyebrow{
  color:#bfe4ff!important;
}

.ps-contact-card-head h2{
  margin:8px 0 10px;
  color:#fff;
  font-size:clamp(28px,2.6vw,38px);
  line-height:1.1;
}

.ps-contact-card-head p{
  max-width:720px;
  margin:0;
  color:rgba(219,234,254,.88);
  font-size:16px;
  line-height:1.65;
}

.ps-contact-form-card .wpcf7{
  margin-top:0;
}

/* RIGHT CARD — CONTACT DATA */
.ps-contact-side-card.contact-card{
  position:sticky;
  top:132px;
  padding:30px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:0 18px 50px rgba(12,37,64,.08);
}

.ps-contact-side-head{
  margin-bottom:22px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line);
}

.ps-contact-side-head h2{
  margin:8px 0 8px;
  color:var(--ink);
  font-size:32px;
}

.ps-contact-side-head p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.ps-contact-tiles{
  display:grid;
  gap:12px;
}

.ps-contact-tile{
  display:grid;
  gap:6px;
  padding:17px 18px;
  color:inherit;
  text-decoration:none;
  background:#f8fafc;
  border:1px solid #dfe8f2;
  border-radius:20px;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background-color .18s ease;
}

.ps-contact-tile:hover{
  background:#fff;
  border-color:rgba(15,64,108,.32);
  box-shadow:0 12px 28px rgba(12,37,64,.07);
  transform:translateY(-1px);
}

.ps-contact-tile span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ps-contact-tile strong{
  color:#0f406c;
  font-size:18px;
  line-height:1.2;
}

.ps-contact-company-box{
  margin-top:22px;
  padding:22px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  border:1px solid #dfe8f2;
  border-radius:22px;
}

.ps-contact-company-box .eyebrow{
  margin-bottom:10px;
}

.ps-contact-company-box address{
  margin:0;
  color:#334155;
  font-style:normal;
  line-height:1.6;
}

.ps-contact-company-box address strong{
  display:block;
  margin-bottom:4px;
  color:var(--ink);
}

.ps-contact-help-box{
  margin-top:16px;
  padding:22px;
  color:#fff;
  background:linear-gradient(135deg,#0f406c,#071525);
  border-radius:22px;
}

.ps-contact-help-box strong{
  display:block;
  margin-bottom:12px;
  font-size:18px;
}

.ps-contact-help-box ul{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.ps-contact-help-box li{
  position:relative;
  padding-left:20px;
  color:#dbeafe;
  line-height:1.45;
}

.ps-contact-help-box li::before{
  content:"";
  position:absolute;
  left:0;
  top:.58em;
  width:8px;
  height:8px;
  background:#bfe4ff;
  border-radius:50%;
}

/* CF7 FORM */
.ps-cf7-form{
  display:grid;
  gap:20px;
}

.ps-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.ps-form-field{
  display:grid;
  gap:6px;
}

.ps-form-field-full{
  grid-column:1/-1;
}

.ps-cf7-form label{
  display:block;
  margin:0;
  color:#fff;
  font-size:13px;
  font-weight:850;
  letter-spacing:.02em;
  line-height:1.15;
}

.ps-cf7-form label span{
  color:#bfe4ff;
}

.ps-cf7-form input,
.ps-cf7-form select,
.ps-cf7-form textarea{
  width:100%;
  min-height:54px;
  margin:0;
  padding:15px 17px;
  color:#122033;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  outline:0;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}

.ps-cf7-form input::placeholder,
.ps-cf7-form textarea::placeholder{
  color:#7b8da4;
}

.ps-cf7-form input:focus,
.ps-cf7-form select:focus,
.ps-cf7-form textarea:focus{
  background:#fff;
  border-color:#bfe4ff;
  box-shadow:0 0 0 4px rgba(191,228,255,.18),0 12px 30px rgba(0,0,0,.10);
}

.ps-cf7-form textarea{
  min-height:210px;
  line-height:1.55;
  resize:vertical;
}

/* FILE FIELD */
.ps-file-field{
  gap:6px;
}

.ps-file-field small{
  display:block;
  margin-top:3px;
  color:rgba(219,234,254,.74);
  font-size:13px;
  line-height:1.35;
}

.ps-cf7-form input[type=file]{
  padding:13px;
  background:#fff;
  border-style:dashed;
  cursor:pointer;
}

.ps-cf7-form input[type=file]::file-selector-button{
  margin-right:12px;
  padding:9px 13px;
  color:#fff;
  font-weight:800;
  background:#0f406c;
  border:0;
  border-radius:12px;
  cursor:pointer;
}

/* ACCEPTANCE / CHECKBOX */
.ps-form-consent{
  margin-top:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
}

.ps-form-consent .wpcf7-form-control-wrap,
.ps-form-consent .wpcf7-acceptance,
.ps-form-consent .wpcf7-list-item{
  display:block;
  width:100%;
  margin:0;
}

.ps-form-consent label{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr);
  column-gap:12px;
  align-items:start;
  width:100%;
  margin:0;
  padding:14px 16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:16px;
  cursor:pointer;
}

.ps-form-consent input[type=checkbox]{
  position:static!important;
  appearance:auto;
  -webkit-appearance:checkbox;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  min-height:18px!important;
  padding:0!important;
  margin:1px 0 0!important;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:5px!important;
  box-shadow:none!important;
  accent-color:#0f406c;
  cursor:pointer;
}

.ps-form-consent .wpcf7-list-item-label{
  display:block;
  min-width:0;
  max-width:100%;
  color:rgba(219,234,254,.88);
  font-size:13px;
  font-weight:650;
  line-height:1.32;
  letter-spacing:-.01em;
}

.ps-form-consent a{
  color:#fff;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* BOTTOM / SUBMIT */
.ps-form-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:2px;
}

.ps-form-bottom p{
  margin:0;
  color:rgba(219,234,254,.78);
  font-size:13px;
  line-height:1.45;
}

.ps-form-submit{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:2px;
}

.ps-form-submit input,
.wpcf7-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:210px;
  min-height:52px;
  padding:15px 24px!important;
  color:#0f406c!important;
  font-weight:900;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.25)!important;
  border-radius:16px!important;
  box-shadow:0 14px 32px rgba(0,0,0,.16);
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}

.ps-form-submit input:hover,
.wpcf7-submit:hover{
  background:#eef6ff!important;
  box-shadow:0 18px 38px rgba(0,0,0,.20);
  transform:translateY(-1px);
}

/* CF7 SYSTEM */
.ps-cf7-form .wpcf7-spinner{
  margin:0;
}

.wpcf7-form p{
  margin:0 0 14px;
}

.ps-cf7-form .wpcf7-not-valid,
.wpcf7-not-valid{
  border-color:#ef4444!important;
  box-shadow:0 0 0 4px rgba(239,68,68,.08)!important;
}

.ps-cf7-form .wpcf7-not-valid-tip,
.wpcf7-not-valid-tip{
  margin-top:7px;
  color:#ffd3d3;
  font-size:13px;
  font-weight:800;
}

.ps-cf7-form .wpcf7-response-output,
.wpcf7-response-output{
  margin:18px 0 0!important;
  padding:14px 16px!important;
  color:#fff!important;
  font-weight:800;
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.22)!important;
  border-radius:16px!important;
}

.contact-card .wpcf7 form.invalid .wpcf7-response-output,
.ps-contact-form-card form.invalid .wpcf7-response-output{
  background:rgba(239,68,68,.13)!important;
  border-color:rgba(252,165,165,.65)!important;
}

.contact-card .wpcf7 form.sent .wpcf7-response-output,
.ps-contact-form-card form.sent .wpcf7-response-output{
  background:rgba(34,197,94,.16)!important;
  border-color:rgba(134,239,172,.65)!important;
}

/* RESPONSIVE */
@media(max-width:980px){
  .ps-contact-layout{
    grid-template-columns:1fr;
  }

  .ps-contact-side-card.contact-card{
    position:static;
  }
}

@media(max-width:700px){
  .ps-contact-section{
    padding:56px 0;
  }

  .ps-contact-form-card.contact-card,
  .ps-contact-side-card.contact-card{
    padding:22px;
    border-radius:24px;
  }

  .ps-contact-card-head{
    margin-bottom:22px;
    padding-bottom:18px;
  }

  .ps-form-grid{
    grid-template-columns:1fr;
  }

  .ps-cf7-form{
    gap:18px;
  }

  .ps-form-field{
    gap:6px;
  }

  .ps-cf7-form textarea{
    min-height:180px;
  }

  .ps-form-bottom{
    display:grid;
  }

  .ps-form-submit input,
  .wpcf7-submit{
    width:100%;
  }

  .ps-form-consent label{
    grid-template-columns:19px minmax(0,1fr);
    column-gap:11px;
    padding:13px 14px;
    border-radius:15px;
  }

  .ps-form-consent .wpcf7-list-item-label{
    font-size:12.5px;
    line-height:1.3;
  }

  .ps-form-consent input[type=checkbox]{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    max-width:18px!important;
  }
}