/* ================== CARDTOT – LIÊN HỆ/TƯ VẤN (2 STEP) ================== */

*,
*::before,
*::after { box-sizing: border-box; }

body { font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif; }

.ct-hidden { display: none !important; }

/* ===== Inline button (đặt bất kỳ đâu) ===== */
.ct-contact-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 18px; border-radius:999px; border:none;
  background:#004c3f; color:#fff;
  font-size:14px; font-weight:600; cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
  transition:all .2s ease;
  text-decoration:none;
}
.ct-contact-btn:hover{ background:#006f5b; transform:translateY(-1px); }

/* ===== Floating button ===== */
#ct-contact-float{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:9999;
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 18px; border-radius:999px; border:none;
  background:#004c3f; color:#fff;
  font-size:14px; font-weight:600; cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
  transition:all .2s ease;
}
#ct-contact-float:hover{ background:#006f5b; transform:translateY(-1px); }

@media (max-width:480px){
  #ct-contact-float{ right:10px; bottom:14px; padding:8px 14px; font-size:13px; }
}

/* ===== Overlay & Modal ===== */
#ct-contact-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.5);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9998;
}

#ct-contact-modal{
  width:100%;
  max-width:520px;
  margin:0 12px;
  background:#fff;
  border-radius:20px;
  padding:20px 18px 18px;
  box-shadow:0 24px 48px rgba(0,0,0,.25);
  position:relative;
}

/* Close */
#ct-contact-close{
  position:absolute;
  top:10px;
  right:10px;
  width:30px;
  height:30px;
  border-radius:999px;
  border:none;
  background:#e5e7eb;
  color:#111827;
  cursor:pointer;
  font-size:18px;
  font-weight:700;
}

/* Header */
.ct-contact-title{
  margin:0 36px 4px 4px;
  font-size:18px;
  font-weight:700;
  color:#004c3f;
}
.ct-contact-sub{
  margin:0 30px 12px 4px;
  font-size:13px;
  color:#6b7280;
}

/* ===== Stepper 2 bước (giống style form mở thẻ) ===== */
.ct-contact-stepper{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin:4px 0 10px;
}
.ct-contact-stepper-item{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  font-size:11px;
  color:#9ca3af;
}
.ct-contact-stepper-item::after{
  content:'';
  position:absolute;
  top:15px;
  right:-50%;
  width:100%;
  height:2px;
  background:#e5e7eb;
  z-index:0;
}
.ct-contact-stepper-item:last-child::after{ display:none; }

.ct-contact-stepper-circle{
  width:26px;
  height:26px;
  border-radius:999px;
  border:2px solid #e5e7eb;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
  z-index:1;
}
.ct-contact-stepper-label{ margin-top:4px; text-align:center; }

.ct-contact-stepper-item.is-done .ct-contact-stepper-circle{
  border-color:#004c3f;
  background:#004c3f;
  color:#fff;
}
.ct-contact-stepper-item.is-done::after{ background:#004c3f; }
.ct-contact-stepper-item.is-done .ct-contact-stepper-label{ color:#004c3f; }

.ct-contact-stepper-item.is-active .ct-contact-stepper-circle{
  border-color:#004c3f;
  background:#ecfdf5;
  color:#004c3f;
}
.ct-contact-stepper-item.is-active .ct-contact-stepper-label{ color:#004c3f; }

/* Progress */
.ct-contact-progress-bar{
  width:100%;
  height:6px;
  border-radius:999px;
  background:#e5e7eb;
  overflow:hidden;
  margin-bottom:14px;
}
#ct-contact-progress{
  width:50%;
  height:100%;
  background:#004c3f;
  transition:width .3s ease;
}

/* Steps */
.ct-contact-step{ display:none; }
.ct-contact-step.active{ display:block; }

.ct-contact-step h4{
  margin:0 0 10px;
  font-size:15px;
  font-weight:600;
  color:#111827;
}

/* Chips */
.ct-contact-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}
.ct-contact-chip{
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#f9fafb;
  font-size:13px;
  color:#111827;
  cursor:pointer;
  transition:all .15s ease;
}
.ct-contact-chip:hover{
  border-color:#004c3f;
  background:#ecfdf5;
}
.ct-contact-chip.selected{
  border-color:#004c3f;
  background:#ecfdf5;
  font-weight:600;
}

/* Textarea */
#ct-contact-form textarea{
  width:100%;
  min-height:110px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #d1d5db;
  margin-bottom:10px;
  font-size:14px;
  resize:vertical;
}
#ct-contact-form textarea:focus{
  outline:none;
  border-color:#004c3f;
  box-shadow:0 0 0 1px rgba(0,76,63,.12);
}

/* Inputs */
#ct-contact-form input[type="text"],
#ct-contact-form input[type="email"],
#ct-contact-form input[type="tel"],
#ct-contact-form input[type="number"]{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #d1d5db;
  margin-bottom:10px;
  font-size:14px;
}
#ct-contact-form input:focus{
  outline:none;
  border-color:#004c3f;
  box-shadow:0 0 0 1px rgba(0,76,63,.12);
}

/* Buttons */
.ct-contact-actions{
  display:flex;
  gap:10px;
  margin-top:4px;
}
.ct-contact-back{
  flex:0 0 auto;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}
.ct-contact-next,
#ct-contact-form button[type="submit"]{
  flex:1 1 auto;
  width:100%;
  padding:11px 14px;
  border-radius:12px;
  border:none;
  background:#004c3f;
  color:#fff;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}
.ct-contact-next:hover,
#ct-contact-form button[type="submit"]:hover{
  background:#006f5b;
}

/* Anti-bot */
.ct-contact-antibot{
  display:block;
  margin:6px 0 4px;
  font-size:13px;
  color:#4b5563;
}

/* Note & success */
.ct-contact-note{
  margin-top:8px;
  font-size:12px;
  color:#6b7280;
}
.ct-contact-note a{
  color:#004c3f;
  text-decoration:underline;
}

#ct-contact-success{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#ecfdf5;
  color:#064e3b;
  font-size:13px;
  font-weight:500;
}

@media (max-width:480px){
  #ct-contact-modal{ margin:0 10px; padding:18px 14px 14px; }
  .ct-contact-sub{ margin-right:10px; }
  .ct-contact-stepper-label{ font-size:10px; }
}
