
/* CCF Lead Capture Form Styles */

/* Toggle Container */
.ccf-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  flex-wrap: nowrap;
  line-height: 0; /* keeps elements tight */
}

/* Label beside toggle */
.ccf-toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: #15549b;
  user-select: none;
  line-height: 0;
  margin: 0;
  flex: 1;
}

.ccf-toggle-label a {
  color: #15549b;
  text-decoration: underline;
}

/* Toggle switch */
.ccf-toggle-switch {
  position: relative;
  width: 28px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
}

/* Hide default checkbox */
.ccf-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider styling */
.ccf-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ccf-slider:before {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* ON state */
.ccf-toggle-switch input:checked + .ccf-slider {
  background-color: #28a745;
}

.ccf-toggle-switch input:checked + .ccf-slider:before {
  transform: translateX(14px);
}


/* Base Reset */
.ccf-lead-form * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Form Container */
.ccf-lead-form {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 2px solid #15549b;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Flex Layout */
.ccf-lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ccf-lead-form input,
.ccf-lead-form select,
.ccf-lead-form button {
  flex: 1 1 100%;
}

/* Labels (if added later) */
.ccf-lead-form label {
  font-weight: 600;
  color: #15549b;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* Inputs and Selects */
.ccf-lead-form input,
.ccf-lead-form select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  width: 100%;
}

.ccf-lead-form input:focus,
.ccf-lead-form select:focus {
  border-color: #ff399b;
  outline: none;
}

/* Submit Button */
.ccf-lead-form button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(to right, #15549b, #ff399b);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.ccf-lead-form button[type="submit"]:hover {
  opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .ccf-lead-form {
    flex-direction: column;
  }

  .ccf-lead-form button[type="submit"] {
    font-size: 16px;
  }




    
}

/* ==== DESKTOP ONLY: reduce form size ==== */
@media (min-width: 768px) {
  .ccf-lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
  }

  .lead-capture-heading {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 10px;
  }

  .ccf-lead-form input {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .ccf-lead-form button,
  .ccf-toggle-wrapper,
  .terms-section {
    grid-column: span 2;
  }

  .ccf-lead-form h3 {
    font-size: 22px;
    margin-bottom: 5px;
  }

  .ccf-lead-form p {
    font-size: 14px;
    margin: 0;
  }
}
