/* ======================================================
   VARITO CONTACT FORM  — Professional Design
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Custom Properties ── */
:root {
  --vcf-pink:      #e5006d;
  --vcf-pink-dark: #b8005a;
  --vcf-pink-glow: rgba(229, 0, 109, 0.18);
  --vcf-dark:      #0d0d1a;
  --vcf-dark-2:    #13131f;
  --vcf-text:      #1a1a2e;
  --vcf-muted:     #6b7280;
  --vcf-border:    #e2e8f0;
  --vcf-input-bg:  #f8fafc;
  --vcf-white:     #ffffff;
  --vcf-radius:    12px;
  --vcf-shadow:    0 25px 60px rgba(0,0,0,.12);
  --vcf-font:      'Plus Jakarta Sans', system-ui, sans-serif;
  --vcf-trans:     all .22s cubic-bezier(.4,0,.2,1);
}

/* ── Wrapper ── */
.vcf-wrap {
  display: flex;
  gap: 0;
  max-width: 1080px;
  margin: 48px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--vcf-shadow);
  font-family: var(--vcf-font);
}

/* ══════════════════════════════
   LEFT SIDE PANEL
══════════════════════════════ */
.vcf-side {
  position: relative;
  flex: 0 0 340px;
  background: var(--vcf-dark);
  color: #fff;
  padding: 52px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vcf-side__inner { position: relative; z-index: 2; }

.vcf-side__tag {
  display: inline-block;
  background: var(--vcf-pink-glow);
  border: 1px solid rgba(229,0,109,.4);
  color: #ff5fa8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.vcf-side__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  color: #fff;
}

.vcf-side__body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin: 0 0 32px;
}

.vcf-benefits {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vcf-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.vcf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--vcf-pink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.vcf-side__divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: 28px;
}

.vcf-trust {
  display: flex;
  gap: 0;
}

.vcf-trust__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 0 0;
  border-right: 1px solid rgba(255,255,255,.08);
}
.vcf-trust__item:first-child { padding-left: 0; }
.vcf-trust__item:last-child  { border-right: none; }

.vcf-trust__item strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--vcf-pink);
  display: block;
}

.vcf-trust__item span {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Decorative blobs */
.vcf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .25;
  pointer-events: none;
}
.vcf-blob--1 {
  width: 260px; height: 260px;
  background: var(--vcf-pink);
  bottom: -80px; right: -80px;
}
.vcf-blob--2 {
  width: 180px; height: 180px;
  background: #7000ff;
  top: -40px; left: -60px;
}

/* ══════════════════════════════
   RIGHT FORM PANEL
══════════════════════════════ */
.vcf-form-panel {
  flex: 1;
  background: var(--vcf-white);
  padding: 52px 48px;
}

.vcf-form-header { margin-bottom: 30px; }

.vcf-form-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--vcf-text);
  margin: 0 0 6px;
  font-family: var(--vcf-font);
}

.vcf-form-sub {
  font-size: 13.5px;
  color: var(--vcf-muted);
  margin: 0;
}

/* ── Grid rows ── */
.vcf-row { display: flex; gap: 20px; margin-bottom: 20px; }
.vcf-row--2 > .vcf-field { flex: 1; }

/* ── Field ── */
.vcf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vcf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vcf-text);
  letter-spacing: .01em;
}

/* ── Input wrap ── */
.vcf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vcf-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
  transition: var(--vcf-trans);
  z-index: 1;
}

.vcf-input-icon--top {
  top: 14px;
  align-self: flex-start;
}

.vcf-input-wrap input,
.vcf-input-wrap select,
.vcf-input-wrap textarea {
  width: 100%;
  padding: 11px 14px 11px 42px;
  background: var(--vcf-input-bg);
  border: 1.5px solid var(--vcf-border);
  border-radius: var(--vcf-radius);
  font-family: var(--vcf-font);
  font-size: 14px;
  color: var(--vcf-text);
  transition: var(--vcf-trans);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.vcf-input-wrap input::placeholder,
.vcf-input-wrap textarea::placeholder {
  color: #c0c7d0;
}

.vcf-input-wrap input:focus,
.vcf-input-wrap select:focus,
.vcf-input-wrap textarea:focus {
  border-color: var(--vcf-pink);
  background: #fff;
  box-shadow: 0 0 0 4px var(--vcf-pink-glow);
}

.vcf-input-wrap:focus-within .vcf-input-icon {
  color: var(--vcf-pink);
}

/* ── Select ── */
.vcf-select-wrap { position: relative; }

.vcf-select-caret {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

/* ── Textarea ── */
.vcf-textarea-wrap textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 12px;
}

/* ── Field error ── */
.vcf-field-error {
  font-size: 12px;
  color: #e53e3e;
  min-height: 16px;
  display: block;
  line-height: 1.4;
}

/* ── Invalid state ── */
.vcf-field.vcf-invalid .vcf-input-wrap input,
.vcf-field.vcf-invalid .vcf-input-wrap select,
.vcf-field.vcf-invalid .vcf-input-wrap textarea {
  border-color: #e53e3e;
  background: #fff5f5;
}

.vcf-field.vcf-invalid .vcf-input-icon { color: #e53e3e; }

/* ── Valid state ── */
.vcf-field.vcf-valid .vcf-input-wrap input,
.vcf-field.vcf-valid .vcf-input-wrap select,
.vcf-field.vcf-valid .vcf-input-wrap textarea {
  border-color: #38a169;
}

.vcf-field.vcf-valid .vcf-input-icon { color: #38a169; }

/* ── Notices ── */
.vcf-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--vcf-radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: vcfSlideIn .3s ease;
}

.vcf-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.vcf-notice--success {
  background: #f0fff4;
  border: 1.5px solid #9ae6b4;
  color: #276749;
}

.vcf-notice--error {
  background: #fff5f5;
  border: 1.5px solid #feb2b2;
  color: #c53030;
}

@keyframes vcfSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Submit row ── */
.vcf-submit-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vcf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--vcf-pink);
  color: #fff;
  font-family: var(--vcf-font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--vcf-radius);
  cursor: pointer;
  transition: var(--vcf-trans);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  letter-spacing: .01em;
}

.vcf-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: var(--vcf-trans);
}

.vcf-btn:hover {
  background: var(--vcf-pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(229, 0, 109, .4);
}

.vcf-btn:hover::before { opacity: 1; }

.vcf-btn:active { transform: translateY(0); }

.vcf-btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform .22s ease;
}
.vcf-btn:hover .vcf-btn__arrow { transform: translateX(4px); }

.vcf-btn__spinner {
  display: none;
}
.vcf-btn__spinner svg {
  width: 18px;
  height: 18px;
  animation: vcfSpin .8s linear infinite;
}

@keyframes vcfSpin {
  to { transform: rotate(360deg); }
}

.vcf-btn.vcf-loading .vcf-btn__label,
.vcf-btn.vcf-loading .vcf-btn__arrow {
  display: none;
}
.vcf-btn.vcf-loading .vcf-btn__spinner {
  display: inline-flex;
}

.vcf-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none !important;
}

.vcf-privacy {
  font-size: 12px;
  color: var(--vcf-muted);
  margin: 0;
}

/* ── Honeypot ── */
.vcf-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 860px) {
  .vcf-wrap {
    flex-direction: column;
    border-radius: 16px;
    margin: 24px 16px;
  }
  .vcf-side { flex: none; padding: 36px 28px; }
  .vcf-trust { gap: 8px; }
  .vcf-form-panel { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .vcf-row--2 {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }
  .vcf-row--2 .vcf-field { margin-bottom: 18px; }
  .vcf-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════
   CUSTOM CAPTCHA
══════════════════════════════ */

.vcf-captcha-block { margin-top: 4px; }

.vcf-captcha-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Canvas card */
.vcf-captcha-canvas-wrap {
  position: relative;
  flex-shrink: 0;
}

#vcf-captcha-canvas {
  display: block;
  border-radius: 10px;
  border: 1.5px solid var(--vcf-border);
  background: #f1f5f9;
  cursor: default;
  user-select: none;
}

/* Refresh button overlapping top-right of canvas */
.vcf-captcha-refresh {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vcf-white);
  border: 1.5px solid var(--vcf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--vcf-trans);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.vcf-captcha-refresh svg {
  width: 13px;
  height: 13px;
  color: var(--vcf-muted);
  transition: var(--vcf-trans);
}

.vcf-captcha-refresh:hover {
  background: var(--vcf-pink);
  border-color: var(--vcf-pink);
}

.vcf-captcha-refresh:hover svg { color: #fff; }

.vcf-captcha-refresh.vcf-spinning svg {
  animation: vcfSpin .6s linear infinite;
}

/* Answer input side */
.vcf-captcha-answer-wrap {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vcf-captcha-hint {
  font-size: 11.5px;
  color: var(--vcf-muted);
  margin: 4px 0 0;
}

/* Invalid state for captcha */
#field-vcf_captcha.vcf-invalid #vcf-captcha-canvas {
  border-color: #e53e3e;
}

/* Responsive */
@media (max-width: 480px) {
  .vcf-captcha-inner { flex-direction: column; align-items: flex-start; }
  #vcf-captcha-canvas { width: 240px; height: 60px; }
  .vcf-captcha-answer-wrap { width: 100%; }
}

/* ── Inquiry Type & Quotation Fields ── */

/* Required star */
.vcf-required-star {
  color: var(--vcf-pink);
  margin-left: 2px;
}

/* Quotation fields wrapper — slides in/out via jQuery */
.vcf-quotation-fields {
  overflow: hidden;
}

/* Subtle animated reveal border */
.vcf-quotation-fields .vcf-row {
  padding: 20px 20px 8px;
  margin: 0 -20px 12px;
  background: linear-gradient(135deg, rgba(229,0,109,.04) 0%, rgba(229,0,109,.01) 100%);
  border-left: 3px solid var(--vcf-pink);
  border-radius: 0 10px 10px 0;
  animation: vcf-slide-in .28s cubic-bezier(.4,0,.2,1);
}

@keyframes vcf-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
