/* ── RepairCart Leads — Frontend CSS ────────────────────────────────────── */
:root {
  --rcl-blue:    #1a6ef5;
  --rcl-blue-d:  #1358d0;
  --rcl-green:   #25d366;
  --rcl-text:    #1a1a1a;
  --rcl-muted:   #666;
  --rcl-border:  #e0e0e0;
  --rcl-bg:      #fff;
  --rcl-radius:  12px;
  --rcl-shadow:  0 8px 32px rgba(0,0,0,.18);
}

/* ══ OVERLAY & POPUP ══════════════════════════════════════════════════════ */
.rcl-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: rcl-fadein .2s ease;
}
.rcl-overlay.rcl-hidden { display: none !important; }

.rcl-popup {
  background: var(--rcl-bg);
  border-radius: var(--rcl-radius);
  box-shadow: var(--rcl-shadow);
  padding: 32px 28px 24px;
  max-width: 420px; width: 100%;
  position: relative;
  animation: rcl-slidein .25s ease;
}
.rcl-popup__close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 22px; color: #999; cursor: pointer;
  line-height: 1; padding: 4px 8px;
}
.rcl-popup__close:hover { color: #333; }
.rcl-popup__icon { font-size: 36px; text-align: center; margin-bottom: 8px; }
.rcl-popup__title {
  font-size: 20px; font-weight: 700; text-align: center;
  color: var(--rcl-text); margin: 0 0 6px;
}
.rcl-popup__sub {
  font-size: 14px; color: var(--rcl-muted); text-align: center;
  margin: 0 0 20px;
}
.rcl-popup__success { text-align: center; padding: 20px 0; }
.rcl-success-icon { font-size: 48px; margin-bottom: 8px; }
.rcl-popup__success p { font-size: 15px; color: var(--rcl-text); }

/* ══ SHARED FORM ELEMENTS ════════════════════════════════════════════════ */
.rcl-field { margin-bottom: 12px; }
.rcl-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--rcl-text); margin-bottom: 5px;
}
.rcl-field label span { color: #e53935; }
.rcl-field input,
.rcl-field select,
.rcl-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--rcl-border);
  border-radius: 8px; font-size: 14px;
  color: var(--rcl-text); background: #fafafa;
  box-sizing: border-box; transition: border-color .15s;
  font-family: inherit;
}
.rcl-field input:focus,
.rcl-field select:focus,
.rcl-field textarea:focus {
  outline: none; border-color: var(--rcl-blue);
  background: #fff; box-shadow: 0 0 0 3px rgba(26,110,245,.1);
}
.rcl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .rcl-field-row { grid-template-columns: 1fr; } }

/* ══ BUTTONS ═════════════════════════════════════════════════════════════ */
.rcl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all .15s;
  text-decoration: none; font-family: inherit;
}
.rcl-btn-primary {
  background: var(--rcl-blue); color: #fff;
  border-color: var(--rcl-blue);
}
.rcl-btn-primary:hover { background: var(--rcl-blue-d); border-color: var(--rcl-blue-d); }
.rcl-btn-secondary {
  background: #f1f5ff; color: var(--rcl-blue);
  border-color: var(--rcl-blue);
}
.rcl-btn-secondary:hover { background: #dbeafe; }
.rcl-btn-ghost {
  background: transparent; color: var(--rcl-blue);
  border-color: transparent; text-decoration: underline;
}
.rcl-full-width { width: 100%; }
.rcl-form-note {
  text-align: center; font-size: 12px; color: var(--rcl-muted);
  margin-top: 8px;
}
.rcl-form-error {
  background: #fff0f0; border: 1px solid #ffcdd2;
  color: #c62828; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; margin-top: 8px;
}

/* ══ CHATBOX ═════════════════════════════════════════════════════════════ */
.rcl-chatbox {
  background: var(--rcl-bg); border: 1px solid var(--rcl-border);
  border-radius: var(--rcl-radius); box-shadow: 0 4px 20px rgba(0,0,0,.1);
  overflow: hidden; font-family: inherit;
}
.rcl-chatbox--bottom-right,
.rcl-chatbox--bottom-left {
  position: fixed; bottom: 90px; z-index: 9998;
  width: 320px; box-shadow: var(--rcl-shadow);
}
.rcl-chatbox--bottom-right { right: 20px; }
.rcl-chatbox--bottom-left  { left:  20px; }

.rcl-chatbox__header {
  background: var(--rcl-blue); color: #fff;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.rcl-chatbox__avatar { font-size: 22px; }
.rcl-chatbox__title  { font-weight: 700; font-size: 14px; }
.rcl-chatbox__sub    { font-size: 12px; opacity: .85; }
.rcl-chatbox__close  {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.8); font-size: 20px; cursor: pointer;
}
.rcl-chatbox__messages { padding: 14px 14px 6px; min-height: 60px; }
.rcl-msg {
  padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.5; margin-bottom: 8px;
  max-width: 90%;
}
.rcl-msg--bot {
  background: #f0f4ff; color: var(--rcl-text);
  border-bottom-left-radius: 4px; align-self: flex-start;
}
.rcl-msg--user {
  background: var(--rcl-blue); color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end; margin-left: auto;
}
.rcl-chatbox__form { padding: 10px 14px 14px; }
.rcl-chat-step {
  display: flex; gap: 8px; align-items: center;
}
.rcl-chat-step input,
.rcl-chat-step select {
  flex: 1; padding: 10px 12px;
  border: 1.5px solid var(--rcl-border); border-radius: 8px;
  font-size: 13px; font-family: inherit;
}
.rcl-chat-next {
  padding: 10px 14px; background: var(--rcl-blue); color: #fff;
  border: none; border-radius: 8px; cursor: pointer; font-size: 15px;
  transition: background .15s;
}
.rcl-chat-next:hover { background: var(--rcl-blue-d); }
.rcl-chatbox__success { padding: 16px; }

/* ══ CONTACT FORM ════════════════════════════════════════════════════════ */
.rcl-contact-wrap {
  background: var(--rcl-bg);
  border: 1px solid var(--rcl-border);
  border-radius: var(--rcl-radius);
  padding: 28px 24px; max-width: 560px;
}
.rcl-contact-title {
  font-size: 20px; font-weight: 700;
  color: var(--rcl-text); margin: 0 0 20px;
}

/* ══ FLOATING ACTION BUTTONS ═════════════════════════════════════════════ */
.rcl-floating-btns {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 9997;
}
.rcl-fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  border: none; transition: transform .15s, box-shadow .15s;
}
.rcl-fab:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.rcl-fab--call    { background: #1a6ef5; color: #fff; }
.rcl-fab--wa      { background: #25d366; color: #fff; }
.rcl-fab--enquiry { background: #ff6f00; color: #fff; }

/* ══ HELPERS ═════════════════════════════════════════════════════════════ */
.rcl-hidden { display: none !important; }
@keyframes rcl-fadein  { from { opacity:0 } to { opacity:1 } }
@keyframes rcl-slidein { from { transform: translateY(-16px); opacity:0 } to { transform:none; opacity:1 } }

/* loading spinner on button */
.rcl-btn.rcl-loading { opacity: .7; pointer-events: none; }
.rcl-btn.rcl-loading::after {
  content: ''; display: inline-block;
  width: 14px; height: 14px; margin-left: 8px;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff; border-radius: 50%;
  animation: rcl-spin .6s linear infinite;
}
@keyframes rcl-spin { to { transform: rotate(360deg) } }
