/* ═══════════════════════════════════════════════════
   Reseller Contact – Language & Form Modal Styles
   ═══════════════════════════════════════════════════ */

/* ── Custom Checkbox ─────────────────────────────── */
.reseller-checkbox-wrap {
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}
.reseller-checkbox-wrap input[type="checkbox"] {
  display: none;
}
.reseller-checkbox-box {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #9724cb;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background 0.18s, border-color 0.18s;
}
.reseller-checkbox-wrap input:checked + .reseller-checkbox-box {
  background: #9724cb;
  border-color: #9724cb;
}
.reseller-checkbox-wrap input:checked + .reseller-checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Max-selection shake ─────────────────────────── */
@keyframes reseller-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.reseller-card--shake .resleiceCard {
  animation: reseller-shake 0.45s ease;
}

/* ── Max-selection warning toast ─────────────────── */
#resellerMaxWarn {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-family: "montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  z-index: 10000;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  pointer-events: none;
}

/* ── Selected Card Highlight ─────────────────────── */
.reseller-card.is-selected .resleiceCard {
  background: rgba(151, 36, 203, 0.06) !important;
  border-color: #9724cb !important;
  box-shadow: 0 0 0 3px rgba(151, 36, 203, 0.14);
}


/* ── Contact Reseller Button ─────────────────────── */
.contact-reseller-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #e20093;
  font-family: "montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  transition: opacity 0.2s;
}
.contact-reseller-btn:hover {
  opacity: 0.75;
}
.contact-reseller-btn img {
  width: 22px;
  height: auto;
}

/* ── Modal Backdrop ──────────────────────────────── */
#resellerLangModal,
#resellerContactModal,
#resellerThankyouModal {
  background: rgba(110, 110, 110, 0.6);
}

/* ── Shared Modal Shell ──────────────────────────── */
.reseller-modal-content {
  border-radius: 16px;
  border: 1.5px solid #9724cb;
  box-shadow: 0 12px 48px rgba(151, 36, 203, 0.15);
  font-family: "montserrat", sans-serif;
  background-color: #f0f0f0;
}
.reseller-modal-content .modal-header {
  padding: 16px 20px 0;
}
.reseller-modal-content .btn-close {
  opacity: 0.5;
}
.reseller-modal-content .btn-close:hover {
  opacity: 1;
}

#resellerContactFormColumn.reseller-column-submitted,
#resellerThankyouFormColumn.reseller-column-submitted {
  min-height: 100vh;
}

/* ── Language Modal ──────────────────────────────── */
.reseller-lang-heading {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.reseller-lang-btn {
  min-width: 120px;
  padding: 10px 28px;
  border-radius: 8px;
  border: 2px solid #9724cb;
  background: transparent;
  color: #9724cb;
  font-family: "montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.reseller-lang-btn:hover,
.reseller-lang-btn:focus {
  background: #9724cb;
  color: #fff;
  border-color: #9724cb;
}
.reseller-lang-btn[data-lang="ar"] {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
}

/* ── Contact Form Modal ──────────────────────────── */
#resellerContactModal .modal-dialog {
  max-width: 660px;
}
#resellerContactModal .modal-body {
  padding: 8px 32px 40px;
}

.reseller-contact-for-label {
  color: #9724cb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.reseller-contact-title {
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ── CF7 Form Grid ───────────────────────────────── */
.reseller-cf7-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reseller-cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf7-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf7-full-width {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels */
.reseller-cf7-label {
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 0;
}

/* Inputs & Textarea */
.reseller-cf7-grid input[type="text"],
.reseller-cf7-grid input[type="email"],
.reseller-cf7-grid input[type="tel"],
.reseller-cf7-grid textarea {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: "montserrat", sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.reseller-cf7-grid input[type="text"]:focus,
.reseller-cf7-grid input[type="email"]:focus,
.reseller-cf7-grid input[type="tel"]:focus,
.reseller-cf7-grid textarea:focus {
  border-color: #9724cb;
  box-shadow: 0 0 0 3px rgba(151, 36, 203, 0.1);
}
.reseller-cf7-grid textarea {
  min-height: 110px;
  resize: vertical;
}

/* CF7 validation */
.reseller-cf7-grid .wpcf7-not-valid-tip {
  color: #e20093;
  font-size: 11px;
  margin-top: 3px;
}
.reseller-cf7-grid input.wpcf7-not-valid,
.reseller-cf7-grid textarea.wpcf7-not-valid {
  border-color: #e20093;
}

/* Submit button */
.reseller-cf7-grid input[type="submit"],
#reseller-cf7-submit {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 48px;
  background: #9724cb;
  color: #fff;
  border: 2px solid #9724cb;
  border-radius: 10px;
  font-family: "montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.reseller-cf7-grid input[type="submit"]:hover,
#reseller-cf7-submit:hover {
  background: transparent;
  color: #9724cb;
}

/* CF7 response output */
.reseller-cf7-grid .wpcf7-response-output {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 8px;
}

/* ── RTL (Arabic) ────────────────────────────────── */
.reseller-rtl {
  direction: rtl;
  text-align: right;
}
.reseller-rtl .reseller-cf7-grid input[type="text"],
.reseller-rtl .reseller-cf7-grid input[type="email"],
.reseller-rtl .reseller-cf7-grid input[type="tel"],
.reseller-rtl .reseller-cf7-grid textarea {
  text-align: right;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.reseller-rtl .reseller-cf7-grid input[type="submit"] {
  align-self: flex-end;
}
.reseller-rtl .btn-close {
  margin-left: 0;
  margin-right: auto;
}

/* ── Thank You Modal ─────────────────────────────── */
.reseller-thankyou-content {
  max-width: 420px;
  margin: auto;
}
.reseller-thankyou-icon svg {
  display: block;
  margin: 0 auto;
}
.reseller-thankyou-title {
  color: #9724cb;
  font-size: 20px;
  font-weight: 700;
}
.reseller-thankyou-msg {
  color: #4b5563;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-line;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 576px) {
  .reseller-cf7-row {
    grid-template-columns: 1fr;
  }
  #resellerContactModal .modal-body {
    padding: 8px 20px 32px;
  }
  .reseller-lang-btn {
    min-width: 100px;
    padding: 9px 18px;
    font-size: 14px;
  }
}
