/* Contact Supplier Pro – Premium Dark/Gold UI */

html.cspro-lock, html.cspro-lock body{overflow:hidden}

:root{
  --cspro-bg:#07070a;
  --cspro-surface:#0d0e14;
  --cspro-surface-2:#121422;
  --cspro-text:#f5f5f7;
  --cspro-muted:#a7aab6;
  --cspro-gold:#d4af37;
  --cspro-gold-2:#f6d77c;
  --cspro-border:rgba(212,175,55,.22);
  --cspro-shadow:0 24px 60px rgba(0,0,0,.55);
}

.cspro-contact-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.08);
  font-weight:700;letter-spacing:.2px;cursor:pointer;text-decoration:none;
  transition:transform .15s ease, filter .15s ease, opacity .15s ease;
}
.cspro-contact-btn:hover{transform:translateY(-1px);filter:brightness(1.05)}
.cspro-contact-btn:active{transform:translateY(0);opacity:.9}

.cspro-modal-root{position:fixed;inset:0;z-index:999999;display:none;pointer-events:none}
.cspro-modal-root.is-open{display:block;pointer-events:auto}
.cspro-overlay{
  pointer-events:auto;

  position:fixed;inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
}

.cspro-dialog{
  position:fixed;
  left:50%;
  top:14px;
  transform:translateX(-50%);
  width:min(1040px, calc(100vw - 28px));
  height:auto;
  background:linear-gradient(180deg, rgba(212,175,55,.10), transparent 34%), var(--cspro-surface);
  border:1px solid var(--cspro-border);
  border-radius:20px;
  box-shadow:var(--cspro-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 28px);
}

.cspro-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;
  background:linear-gradient(90deg, rgba(212,175,55,.20), rgba(212,175,55,.05));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.cspro-title{margin:0;font-size:18px;color:var(--cspro-text);font-weight:800;letter-spacing:.2px}
.cspro-close{
  width:40px;height:40px;border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--cspro-text);
  cursor:pointer;
}
.cspro-close:hover{border-color:rgba(212,175,55,.35);background:rgba(0,0,0,.35)}

/*
  Keep the original 2-column layout (product left, form right).
  To avoid the *blank black area* under the product card, we let the product
  panel visually fill the column height and center its content.
*/
.cspro-body{
  display:grid;
  align-items:start;
  grid-template-columns: 340px 1fr;
  gap:16px;
  padding:16px;
  flex:1;
  min-height:0;
  overflow:auto;
}

.cspro-body > *{min-height:0}

.cspro-product{
  /* Fill the left column height so the area is not visually "blank" */
  align-self:stretch;
  height:100%;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  min-height:140px;
}
.cspro-product img{
  width:102px;height:102px;object-fit:cover;border-radius:14px;
  border:1px solid rgba(212,175,55,.25);
}
.cspro-img-ph{width:102px;height:102px;border-radius:14px;background:rgba(255,255,255,.05);border:1px dashed rgba(255,255,255,.10)}
.cspro-product-name{margin:0 0 8px;color:var(--cspro-text);font-weight:800;line-height:1.25}
.cspro-product-link{color:var(--cspro-gold-2);text-decoration:none;font-weight:700}
.cspro-product-link:hover{text-decoration:underline}

/* Slightly larger product preview on wider screens (helps fill the left panel). */
@media (min-width: 900px){
  .cspro-product img{width:140px;height:140px}
  .cspro-img-ph{width:140px;height:140px}
}

.cspro-form{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:16px;
  /* Space for sticky action bar so content never hides behind it */
  padding-bottom:18px;
  overflow:visible;
  min-height:0;
  display:flex;
  flex-direction:column;
}

.cspro-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.cspro-step-pill{
  padding:8px 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--cspro-muted);
  font-weight:800;font-size:13px;
  background:rgba(0,0,0,.18);
}
.cspro-step-pill.is-active{
  color:#14110a;
  background:linear-gradient(90deg, var(--cspro-gold), var(--cspro-gold-2));
  border-color:rgba(212,175,55,.45);
}

.cspro-field{margin:8px 0}
.cspro-field label{display:block;margin-bottom:8px;color:var(--cspro-muted);font-weight:800;font-size:12px;letter-spacing:.2px}
.cspro-field input,
.cspro-field select,
.cspro-field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--cspro-text);
  outline:none;
}
/* Compact requirement textarea (premium, non-intrusive) */
.cspro-field textarea{
  min-height:76px !important;
  height:76px !important;
  max-height:110px !important;
  border-radius:16px;
  background:rgba(0,0,0,.25) !important;
  color:var(--cspro-text) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  resize:none !important;
  overflow:auto;
}
.cspro-field textarea:focus{
  height:96px !important;
}
.cspro-field input:focus,
.cspro-field select:focus,
.cspro-field textarea:focus{
  border-color:rgba(212,175,55,.55);
  box-shadow:0 0 0 3px rgba(212,175,55,.14);
}

.cspro-phone{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:10px;
  align-items:center;
}
.cspro-phone-cc{
  height:44px;
}
.cspro-phone-cc-static{
  display:flex;align-items:center;justify-content:center;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--cspro-gold-2);
  font-weight:900;
  letter-spacing:.4px;
}
.cspro-phone-num{height:44px}

/* Unified phone input (single premium field) */
.cspro-phone.cspro-phone-unified{
  display:flex;
  gap:0;
  align-items:center;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  border-radius:16px;
  padding:6px;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.cspro-phone.cspro-phone-unified:focus-within{
  border-color:rgba(212,175,55,.55);
  box-shadow:0 0 0 3px rgba(212,175,55,.14), 0 14px 30px rgba(0,0,0,.45);
}
.cspro-phone-unified .cspro-phone-cc,
.cspro-phone-unified .cspro-phone-cc-static{
  border:none !important;
  background:transparent !important;
  height:44px;
  padding:0 12px;
  border-radius:12px;
  color:var(--cspro-gold-2);
  font-weight:900;
}
.cspro-phone-unified .cspro-phone-cc{
  width:180px;
}
.cspro-phone-unified .cspro-phone-cc-static{
  width:120px;
  justify-content:flex-start;
}
.cspro-phone-unified .cspro-phone-cc::after{
  content:'';
}
.cspro-phone-unified .cspro-phone-num{
  border:none !important;
  background:transparent !important;
  height:44px;
  padding:0 12px;
  color:var(--cspro-text);
  flex:1;
  min-width:0;
}
.cspro-phone-unified .cspro-phone-num::placeholder{color:rgba(245,245,247,.45)}
.cspro-phone-unified .cspro-phone-cc,
.cspro-phone-unified .cspro-phone-cc-static{
  border-right:1px solid rgba(212,175,55,.28) !important;
  margin-right:6px;
}

@media (min-width: 900px){
  .cspro-dialog{max-height:min(760px, calc(100vh - 28px));}
}

@media (max-width: 680px){
  .cspro-phone-unified .cspro-phone-cc{width:46%}
  .cspro-phone-unified .cspro-phone-cc-static{width:38%}
}


.cspro-grid{display:grid;grid-template-columns: 1fr 1fr;gap:12px}
.cspro-grid.cspro-grid-single{grid-template-columns:1fr}

.cspro-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding:0;
  position:static;
  background:transparent;
  border-top:0;
  backdrop-filter:none;
  margin-bottom:10px;
}

.cspro-actions .cspro-btn-secondary{min-width:120px}
.cspro-actions .cspro-submit-btn{margin-left:auto}
.cspro-btn{
  padding:12px 16px;border-radius:14px;border:1px solid transparent;
  font-weight:900;letter-spacing:.2px;cursor:pointer;
  transition:transform .15s ease, filter .15s ease, opacity .15s ease;
}
.cspro-btn:disabled{opacity:.55;cursor:not-allowed}
.cspro-btn-primary{
  background:linear-gradient(90deg, var(--cspro-gold), var(--cspro-gold-2));
  color:#14110a;
  border-color:rgba(212,175,55,.55);
  box-shadow:0 10px 24px rgba(212,175,55,.12);
  min-width:170px;
}
.cspro-btn-primary:hover{transform:translateY(-1px);filter:brightness(1.03)}
.cspro-btn-secondary{
  background:transparent;
  color:var(--cspro-text);
  border-color:rgba(212,175,55,.35);
}
.cspro-btn-secondary:hover{background:rgba(212,175,55,.08)}
.cspro-submit-btn{min-width:180px}

@media (max-width: 680px){
  .cspro-body{grid-template-columns:1fr}
  .cspro-product{min-height:auto}
  .cspro-actions{gap:12px}
  .cspro-actions .cspro-btn{flex:1}
  .cspro-actions .cspro-submit-btn{margin-left:0}
}

.cspro-note{
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
  border-radius:16px;
  color:var(--cspro-text);
}
.cspro-note strong{color:var(--cspro-gold-2)}
.cspro-alert{
  padding:10px 12px;border-radius:14px;margin:12px 0;
  border:1px solid rgba(255,255,255,.10);
}
.cspro-alert-ok{background:rgba(46,204,113,.10);border-color:rgba(46,204,113,.28)}
.cspro-alert-error{background:rgba(231,76,60,.10);border-color:rgba(231,76,60,.30)}

.cspro-skel{
  padding:14px;border-radius:14px;border:1px dashed rgba(255,255,255,.12);
  color:var(--cspro-muted);
  background:rgba(0,0,0,.18);
}

@media (max-width: 860px){
  .cspro-body{grid-template-columns:1fr}
  .cspro-product{min-height:auto}
  .cspro-phone{grid-template-columns: 1fr}
  .cspro-actions{flex-direction:column-reverse;align-items:stretch}
  .cspro-btn-primary,.cspro-btn-secondary{width:100%}
}

.cspro-field-span2{grid-column:1 / -1}

/* OTP popup overlay */
.cspro-otp-pop-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
.cspro-otp-pop-card{
  width:min(520px, 100%);
  border-radius:22px;
  border:1px solid rgba(212,175,55,.25);
  background:linear-gradient(180deg, rgba(18,19,26,.98), rgba(10,10,14,.98));
  box-shadow:0 30px 80px rgba(0,0,0,.65);
  overflow:hidden;
}
.cspro-otp-pop-head{
  position:relative;
  padding:18px 18px 14px;
  background:linear-gradient(90deg, rgba(212,175,55,.15), rgba(0,0,0,0));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cspro-otp-pop-title{font-size:18px;font-weight:900;color:var(--cspro-text)}
.cspro-otp-pop-sub{margin-top:6px;color:rgba(245,245,247,.72);font-size:13px}
.cspro-otp-pop-close{
  position:absolute;right:12px;top:12px;
  width:38px;height:38px;border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--cspro-text);
  font-size:22px;line-height:1;
}
.cspro-otp-pop-close:hover{border-color:rgba(212,175,55,.45)}
.cspro-otp-pop-body{padding:16px}
.cspro-otp-to{padding:10px 12px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(0,0,0,.22)}
.cspro-otp-to-label{color:rgba(245,245,247,.65);font-size:12px}
.cspro-otp-to-number{margin-top:4px;color:var(--cspro-gold-2);font-weight:900;letter-spacing:.3px}


/* Message box compact + premium */
.cspro-field textarea.cspro-msg{
  height:72px !important;
  min-height:72px !important;
  max-height:120px !important;
  resize:none !important;
  line-height:1.35 !important;
  padding:12px 14px !important;
  border-radius:18px !important;
}
.cspro-field textarea.cspro-msg:focus{
  height:112px !important;
  min-height:112px !important;
}



/* Force compact requirement box */
.cspro-field textarea.cspro-msg{
  min-height:76px !important;
  height:76px !important;
  max-height:120px !important;
  resize:none !important;
}
.cspro-field textarea.cspro-msg:focus{
  height:96px !important;
}


@media (max-width: 520px){
  .cspro-dialog{
    top:10px;
    height:calc(100vh - 20px);
    max-height:calc(100vh - 20px);
    width:calc(100vw - 16px);
    border-radius:18px;
  }
}


/* FIX: remove blank black space under product card */
.cspro-left,
.cspro-product-card,
.cspro-product-wrap {
    min-height: auto !important;
    height: auto !important;
}

.cspro-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cspro-product-image {
    aspect-ratio: 4 / 3;
    height: auto;
}

@media (max-width: 768px) {
    .cspro-left {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}
