/* Import Manrope font */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root{
  --bundle-accent: #6c2cff;
  --bundle-accent-2: #ff3e6c;
  --bundle-border: #b6b6b6;
  --bundle-text: #2b2b2b;
  --bundle-muted: #9aa0a6;
  --bundle-radius: 10px;
  --bundle-shadow: 0 8px 24px rgba(108,44,255,0.12);
}

/* Form wrapper */
#bundle-form{
  background-color: #ffffff;
  max-width: 1020px;
  padding: 10px 30px 0px 0;
  font-family: "Manrope", sans-serif;
  color: var(--bundle-text);
  box-sizing: border-box;
}

/* Layout */
.bundle-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* Row: two-column layout on desktop */
.bundle-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* === Field wrapper (ensures input + error stack vertically) ===
   JS (if used) should wrap inputs/selects/textarea into .bundle-field-wrapper so the error can be inserted underneath.
*/
.bundle-field-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

/* Make each wrapper inside a row act as the column */
.bundle-row > .bundle-field-wrapper {
  flex: 1 1 calc(50% - 10px); /* two columns with gap considered */
  min-width: 0;
}

/* Special-case: if a checkbox row contains a field wrapper, allow block layout */
.bundle-checkbox-row .bundle-field-wrapper { display: block; }

/* Ensure inputs/selects fill wrapper width */
.bundle-field-wrapper .bundle-input,
.bundle-field-wrapper input,
.bundle-field-wrapper select,
.bundle-field-wrapper textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Inputs & Select */
.bundle-input{
  height:52px;
  padding:0 16px;
  border:1px solid var(--bundle-border);
  border-radius:var(--bundle-radius);
  font-size:13px;
  color:var(--bundle-text);
  background:#fff;
  line-height:52px;
  box-sizing:border-box;
  transition:border-color .2s, box-shadow .2s;
}
.bundle-input::placeholder{ color:var(--bundle-muted); }

/* Select dropdown arrow */
.bundle-select{
  appearance:none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7'><path fill='%23999' d='M1 1l5 5 5-5'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px 7px;
}

/* Focus */
.bundle-input:focus{
  border-color:var(--bundle-accent);
  box-shadow:0 0 0 3px rgba(108,44,255,0.15);
  outline:none;
}

/* Checkbox rows (label wraps input + text) */
.bundle-checkbox-row{ margin-top:4px; }
.bundle-checkbox-label,
.bundle-privacy-text{
  align-items:center; /* center text with checkbox */
  gap:12px;
  font-size:13px;
  line-height:1.4;
}

.bundle-privacy-text {
  padding: 10px 0 20px 0;
}

/* --- Custom checkbox styling & override theme/native styles --- */
#bundle-form input.bundle-checkbox-input[type="checkbox"]{
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  appearance:none !important;
  background-image:none !important;

  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;

  border:2px solid var(--bundle-border) !important;
  border-radius:3px !important;
  background:#fff !important;

  position:relative !important; /* make ::after relative */
  cursor:pointer !important;
  transition:all .18s ease !important;
}

/* spacing + alignment between box & text */
#bundle-form label.bundle-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;   /* vertical centering */
  gap: 8px !important;              /* space between box and text */
  cursor: pointer;
}

#bundle-form label.bundle-checkbox-label input.bundle-checkbox-input {
  margin: 0 !important;             /* remove old margin hack */
  flex: 0 0 auto !important;        /* prevent stretching */
}

/* custom tick centered absolutely */
#bundle-form input.bundle-checkbox-input::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(40deg) scale(0) !important;
  transform-origin: center center !important;

  width: 4px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transition: transform .15s ease !important;
  box-sizing: content-box !important;
}

/* checked state */
#bundle-form input.bundle-checkbox-input:checked {
  background: var(--bundle-accent) !important;
  border-color: var(--bundle-accent) !important;
}
#bundle-form input.bundle-checkbox-input:checked::after {
  transform: translate(-50%, -50%) rotate(40deg) scale(1) !important;
}

/* focus ring */
#bundle-form input.bundle-checkbox-input:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(108,44,255,0.15) !important;
}

/* small utility */
.bundle-checkbox-text{ line-height:1.4; color:var(--bundle-text); }
.bundle-muted{ color:var(--bundle-muted); }

/* Button */
.bundle-submit{ margin-top:8px; }
.bundle-btn{
  margin-top:0px;
  background: linear-gradient(90deg,#8900FF 0%,#FF675F 100%) !important;
  color:#fff !important;
  border:none !important;
  border-radius:50px !important;
  padding:16px 40px !important;
  font-weight:600 !important;
  transition:all .3s ease;
  cursor:pointer !important;
}
.bundle-btn:hover{ transform:translateY(-2px); }

/* Responsive */
@media (max-width:768px){
  .bundle-row{ flex-direction:column; }
  .bundle-row > .bundle-field-wrapper { flex: 1 1 100%; }
  .bundle-btn{ width:100%; }
}

/* === Error styles === */
/* Error text under each field */
.bundle-error-text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #d04545;
}

/* Input error visual */
.bundle-input-error {
  border-color: #d04545 !important;
  box-shadow: 0 0 0 3px rgba(208,69,69,0.08) !important;
}

/* For checkbox label errors: aligned under label text (indent) */
.bundle-checkbox-row .bundle-error-text {
  margin-left: 34px;
}

/* Small accessibility/layout fixes */
.bundle-row > * { min-width: 0; } /* prevents overflow on long content */

.no-gap{
  gap: 0 !important;
}

.bundle-form .bundle-checkbox-row.no-gap {
  margin-top: -20px; /* cancels out the parent gap */
}

/* Simple bundle service pills + select */
.bundle-service {font-family: "Manrope", system-ui, sans-serif; }
.bundle-service-label { font-weight:600; margin-bottom:8px; color:#333; }

/* pills row */
.bundle-service-pills { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:40px !important; margin-top: 15px !important;}

/* hide native radio, style the visible span */
.bundle-pill { display:inline-block; cursor:pointer; }
.bundle-pill input[type="radio"] { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* pill appearance */
.pill-inner {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  padding:5px 10px;
  border-radius:4px;
  border:1px solid rgba(120,120,140,0.12);
  background:#faf9ff;
  color:#444;
  font-size: 14px;
  font-weight:600;
  box-shadow: none;
  transition:all .18s ease;
}

/* checked state: style the span when its preceding radio is checked */
.bundle-pill input[type="radio"]:checked + .pill-inner {
  background: #8900FF;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(122,57,255,0.12);
}

/* hover */
.bundle-pill:hover .pill-inner { transform: translateY(-2px); }

/* select */
.bundle-detail-label { display:block; margin:6px 0 8px; font-weight:500; color:#333; }
.bundle-select {
  width:100%;
  max-width:520px;
  height:48px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #ccc;
  background:#fff;
  font-size:14px;
  box-sizing:border-box;
}

/* responsive */
@media (max-width:640px){
  .pill-inner { min-width:120px; padding:10px 12px; font-size:14px; }
  .bundle-select { max-width:100%; }
}