/*NEW CSS*/

/* Step 3 labels */
#step3 .label-hed { display:block; margin:2px 0 10px; font-weight:700; font-size:14px; color:#cbd5e1; }
#step3 .field-bounce { margin:14px 0 18px; }

/* 2x2 grid for chips */
#step3 .chip-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
#step3 .chip {
  width:100%; padding:12px 14px; text-align:center;
  background:#222; border:1px solid #323232; border-radius:12px;
  color:#cbd5e1; font-size:13px; font-weight:700; line-height:1.2;
  cursor:pointer; user-select:none; white-space:normal;
  transition:background .15s,color .15s,border-color .15s,box-shadow .15s,transform .05s;
}
#step3 .chip:hover { border-color:#03A9F5; color:#e5f6ff; }
#step3 .chip:active { transform:translateY(1px); }
#step3 .chip.is-selected { background:#1e293b; color:#fff; border-color:#03A9F5; box-shadow:inset 0 0 0 2px rgba(3,169,245,.25); }
@media (max-width:360px){ #step3 .chip-row{gap:8px;} #step3 .chip{padding:11px 12px;} }

/* Consents */
/* STEP 3 – nicer, fixed-size checkboxes */
#step3 .consent-line {
  --cb: 22px;                    /* checkbox size */
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 10px 0 2px;
  line-height: 1.35;
  font-size: 13px;
}

#step3 .consent-line input[type="checkbox"] {
  appearance: none;              /* custom checkbox */
  width: var(--cb);
  height: var(--cb);
  min-width: var(--cb);          /* fixes width so rows align */
  margin: 2px 0 0;               /* align with first line of text */
  border: 1.8px solid #3b495f;
  border-radius: 6px;
  background: #121826;
  outline: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

#step3 .consent-line input[type="checkbox"]:hover {
  border-color: #03A9F5;
}

#step3 .consent-line input[type="checkbox"]:active {
  transform: translateY(1px);
}

/* checkmark */
#step3 .consent-line input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 15px;
  border: 2px solid transparent;
  border-right-color: #fff;
  border-bottom-color: #fff;
  transform: rotate(45deg);
  top: 3px;
  left: 7px;
  opacity: 0;
  transition: opacity .12s ease;
}

#step3 .consent-line input[type="checkbox"]:checked {
  background: #03A9F5;
  border-color: #03A9F5;
  box-shadow: 0 0 0 3px rgba(3,169,245,.25);
}

#step3 .consent-line input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* keyboard focus */
#step3 .consent-line input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(58,190,248,.35);
}

/* label text */
#step3 .consent-line > span {
  flex: 1;
  color: #cbd5e1;
  margin-top: 1px;
}

#step3 .consent-line a {
  color: #7dd3fc;
  text-decoration: none;
}
#step3 .consent-line a:hover { text-decoration: underline; }

/* inline error message (if you use it) */
#step3 #tos_consent_msg,
#step3 #partner_consent_msg {
  display: none;
  color: #ff5151 !important;
  margin: 6px 0 0 34px;          /* indent to align under text, not the box */
  font-size: 12px;
}

p#signinPrompt a {
    color: #00ccff;
    font-weight: bold;
}
p#signinPrompt {
    font-size: 13px;
}

/* Confirmation Modal styles */
.modal-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  font-family: 'Poppins';
}

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

.modal-content {
  background-color: #191C1F;
  color: #fff;
  padding: 30px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  width: 100%;
  max-width: 400px;
  transform: translateY(100%);
  transition: transform 0.3s ease 0.05s;
  box-sizing: border-box;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-content {
    border-radius: 12px;
    transform: scale(0.9);
    transition: transform 0.3s ease 0.05s;
  }
  .modal-overlay.show .modal-content {
    transform: scale(1);
  }
}

/* Modal actions */
.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.modal-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
}

.modal-btn.cancel {
  background-color: #4a5568;
  color: #e2e8f0;
}

.modal-btn.confirm {
  background-color: #03A9F5;
  color: #fff;
}
label.consent-line {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 15px;
}
.modal-content .consent-line input[type="checkbox"] {
  appearance: none; /* custom checkbox */
  width: 22px;
  height: 22px;
  min-width: 22px; /* fixes width so rows align */
  margin: 2px 0 -4px; /* align with first line of text */
  border: 1.8px solid #3b495f;
  border-radius: 6px;
  background: #121826;
  outline: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.modal-content .consent-line input[type="checkbox"]:hover {
  border-color: #03A9F5;
}

.modal-content .consent-line input[type="checkbox"]:active {
  transform: translateY(1px);
}

/* checkmark */
.modal-content .consent-line input[type="checkbox"]::after {
  content: "";
  position: relative;
  width: 8px;
  height: 15px;
  border: 2px solid transparent;
  border-right-color: #fff;
  border-bottom-color: #fff;
  transform: rotate(45deg);
  top: 0px;
  left: 6px;
  opacity: 0;
  display:block;
  transition: opacity .12s ease;
}

.modal-content .consent-line input[type="checkbox"]:checked {
  background: #03A9F5;
  border-color: #03A9F5;
  box-shadow: 0 0 0 3px rgba(3,169,245,.25);
}

.modal-content .consent-line input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* keyboard focus */
.modal-content .consent-line input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(58,190,248,.35);
}

/*NEW CSS END*/


label.radio-pill.monthly {
    display: none;
}
#hutsy-si-form {
  max-width: 500px;
  margin: 0 auto;
  font-family: poppins;
  color: #fff;
}
.labflex {
    width: 90%;
}
span.tos {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

#hutsy-si-progress {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

#hutsy-si-progress .step {
  background: #ddd;
  padding: 5px 10px;
  border-radius: 4px;
}
#hutsy-si-progress .step.active {
  background: #28a745;
  color: #fff;
}

.hutsy-si-step {
  margin-bottom: 20px;
}
.hutsy-si-step h3 {
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 25px;
    color: #ccc;
}
.hutsy-si-step h2 {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
}
.hutsy-si-step input[type=email], .hutsy-si-step input[type=number], .hutsy-si-step input[type=password], .hutsy-si-step input[type=tel], .hutsy-si-step input[type=text]{
    width: 100%;
    border: 1px solid #323232 !important;
    border-radius: 3px;
    padding: 0.8rem 1rem;
    transition: all .3s;
    background: #222 !important;
    margin-bottom: 10px;
    margin-top: 5px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

#payment-element {
  margin-top: 20px;
  margin-bottom: 20px;
}
/* Progress Bar Container */
/* Progress Bar Container */
.hutsy-progress-bar {
  width: 100%;
  background: #323232;
  height: 2px;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

/* The Filled Portion */
.hutsy-progress-fill {
  height: 100%;
  width: 0%;
  background: #ccc;
  transition: width 0.4s ease;
  border-radius: 4px;
}

/* Show success or error messages below the input */
.field-msg {
    display: block;
    margin-top: -6px;
    font-size: 10px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-left: 17px;
}

/* Red/Green coloring */
.field-msg.error {
  color: red;
}
.field-msg.success {
  color: #00c300;
}

/* Step containers fade + bounce in. We'll do this via JS. */
.hutsy-si-step {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s, transform 0.4s;
}

/* A simple rotating spinner */
.btn-spinner::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Subscribe button base */
.subscribe-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

/* "Subscribe Now" text */
.subscribe-text {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s;
}

/* Spinner + "Processing..." (hidden by default) */
.subscribe-spinner {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 5px;
}

/* The 'liquid' fill overlay */
.subscribe-liquid {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background-color: #323232;
  transition: width 1.5s ease;
  z-index: 1;
}

/* On .filling: expand overlay + hide text, show spinner */
.subscribe-btn.filling .subscribe-liquid {
  width: 100%;
}
.subscribe-btn.filling .subscribe-text {
  display: none;
}
.subscribe-btn.filling .subscribe-spinner {
  display: inline-flex;
}

/* On success: show check, hide spinner + text */
.subscribe-btn.success {
  background-color: #00cc00;
}
.subscribe-btn.success .subscribe-text,
.subscribe-btn.success .subscribe-liquid,
.subscribe-btn.success .subscribe-spinner {
  display: none;
}

/* The "Paid" check icon+text */
.subscribe-check {
  position: relative;
  z-index: 2;
  display: none; /* shown later via JS */
  align-items: center;
  margin-left: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease 0.05s;
}
.subscribe-btn.success .subscribe-check {
  display: inline-flex;
  transform: translateY(0);
  opacity: 1;
}
/* Keyframe Animation */
@keyframes fadeBounce {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial Field State */
.field-bounce {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s; /* fallback */
}

/* Trigger Animation */
.bounce-in {
  animation: fadeBounce 0.5s ease forwards;
}
/* Container for each field-bounce */


/* Label inside the field (for non-radio inputs) */
.field-bounce:not(.radio-group) label {
  font-size: 13px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 10px;
  top: 20px;
  padding: 0 5px;
  transition: 0.2s ease all;
  color: #999;
}

/* Input styles for text, email, and other fields */
/* Focused field effects */
.field-bounce:not(.radio-group) input:focus {
  border-color: #0073aa;
}

/* Slide label up when input is focused or has value */
.field-bounce:not(.radio-group) input:focus + label,
.field-bounce:not(.radio-group) input:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 12px;
  color: #0073aa;
}

/* Maintain styling for filled fields */
.field-bounce.has-value label {
  top: -1px;
  font-size: 10px;
  color: #9e9e9e;
  background: #323232;
  padding: 2px 10px;
  border-radius: 5px;
}

/* Radio group-specific styles */
.field-bounce.radio-group {
  position: static;
  margin-bottom: 15px;
}

.field-bounce.radio-group label {
  position: static;
  font-size: 14px;
  font-weight: normal;
  margin-right: 10px;
  color: #333;
}

.field-bounce.radio-group input[type="radio"] {
  margin-right: 5px;
}

/*buttons*/
button#step1NextBtn, button#subscribeBtn, button#signupBtn, button#continueBtn{
    width: 100%;
    padding: 13px;
    background: #03A9F5;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 50px;
}
button#step2BackBtn, button#step2NextBtn, button#step3BackBtn, button#step3NextBtn, button#step4BackBtn, button#step4NextBtn{
    width: 49%;
    padding: 13px;
    background: #03A9F5;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 50px;
}
button#modalConfirmBtn {
    width: 49%;
    padding: 13px;
    background: #03a9f5;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
}
button#modalCancelBtn{
    width: 49%;
    padding: 13px;
    background: #1f2937;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
}
/* Radio pill style */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-pill {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 3px;
    padding: 15px 12px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #323232;
    color: #ccc !important;
}
.radio-pill input[type="radio"] {
  display: none;
}
.custom-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #777;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}
.custom-radio::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background: #00bdff;
    border-radius: 41%;
    position: absolute;
    top: 3px;
    left: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}
.radio-pill:hover {
  background: #333333;
}
.radio-pill input[type="radio"]:checked + .custom-radio::before {
  opacity: 1;
}
.radio-pill input[type="radio"]:checked ~ .label-text {
  color: #fff;
}
.radio-pill input[type="radio"]:checked ~ .custom-radio {
  border-color: #0096ca;
}

/* When checked, let's change the entire pill color */
.radio-pill input[type="radio"]:checked ~ .label-text,
.radio-pill input[type="radio"]:checked ~ .custom-radio {
  background-color: inherit;
}

p.label-texts, p.label-des {
    font-size: 12px;
    font-weight: 500;
    color: #ccc;
    text-align: center;
}

.radio-pill:has(input[type="radio"]:checked) {
  background: #333;
  color: #fff;
}
/* General checkbox container */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-bottom: 15px;
    justify-content: center;
}

/* Hidden default checkbox */
.custom-checkbox input[type="checkbox"] {
  appearance: none; /* Remove the browser's default checkbox style */
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Checked state styles */
.custom-checkbox input[type="checkbox"]:checked {
  background-color: #01a9f5;
  border-color: #01a9f5;
}

/* Checkmark for the custom checkbox */
.custom-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    top: -4px;
    left: 2px;
}

/* Custom text styles */
.custom-checkbox .checkbox-text {
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

/* Hover effect for the checkbox */
.custom-checkbox input[type="checkbox"]:hover {
  border-color: #0073aa;
}

/* Hover effect for the text */
.custom-checkbox .checkbox-text:hover {
  color: #01a9f5;
}

p.label-hed {
    font-size: 12px;
    font-weight: bold;
}
p.label-text {
    font-size: 12px;
    font-weight: 500;
    color: #ccc;
    line-height: 20px;
}
.labflex p {
    margin-bottom: 6px;
}
.payterm {
    border-bottom: 1px solid #323232;
    padding: 0px 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.payterm-last {
    padding: 0px 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.termbox {
    padding: 20px;
    background: #5d5d5d14;
    border-radius: 10px;
    margin: 30px 0px;
}
div#payment-error {
    font-size: 11px;
    text-align: center;
}
/* Container to hold multiple skeleton lines */
.skeleton-container-dark {
  width: 100%;
  position: relative;
  margin-bottom: 10px;
}

/* Row for smaller fields side-by-side */
.skeleton-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Base skeleton style */
.skeleton-line {
  background-color: #2a2a2a; /* Dark background to match your theme */
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

/* Shimmer animation */
.skeleton-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Specific field sizes (adjust as needed) */
.skeleton-card-number {
  width: 100%;
  height: 50px;
  margin-bottom: 10px;
}

.skeleton-expiry {
  flex: 1;
  height: 50px;
}

.skeleton-cvc {
  flex: 1;
  height: 50px;
}

.skeleton-country {
  width: 100%;
  height: 50px;
}
