
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #10C4E8;
    --gold: #C0703A;
    
    --gold-light: #f5e8cc;
    --bg: #f7f8fa;
    --white: #ffffff;
    --border: #d8dce6;
    --text: #2c3142;
    --muted: #6b7280;
    --error: #c0392b;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(26,35,64,0.10);
  }

  body {
    font-family: 'Montserrat','montserrat';
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ── Header Banner ── */
  .header-banner {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .header-banner::before {
    content: 'MASTERCOIP';
    position: absolute;
    font-family: 'Montserrat', 'montserrat';
    font-size: 120px;
    font-weight: 700;
    color: rgba(255,255,255,0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 6px;
  }
  .header-banner h1 {
    font-family: 'Montserrat', 'montserrat';
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
  }
  .header-banner h1 span { color: var(--gold); }
  .header-banner p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-top: 6px;
    position: relative;
  }
  .meta-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 14px;
    font-size: 13px;
    position: relative;
  }
  .meta-pill {
    background: rgba(184,146,42,0.18);
    border: 1px solid rgba(184,146,42,0.4);
    color: var(--gold-light);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
  }

  /* ── Progress Bar ── */
  .progress-wrap {
    width: 100%;
    max-width: 660px;
    padding: 24px 20px 0;
  }
  .steps-track {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
  }
  .step-node:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background 0.3s;
  }
  .step-node.done:not(:last-child)::after { background: var(--gold); }
  .step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    color: var(--muted);
    position: relative; z-index: 1;
    transition: all 0.3s;
  }
  .step-node.active .step-circle {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
  }
  .step-node.done .step-circle {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
  }
  .step-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
    text-align: center;
  }
  .step-node.active .step-label { color: var(--navy); font-weight: 600; }

  /* ── Card ── */
  .card {
    width: 100%;
    max-width: 660px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 36px 36px;
    margin: 18px 20px 40px;
  }

  .step-heading {
    font-family: 'Montserrat', 'montserrat';
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
  }
  .step-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 26px;
    line-height: 1.55;
  }
  .required-note {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
  }
  .required-note span { color: var(--error); }

  /* ── Form Fields ── */
  .field-group { margin-bottom: 22px; }
  
  .field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 7px;
  }
  .field-label .req { color: var(--error); margin-left: 3px; }
  .field-num {
    display: inline-block;
    width: 22px; height: 22px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 22px;
    margin-right: 8px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    font-family: 'Montserrat', 'montserrat';
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }
  input:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,146,42,0.12);
    background: var(--white);
  }
  input.invalid, textarea.invalid {
    border-color: var(--error);
  }
  .field-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: none;
  }
  .field-error.show { display: block; }

  /* ── Radio Options ── */
  .radio-group { display: flex; flex-direction: column; gap: 12px; }
  .radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
   
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg);
  }
  .radio-option:hover { border-color: var(--gold); background: var(--gold-light); }
  .radio-option.selected {
    border-color: var(--gold);
    background: var(--gold-light);
  }
  .radio-option input[type="radio"] {
    width: 18px; height: 18px;
    accent-color: var(--gold);
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
  }
  .radio-text { font-size: 13.5px; line-height: 1.5; }
  .radio-text strong { font-weight: 600; color: var(--navy); }
  .radio-text .save-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 6px;
  }
  

  .business-unit-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:10px;
    margin-left:8px;
}

.business-option{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:12px;
    color:#333;
    cursor:pointer;
}

.business-option input[type="checkbox"]{
    width:18px;
    height:18px;
    accent-color:var(--gold);
    cursor:pointer;
}

.business-option:hover{
    color:var(--gold);
}
.hidden{
    display:none;
}
  /* ── Payment Section ── */
  .payment-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg);

    display: flex;
    flex-direction: row;   /* Horizontal */
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
  @media (max-width: 580px) {
    .payment-options { grid-template-columns: 1fr; }
  }
  .payment-card {
    border: 1.5px solid var(--border);
   
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 0px !important;
  }
  .payment-card:hover { border-color: var(--gold); background: var(--gold-light); }
  .payment-card.selected { border-color: var(--gold); background: var(--gold-light); }
  .payment-card label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--navy);
    cursor: pointer;
  }
  .payment-card input[type="radio"] {
    accent-color: var(--gold);
    width: 16px; height: 16px;
  }
  .payment-card p {
    font-size: 12px; color: var(--muted); line-height: 1.55;
  }
  .payment-card a { color: var(--gold); }
  .qr-img {
    width: 100%;
    max-width: 120px;
    border: 1px solid var(--border);
    border-radius: 4px;
    align-self: center;
  }

  /* ── Buttons ── */
  .btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
  }
  .btn {
    padding: 11px 28px;
    border-radius: var(--radius);
    font-family: 'Montserrat', 'montserrat';
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary {
    background: var(--navy);
    color: var(--white);
    border-radius: 0 !important;
  }
  .btn-primary:hover { opacity: 0.87; }
  .btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--border);
    border-radius: 0 !important;
  }
  .btn-secondary:hover { border-color: var(--navy); }

  /* ── Success Screen ── */
  .success-screen {
    text-align: center;
    padding: 20px 0 10px;
  }
  .success-icon {
    width: 64px; height: 64px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 30px;
  }
  .success-screen h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 10px;
  }
  .success-screen p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
  }

  .hidden { display: none; }

  /* QR placeholder using SVG pattern */
  .qr-placeholder {
    width: 90px; height: 90px;
    background: #111;
    border-radius: 4px;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(7,1fr);
    grid-template-rows: repeat(7,1fr);
    gap: 1px;
    padding: 5px;
  }
  .qr-placeholder span {
    background: white;
    border-radius: 1px;
  }
  .qr-placeholder span.b { background: #111; }

  @media (max-width: 680px) {
    .card { padding: 22px 18px 28px; margin: 14px 12px 32px; }
  }

  .disabled-option{
    opacity:0.45;
    pointer-events:none;
    cursor:not-allowed;
    background:#f5f5f5;
}

.disabled-option .radio-text{
    color:#888;
}

.business-option{
  display:flex;
  align-items:flex-start;
  gap:12px;
  line-height:1.6;
}

.business-option input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:3px;
  flex-shrink:0;
}

.privacy-link{
  color:#18b6d9;
  text-decoration:none;
  word-break:break-word;
}

.privacy-link:hover{
  text-decoration:underline;
}


/* Success Modal */
.success-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  visibility:hidden;

  transition:.35s ease;

  z-index:99999;
}

.success-modal.show{
  opacity:1;
  visibility:visible;
}

.success-box{

  width:80%;
  max-width:520px;

  background:#fff;

  border-radius:0px;

  padding:40px;

  text-align:center;

  animation:popup .35s ease;
}

.success-icon{

  width:90px;
  height:90px;

  margin:auto;

  border-radius:50%;

  background:#2ecc71;

  color:#fff;

  font-size:42px;

  font-weight:bold;

  display:flex;
  align-items:center;
  justify-content:center;

  margin-bottom:25px;
}

.success-box h3{

  margin-bottom:15px;
  color:var(--navy);
}

.success-box p{

  line-height:1.7;
  color:#555;
}

.redirect-text{

  margin-top:25px;

  color:#888;

  font-size:14px;
}

@keyframes popup{

  from{
      transform:scale(.8);
      opacity:0;
  }

  to{
      transform:scale(1);
      opacity:1;
  }

}