/* ===============================
   POPUP OVERLAY
================================ */

#cwsPopupOverlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.65);
  backdrop-filter:blur(6px);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:999999;
  opacity:0;
  visibility:hidden;
  transition:all 0.35s ease;
}

#cwsPopupOverlay.active{
  opacity:1;
  visibility:visible;
}

/* ===============================
   BODY LOCK
================================ */

body.cws-body-lock{
  overflow:hidden !important;
}

/* ===============================
   POPUP CARD
================================ */

.cwsPopupCard{
  background:#ffffff;
  width:95%;
  max-width:820px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:18px;
  padding:40px;
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
  animation:cwsFadeUp 0.35s ease;
}

@keyframes cwsFadeUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===============================
   CLOSE BUTTON
================================ */

#cwsClosePopup{
  position:absolute;
  top:18px;
  right:22px;
  font-size:22px;
  cursor:pointer;
  color:#64748b;
  transition:0.3s;
}

#cwsClosePopup:hover{
  color:#0f172a;
  transform:scale(1.1);
}

/* ===============================
   HEADINGS
================================ */

.cwsPopupCard h2{
  font-size:26px;
  margin-bottom:25px;
  font-weight:700;
  color:#0f172a;
}

/* ===============================
   SECTION TITLES
================================ */

.section-title{
  margin:30px 0 15px;
  font-weight:700;
  font-size:18px;
  color:#1e3a8a;
  border-left:4px solid #376299;
  padding-left:12px;
}

/* ===============================
   FORM GROUP
================================ */

.form-group{
  margin-bottom:20px;
}

label{
  font-weight:600;
  font-size:14px;
  margin-bottom:8px;
  display:block;
  color:#334155;
}

/* ===============================
   INPUTS
================================ */

input,
select,
textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  font-size:14px;
  background:#f9fafc;
  transition:all 0.25s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#376299;
  background:#fff;
  box-shadow:0 0 0 3px rgba(55,98,153,0.15);
  outline:none;
}

textarea{
  resize:none;
  min-height:100px;
}

/* ===============================
   ROW GRID
================================ */

.row{
  display:flex;
  gap:18px;
}

.row .form-group{
  flex:1;
}

/* ===============================
   PRICE BOX
================================ */

.cws-price-box{
  background:linear-gradient(135deg,#eef4ff,#f8fbff);
  padding:16px;
  border-radius:12px;
  margin-bottom:25px;
  font-size:17px;
  font-weight:600;
  text-align:center;
  border:1px solid #dbeafe;
  color:#1e3a8a;
}

/* ===============================
   CHECKBOX GROUP
================================ */

.checkbox-group{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:15px;
}

.checkbox-group input{
  width:18px;
  height:18px;
  cursor:pointer;
}

/* ===============================
   BUTTON
================================ */

.submit-btn{
  width:100%;
  padding:15px;
  background:linear-gradient(135deg,#376299,#1e3a8a);
  color:#fff;
  border:none;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.3s ease;
}

.submit-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(30,58,138,0.25);
}

/* ===============================
   BUTTON LOADING
================================ */

.submit-btn.loading{
  opacity:0.8;
  pointer-events:none;
  position:relative;
}

.submit-btn.loading::after{
  content:"";
  width:18px;
  height:18px;
  border:2px solid #fff;
  border-top:2px solid transparent;
  border-radius:50%;
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  animation:cwsSpin 0.6s linear infinite;
}

@keyframes cwsSpin{
  to{ transform:translateY(-50%) rotate(360deg); }
}

/* ===============================
   SCROLLBAR STYLING
================================ */

.cwsPopupCard::-webkit-scrollbar{
  width:6px;
}

.cwsPopupCard::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:6px;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media(max-width:768px){

  .cwsPopupCard{
    padding:25px;
    max-height:95vh;
  }

  .row{
    flex-direction:column;
  }

  .cwsPopupCard h2{
    font-size:22px;
  }

  .section-title{
    font-size:16px;
  }

}

.hidden{
  display:none !important;
}

/* =========================
   SUCCESS SCREEN
========================= */

.cws-success-screen{
  text-align:center;
  padding:40px 20px;
  animation:fadeIn 0.5s ease;
}

.cws-success-screen h3{
  font-size:26px;
  margin:20px 0 10px;
  color:#1e7d4d;
}

.cws-success-screen p{
  font-size:15px;
  color:#555;
  margin-bottom:8px;
}

/* Fade animation */
@keyframes fadeIn{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

/* =========================
   CHECKMARK ANIMATION
========================= */

.cws-checkmark{
  width:80px;
  height:80px;
  margin:0 auto;
}

.check-icon {
  width:80px;
  height:80px;
  position:relative;
  border-radius:50%;
  box-sizing:content-box;
  border:4px solid #4CAF50;
}

.check-icon::before {
  content:'';
  height:100px;
  position:absolute;
  transform:rotate(-45deg);
}

.icon-line {
  height:5px;
  background-color:#4CAF50;
  display:block;
  border-radius:2px;
  position:absolute;
  z-index:10;
}

.line-tip {
  top:46px;
  left:14px;
  width:25px;
  transform:rotate(45deg);
  animation:icon-line-tip 0.75s;
}

.line-long {
  top:38px;
  right:8px;
  width:47px;
  transform:rotate(-45deg);
  animation:icon-line-long 0.75s;
}

.icon-circle {
  top:-4px;
  left:-4px;
  z-index:10;
  width:80px;
  height:80px;
  border-radius:50%;
  position:absolute;
  box-sizing:content-box;
  border:4px solid rgba(76,175,80,0.5);
}

.icon-fix {
  top:8px;
  width:5px;
  left:26px;
  z-index:1;
  height:85px;
  position:absolute;
  transform:rotate(-45deg);
  background-color:#fff;
}

@keyframes icon-line-tip {
  0% { width:0; left:1px; top:19px; }
  54% { width:0; left:1px; top:19px; }
  70% { width:50px; left:-8px; top:37px; }
  84% { width:17px; left:21px; top:48px; }
  100% { width:25px; left:14px; top:46px; }
}

@keyframes icon-line-long {
  0% { width:0; right:46px; top:54px; }
  65% { width:0; right:46px; top:54px; }
  84% { width:55px; right:0px; top:35px; }
  100% { width:47px; right:8px; top:38px; }
}

.cws-session-control{
    display:flex;
    align-items:center;
    gap:10px;
}

.cws-session-control button{
    width:35px;
    height:35px;
    border:none;
    background:#376299;
    color:#fff;
    font-size:18px;
    border-radius:6px;
    cursor:pointer;
}

.cws-session-control input{
    width:60px;
    text-align:center;
    height:35px;
    border:1px solid #ddd;
    border-radius:6px;
}