.csd-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-direction: row;
    flex-wrap: nowrap;
}


.csd-options input[type="radio"]:checked+label {
    background-color: #000000;
    border-radius: 4px;
    color: white;
    padding: 2px 6px;
}

.csd-preview {
    flex: 1 1 45%;
    order: 1;
    height: 500px !important;
    background-color: #f9f9f9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* position: relative; */
    overflow: hidden;


    position: sticky !important;
    /* top: 30px !important; */
    top: 115px !important;
    /* let it grow */
    align-self: flex-start;
}



.csd-preview-wrapper {
  position: relative;
  flex: 1 1 45%;
  max-height: 100%;
}





#csd-text-preview {
    position: relative;
    z-index: 2;
    /* ✅ Above the blur layer */
    font-size: 36px;
    font-weight: bold;
    color: black;
    text-align: center;
    padding: 20px;
}

.csd-form {
    flex: 1 1 45%;
    order: 2;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.csd-form label {
    font-weight: bold;
    display: block;
    margin-top: 20px;
}

.csd-form input[type="text"],
.csd-form input[type="url"],
.csd-form input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

.csd-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.csd-font-btn {
    /* padding: 10px 12px 40px; */
    padding: 12px 40px 10px;
    border: 2px solid black;
    background: #eee;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.csd-font-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #444;
}

.csd-bg-thumb {
    width: 55px;
    height: 50px !important;
    object-fit: cover;
    border: 3px solid white !important;
    cursor: pointer;
    border-radius: 35% !important;
    transition: border 0.3s ease;
    /* ✅ only transition border now */
}

/* 🔁 Remove border on hover */
.csd-bg-thumb:hover {
    border: none !important;
}


.csd-bg-thumb.selected {
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.csd-form button[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    margin-top: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.csd-form button[type="submit"]:hover {
    background-color: #005177;
}

/* ✅ Background preview strip - aligned correctly & above blur */
.csd-bg-strip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    /* Above blur */
    background-color: transparent;
    padding: 6px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.csd-bg-strip strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.csd-font-btn.active-font {
    background-color: #000;
    color: #fff;
}

.csd-font-btn:hover {
    background-color: #000;
    color: #fff;
}

/* ✅ Blur effect only behind text + background preview */
.csd-preview.led-on::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    /* ✅ Behind text and bg-preview */
}



















.csd-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.option {
    position: relative;
    cursor: pointer;
}

.option input[type="radio"] {
    display: none;
}

.option span {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid black;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: white;
    color: black;
    transition: all 0.3s ease;
}

/* Selected */
.option input[type="radio"]:checked+span {
    background-color: black;
    color: white;
}

/* Optional hover effect */
.option:hover span {
    opacity: 0.85;
}











.section-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-note {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    line-height: 1.4;
}


























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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background-color: #f5f5f5;
    border: 1px solid #333;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
}

.submit-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 12px 0;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background-color: #222;
}






@media (max-width: 767px) {
  /* Overall wrapper needs full height viewport */
  .csd-preview-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Container becomes scrollable form section */
  .csd-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  /* Sticky Preview Block */
  .csd-preview {
/*     position: sticky; */
    top: 0 !important;
    z-index: 10;
	left:0px !important;
	width:100%;
    background-color: #f9f9f9; /* to prevent transparency on scroll */
    padding-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* subtle shadow */
    height: 250px !important;
  }

  /* Text inside preview */
 #csd-text-preview {
  font-size: 18px !important;
  font-weight: 600;
  margin-bottom: 50px;
  text-align: center;
  padding: 10px;
  min-height: 40px;
  line-height: 1.4;
  position: sticky;
  top: 0;
  z-index: 100;
}


  /* Background strip stays in sticky preview */
  .csd-bg-strip {
    /* position: relative; */
    transform: none;
    bottom: unset;
    left: unset;
    margin-top: 160px;
    text-align: center;
  }

  .csd-bg-thumb {
  width: 35px;
  height: 35px !important;
  margin: 0 4px;
}


  /* Form styling preserved */
  .csd-form {
    padding: 20px 15px;
  }

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

  .csd-options {
    margin-bottom: 15px;
  }

  button[type="submit"] {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }

  .csd-bg-strip strong {
    font-size: 16px;
    display: block;
    margin-bottom: -33px;
}
	
	    
.csd-font-btn {
    border: 2px solid black;
    background: #eee;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
    width:45% !important ;
    height:50px !important;
}
}
