/* ==========================================================================
   GiveRefer — Add New Store redesign
   Scoped under .gr-addstore. px units (legacy html{font-size:10px}).
   High-specificity + !important where needed to beat upgrade/css/main.css
   button{...!important} and style.css .form-control rules.
   ========================================================================== */

.gr-addstore {
  --gra-purple: #7c3aed;
  --gra-violet: #6d28d9;
  --gra-indigo: #4f46e5;
  --gra-magenta: #c026d3;
  --gra-pink: #ec2d7a;
  --gra-fg: #17123a;
  --gra-muted: #6b6580;
  --gra-border: #e9e4f3;
  --gra-card: #ffffff;
  --gra-soft: #f6f2fd;
  --gra-grad: linear-gradient(95deg, #7c3aed 0%, #4f46e5 100%);
  --gra-grad-pink: linear-gradient(95deg, #ec2d7a 0%, #c026d3 100%);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: #faf8ff;
  color: var(--gra-fg);
  font-size: 15px;
  line-height: 1.55;
}
.gr-addstore *,
.gr-addstore *::before,
.gr-addstore *::after { box-sizing: border-box; }

.gr-addstore__shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================ HERO ============================ */
.gr-addstore__hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 78% 30%, rgba(168, 85, 247, 0.16), transparent 62%),
    radial-gradient(560px 340px at 8% 70%, rgba(236, 45, 122, 0.07), transparent 60%),
    linear-gradient(180deg, #f6f0ff 0%, #f9f5ff 70%, #faf8ff 100%);
}
.gr-addstore__hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px 8px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}
.gr-addstore__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--gra-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.gr-addstore__hero h1.gr-addstore__title {
  margin: 18px 0 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--gra-fg);
  text-transform: none;
}
.gr-addstore__title-accent {
  background: var(--gra-grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gr-addstore__subtitle {
  max-width: 460px;
  margin: 0 0 26px;
  color: var(--gra-muted);
  font-size: 16px;
}
.gr-addstore__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
.gr-addstore__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--gra-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gra-fg);
  line-height: 1.3;
}
.gr-addstore__trust-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.gr-addstore__trust-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__trust-icon svg { width: 20px; height: 20px; }
.gr-addstore__trust-icon--violet { background: #efe6ff; color: var(--gra-purple); }
.gr-addstore__trust-icon--pink { background: #ffe4f0; color: var(--gra-pink); }
.gr-addstore__trust-icon--amber { background: #fff0dd; color: #ea8a1f; }

.gr-addstore__hero-visual { text-align: center; }
.gr-addstore__hero-visual img {
  max-width: 100%;
  height: auto;
  max-height: 360px;
  filter: drop-shadow(0 18px 40px rgba(109, 40, 217, 0.18));
}

/* ============================ STEPPER ============================ */
.gr-addstore__stepper-wrap { margin: 26px auto 0; }
.gr-addstore__stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gra-card);
  border: 1px solid var(--gra-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(60, 30, 120, 0.06);
  padding: 22px 28px;
}
.gr-addstore__step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gr-addstore__step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  background: #f1edf9;
  color: #8b84a3;
  transition: all .25s ease;
}
.gr-addstore__step-txt b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #8b84a3;
  white-space: nowrap;
}
.gr-addstore__step-txt span {
  display: block;
  font-size: 12.5px;
  color: #a49dbb;
  white-space: nowrap;
}
.gr-addstore__step-line {
  flex: 1 1 auto;
  height: 2px;
  min-width: 18px;
  background: var(--gra-border);
  border-radius: 2px;
}
.gr-addstore__step.is-active .gr-addstore__step-num {
  background: var(--gra-purple);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}
.gr-addstore__step.is-active .gr-addstore__step-txt b { color: var(--gra-purple); }
.gr-addstore__step.is-active .gr-addstore__step-txt span { color: var(--gra-muted); }
.gr-addstore__step.is-done .gr-addstore__step-num {
  background: #e9fbf0;
  color: #16a34a;
}
.gr-addstore__step.is-done .gr-addstore__step-txt b { color: var(--gra-fg); }

/* ============================ MAIN GRID ============================ */
.gr-addstore__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

/* ---------------------------- form card ---------------------------- */
.gr-addstore__card {
  background: var(--gra-card);
  border: 1px solid var(--gra-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(60, 30, 120, 0.06);
  padding: 30px 32px 34px;
}
.gr-addstore__card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}
.gr-addstore__card-head-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #efe6ff;
  color: var(--gra-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__card-head-icon svg { width: 20px; height: 20px; }
.gr-addstore__card-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--gra-fg);
}
.gr-addstore__card-head p {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--gra-muted);
}

.gr-addstore__alert {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.gr-addstore__alert--success { background: #e9fbf0; color: #14532d; border: 1px solid #bbf0d0; }
.gr-addstore__alert--error { background: #fdeaef; color: #7f1d3a; border: 1px solid #f6c6d4; }
.gr-addstore__alert ul { margin: 6px 0 0 18px; padding: 0; }

.gr-addstore__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.gr-addstore__group { margin-bottom: 20px; min-width: 0; }
.gr-addstore__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gra-fg);
}
.gr-addstore__label .req { color: #e11d48; }
.gr-addstore__hint {
  display: block;
  margin-top: -4px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--gra-muted);
}

.gr-addstore input.gr-addstore__input,
.gr-addstore select.gr-addstore__select,
.gr-addstore textarea.gr-addstore__textarea {
  display: block;
  width: 100% !important;
  border: 1.5px solid var(--gra-border) !important;
  border-radius: 11px !important;
  background: #fff !important;
  padding: 12px 14px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: var(--gra-fg) !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gr-addstore input.gr-addstore__input::placeholder,
.gr-addstore textarea.gr-addstore__textarea::placeholder { color: #a89fc0; }
.gr-addstore input.gr-addstore__input:focus,
.gr-addstore select.gr-addstore__select:focus,
.gr-addstore textarea.gr-addstore__textarea:focus {
  outline: none !important;
  border-color: var(--gra-purple) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
}
.gr-addstore select.gr-addstore__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6580' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
  cursor: pointer;
}
.gr-addstore textarea.gr-addstore__textarea { resize: vertical; min-height: 110px; }

.gr-addstore__counter {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 12px;
  color: #a49dbb;
}

/* ---------------------------- dropzone ---------------------------- */
.gr-addstore__drop {
  border: 2px dashed #d8cef0;
  border-radius: 14px;
  background: #fdfcff;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.gr-addstore__drop:hover,
.gr-addstore__drop.is-drag {
  border-color: var(--gra-purple);
  background: #f8f4ff;
}
.gr-addstore__drop-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #efe6ff;
  color: var(--gra-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__drop-icon svg { width: 24px; height: 24px; }
.gr-addstore__drop-title { font-size: 14.5px; font-weight: 700; color: var(--gra-fg); margin: 0; }
.gr-addstore__drop-sub { font-size: 12.5px; color: var(--gra-muted); margin: 4px 0 0; }
.gr-addstore__drop input[type="file"] { display: none; }
.gr-addstore__drop-preview {
  display: none;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.gr-addstore__drop.has-file .gr-addstore__drop-preview { display: flex; }
.gr-addstore__drop.has-file .gr-addstore__drop-empty { display: none; }
.gr-addstore__drop-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--gra-border);
  background: #fff;
  padding: 4px;
}
.gr-addstore__drop-name { font-size: 13.5px; font-weight: 700; color: var(--gra-fg); word-break: break-all; }
.gr-addstore__drop-change { font-size: 12.5px; color: var(--gra-purple); font-weight: 700; }

/* ---------------------------- sub sections ---------------------------- */
.gr-addstore__subhead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 26px 0 14px;
  padding-top: 24px;
  border-top: 1px solid #f1edf9;
}
.gr-addstore__subhead-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #efe6ff;
  color: var(--gra-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__subhead-icon svg { width: 16px; height: 16px; }
.gr-addstore__subhead h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--gra-fg); }
.gr-addstore__subhead p { margin: 2px 0 0; font-size: 13px; color: var(--gra-muted); }

/* ---------------------------- wizard panels ---------------------------- */
.gr-addstore__panel { display: none; }
.gr-addstore__panel.is-active { display: block; }

/* ---------------------------- review step ---------------------------- */
.gr-addstore__review-sec {
  border: 1px solid var(--gra-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  background: #fdfcff;
}
.gr-addstore__review-sec h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gra-purple);
}
.gr-addstore__review-list { margin: 0; }
.gr-addstore__review-list > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed #f1edf9;
}
.gr-addstore__review-list > div:last-child { border-bottom: 0; }
.gr-addstore__review-list dt { color: var(--gra-muted); font-weight: 600; }
.gr-addstore__review-list dd { margin: 0; color: var(--gra-fg); font-weight: 600; word-break: break-word; white-space: pre-line; }
.gr-addstore__review-list dd:empty::before { content: "—"; color: #c4bdd8; }
.gr-addstore__recaptcha { margin: 20px 0 4px; }

/* ---------------------------- actions ---------------------------- */
.gr-addstore__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f1edf9;
}
.gr-addstore__actions-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gr-addstore button.gr-addstore__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  padding: 13px 26px !important;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  height: auto !important;
}
.gr-addstore button.gr-addstore__btn svg { width: 17px; height: 17px; }
.gr-addstore button.gr-addstore__btn--ghost {
  background: #fff !important;
  color: var(--gra-fg) !important;
  border: 1.5px solid var(--gra-border) !important;
}
.gr-addstore button.gr-addstore__btn--ghost:hover { background: #f8f6fd !important; }
.gr-addstore button.gr-addstore__btn--primary {
  background: var(--gra-grad) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(99, 62, 237, 0.35);
}
.gr-addstore button.gr-addstore__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(99, 62, 237, 0.42);
}
.gr-addstore button.gr-addstore__btn--submit {
  background: var(--gra-grad-pink) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(236, 45, 122, 0.35);
}
.gr-addstore button.gr-addstore__btn--submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(236, 45, 122, 0.42);
}

/* ============================ SIDEBAR ============================ */
.gr-addstore__side { display: flex; flex-direction: column; gap: 20px; }
.gr-addstore__side-card {
  background: var(--gra-card);
  border: 1px solid var(--gra-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(60, 30, 120, 0.06);
  padding: 24px;
}
.gr-addstore__side-card h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--gra-fg);
}
.gr-addstore__guide { display: flex; flex-direction: column; gap: 14px; }
.gr-addstore__guide-item { display: flex; align-items: flex-start; gap: 12px; }
.gr-addstore__guide-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3edfd;
  color: var(--gra-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__guide-icon svg { width: 16px; height: 16px; }
.gr-addstore__guide-item p { margin: 5px 0 0; font-size: 13.5px; color: #4c4568; }

/* need help */
.gr-addstore__help {
  background: linear-gradient(135deg, #f5efff 0%, #fdf1fa 100%);
  border: 1px solid #eadffb;
  display: flex;
  align-items: center;
  gap: 14px;
}
.gr-addstore__help-txt h3 { margin: 0 0 6px; }
.gr-addstore__help-txt p { margin: 0 0 10px; font-size: 13.5px; color: var(--gra-muted); }
.gr-addstore__help-txt a {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gra-purple);
  text-decoration: none;
}
.gr-addstore__help-txt a:hover { text-decoration: underline; }
.gr-addstore__help img { width: 76px; height: auto; flex: 0 0 auto; }

/* benefits */
.gr-addstore__benefit { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.gr-addstore__benefit + .gr-addstore__benefit { border-top: 1px solid #f4f0fa; }
.gr-addstore__benefit-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__benefit-icon svg { width: 17px; height: 17px; }
.gr-addstore__benefit-icon--violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gr-addstore__benefit-icon--amber { background: linear-gradient(135deg, #fbbf24, #ea8a1f); }
.gr-addstore__benefit-icon--pink { background: linear-gradient(135deg, #f472b6, #ec2d7a); }
.gr-addstore__benefit-icon--green { background: linear-gradient(135deg, #34d399, #059669); }
.gr-addstore__benefit p { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; color: #4c4568; }

/* ============================ NOTE STRIP ============================ */
.gr-addstore__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  background: #f3edfd;
  border: 1px solid #e6dbf9;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #55496e;
}
.gr-addstore__note-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gra-purple);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gr-addstore__note-icon svg { width: 15px; height: 15px; }

/* ============================ THANKS BAND ============================ */
.gr-addstore__thanks-wrap { padding: 40px 0 56px; }
.gr-addstore__thanks {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(90deg, #5c1beb 0%, #5716cf 45%, #9c19bc 75%, #d91698 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  box-shadow: 0 18px 40px rgba(92, 27, 235, 0.28);
}
.gr-addstore__thanks-genie {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
}
.gr-addstore__thanks-genie img {
  height: 100%;
  width: auto;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}
.gr-addstore__thanks-txt { flex: 1 1 auto; padding: 24px 0; }
.gr-addstore__thanks-txt h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}
.gr-addstore__thanks-txt p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 14.5px; }
.gr-addstore__thanks-cta { flex: 0 0 auto; padding-right: 32px; }
.gr-addstore__thanks-cta a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--gra-pink);
  font-size: 14.5px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease;
}
.gr-addstore__thanks-cta a:hover { transform: translateY(-1px); color: var(--gra-pink); }
.gr-addstore__thanks-cta a svg { width: 16px; height: 16px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .gr-addstore__grid { grid-template-columns: minmax(0, 1fr); }
  .gr-addstore__side { flex-direction: row; flex-wrap: wrap; }
  .gr-addstore__side-card { flex: 1 1 300px; }
}
@media (max-width: 900px) {
  .gr-addstore__hero-inner { grid-template-columns: 1fr; padding-top: 36px; }
  .gr-addstore__hero-visual { order: -1; }
  .gr-addstore__hero-visual img { max-height: 240px; }
  .gr-addstore__hero h1.gr-addstore__title { font-size: 38px; }
  .gr-addstore__stepper { padding: 16px 18px; overflow-x: auto; }
  .gr-addstore__step-txt span { display: none; }
  .gr-addstore__thanks { flex-wrap: wrap; padding: 24px; gap: 16px; }
  .gr-addstore__thanks-genie { display: none; }
  .gr-addstore__thanks-txt { padding: 0; }
  .gr-addstore__thanks-cta { padding-right: 0; }
}
@media (max-width: 640px) {
  .gr-addstore__row { grid-template-columns: 1fr; gap: 0; }
  .gr-addstore__card { padding: 22px 18px 26px; }
  .gr-addstore__step-txt { display: none; }
  .gr-addstore__step.is-active .gr-addstore__step-txt { display: block; }
  .gr-addstore__trust-item { border-right: 0; margin-right: 0; padding-right: 0; flex-basis: 100%; margin-bottom: 10px; }
  .gr-addstore__actions { flex-wrap: wrap; }
  .gr-addstore__actions-right { margin-left: 0; width: 100%; }
  .gr-addstore__actions-right .gr-addstore__btn { flex: 1 1 auto; }
  .gr-addstore__review-list > div { grid-template-columns: 1fr; gap: 2px; }
}
