@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

.cmsf-wrapper {
    max-width: 600px;
    margin: 50px auto;
    background: #E9E9EE;
    padding: 30px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    color: #0E1022 !important;
    margin-top: 0px;
}

body.woocommerce-checkout {
    color: #0E1022 !important;
}

.welcome-msg {
    text-align: center;
}

.welcome-msg h2{
	margin-top:5px !important;
}

div[data-id="3a80fd0"], div[data-id="74de2bc"], div[data-id="5adfe38"] {
    display: none !important;
}
button.wc-block-components-checkout-place-order-button {
    background: #fbce1d;
    border: 0px;
    color: #000 !important;
}
button.wc-block-components-checkout-place-order-button:hover {
	background: #fbce1d;
}
.welcome-msg h2{
    font-size: 36px;
    font-weight: 600;
    padding: 0% 20px;
    line-height: 56px;
    margin-bottom: 16px;
}
.welcome-msg p{
    font-size: 16px;
    margin-top: 20px;
    color: #343920;
    font-weight: 300;
    margin-bottom: 16px;
  }

.welcome-msg button {
    margin: auto;
    background: #FBCE1D !important;
    color: #000 !important;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#checkAgain {
    margin: auto;
    background: #FBCE1D !important;
    color: #000 !important;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 250px;
}

/* .cmsf-steps {
    display: none;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cmsf-steps .step {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    border: 0px solid #2e2e4f;
    opacity: 0.5;
}

.cmsf-steps .step.active {
    border: 3px solid #2e2e4f;
    color: #2e2e4f;
    opacity: 1;
} */

.cmsf-steps {
    display: none;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative; /* needed for progress line */
    align-items: center;
    padding: 0 10px;
}

/* baseline unfilled line */
.cmsf-steps::before {
    content: "";
    position: absolute;
    left: 40px; /* offset to align with step centers */
    right: 40px;
    top: 40px; /* half of step height (80px) to centre the line */
    height: 6px;
    background: #e6e6ea;
    border-radius: 4px;
    z-index: 0;
}

/* filled progress overlay: width controlled by --cmsf-progress set in JS */
.cmsf-steps::after {
    content: "";
    position: absolute;
    left: 40px;
    top: 40px;
    height: 6px;
    width: var(--cmsf-progress, 0%);
    background: linear-gradient(90deg, #2e2e4f 0%, #2e2e4f 100%);
    border-radius: 4px;
    z-index: 1;
    transition: width 360ms ease;
    max-width: 94%;
}

/* ensure step circles sit above the progress line */
.cmsf-steps .step {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    border: 0px solid #2e2e4f;
    opacity: 0.5;
    position: relative;
    z-index: 2; /* above line */
    transition: background 240ms ease, color 240ms ease, border 240ms ease, opacity 240ms ease;
}

/* completed: filled blue with white icon/text */
.cmsf-steps .step.completed {
    background: #2e2e4f;
    color: #fff;
    opacity: 1;
    border: none;
}

/* active keeps existing look (ringed) but should sit above completed fill */
.cmsf-steps .step.active {
    border: 3px solid #2e2e4f;
    color: #2e2e4f;
    opacity: 1;
    background: #fff;
    z-index: 3; /* put active above filled line and completed */
}

/* make sure SVGs inside completed steps are white */
.cmsf-steps .step.completed svg {
    fill: #fff !important;
}


#cmsf-form{
    background: #F7F7F7;
    padding: 30px;
    border-radius: 50px;
}

#cmsf-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    margin-top: 0px;
}

#cmsf-form .section-title {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 0px;
}

#cmsf-form .form-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 15px;
}

#cmsf-form p.question {
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    text-transform: capitalize;
}

#cmsf-form .questionNote {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: #f71c1c;
    margin-top: 4px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}



button {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
}

#cmsf-form .form-group {
    margin-bottom: 20px;
}

#cmsf-form .required-star {
    color: red;
    font-size: 12px;
}


/* ========== INPUT FIELDS ========== */
#cmsf-form input[type="text"],
#cmsf-form input[type="email"],
#cmsf-form input[type="number"],
#cmsf-form input[type="date"],
#cmsf-form input[type="tel"],
#cmsf-form select {
  width: 95%;
  height: 48px;
  padding: 0 14px;
  border-radius: 80px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
  outline: none;
}

#cmsf-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

#cmsf-form input[name="first_name"], #cmsf-form input[name="last_name"]{
  width: 90%;
}

input::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* ========== CHECKBOXES & RADIOS ========== */
.form-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #0E1022;
  cursor: pointer;
  line-height: 140%;
  padding-bottom: 4px;
}

input[type="checkbox"],
input[type="radio"] {
  margin-top: 3px;
  accent-color: #6366f1;
}

.custom-checkbox {
  display: flex;          /* keeps checkbox + text aligned */
  align-items: center;           /* vertical center */
  gap: 10px;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  color: #0E1022;
}

/* Hide default checkbox but keep functional */
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Box styling */
.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;    
  border-radius: 6px;
  border: 2px solid #d6d2c4;
  background-color: #f5f3eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Hover */
.custom-checkbox:hover .checkmark {
  border-color: #bfb9a6;
}

/* Checked state background */
.custom-checkbox input:checked + .checkmark {
  background-color: #6366f1;
  border-color: #6366f1;
}

/* Tick icon */
.custom-checkbox input:checked + .checkmark::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 4px;
}
/* ========== TWO COLUMN ROW ========== */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* ========== PHONE INPUT ========== */
.phone-input {
  display: flex;
  gap: 10px;
}

.phone-input select {
  max-width: 110px;
}

/* ========== INPUT WITH UNIT (e.g. weight + kg) ========== */
.input-with-unit {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-unit input[type="number"],
.input-with-unit input[type="text"] {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  border-radius: 80px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  width: 85%;
}

.unit-select {
  min-width: 96px !important;
  height: 40px;
  padding: 0 10px;
  border-radius: 30px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  width: 8% !important;
}

/* ========== BUTTONS ========== */
.cmsf-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.cmsf-buttons button {
  min-width: 120px;
  height: 44px;
  border-radius: 30px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#prevBtn {
  background: #e5e7eb;
  color: #374151;
}

#nextBtn {
  background: #facc15;
  color: #1f2937;
}

#nextBtn:hover {
  background: #fbbf24;
}

.cmsf-message-container {
    width: 100%;
    font-size: 16px;
}

/* ========== Calendar ========== */
/* Reduce overall size */
.ui-datepicker {
    font-size: 12px;   /* Default is 14px+ */
    width: 260px;      /* Make calendar smaller */
    padding: 5px;
}

/* Header styling */
.ui-datepicker .ui-datepicker-header {
    padding: 4px 0;
    font-size: 13px;
}

/* Reduce cell size */
.ui-datepicker td span,
.ui-datepicker td a {
    padding: 4px;
}

/* Reduce spacing */
.ui-datepicker th {
    padding: 4px 0;
    font-size: 11px;
}

/* Make dropdowns smaller */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    font-size: 12px;
    padding: 2px;
}
.ui-datepicker {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ui-datepicker .ui-state-default {
    background: #f7f7f7;
    border: none;
    text-align: center;
}

.ui-datepicker .ui-state-hover {
    background: #e0e0e0;
}

.ui-datepicker .ui-state-active {
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
}

/* ========== PRODUCT RECOMMENDATIONS ========== */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.product-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s all;
}

.product-card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-card input[type="radio"] {
    margin-right: 12px;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-info strong {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info span {
    font-size: 14px;
    color: #555;
}

.product-price {
    font-weight: 700;
    font-size: 16px;
    color: #1b1b3a;
}

.product-note {
    margin-top: 12px;
    background-color: #eef2ff;
    padding: 8px 12px;
    border-radius: 6px;
    color: #3a3a5c;
    font-size: 14px;
}

.wc-block-components-checkout-place-order-button__text
{
    color: #fff !important;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .cmsf-wrapper {
    padding: 24px;
  }
}

@media screen and (max-width: 600px) {
    .welcome-msg h2 {
        font-size: 28px;
        padding: 0% 10%;
        line-height: 40px;
    }
    .welcome-msg img{
        width: 50%;
        height: auto;
    }
	.cmsf-steps{
		display:flex;
		gap:10px;
	}
	.cmsf-steps .step {
		font-size:10px;
	}
}