:root {
      --pink: #f47b9b;
      --pink-dark: #e36788;
      --error: #f47b9b;
      --border: #ddd;
      --shadow: rgba(0,0,0,0.08);
      --text: #333;
      --muted: #666;
      --bg: #f7f8fa;
    }

    body {
      background: var(--bg);
      font-family: "Inter", Arial, sans-serif;
      margin: 0;
      padding: 40px;
      color: var(--text);
    }

    input:focus,
    select:focus,
    textarea:focus {
      outline: none;
      border-color: var(--pink);
      box-shadow: 0 0 0 3px rgba(244, 123, 155, 0.25);
    }

    .cbf-container {
      max-width: 700px;
      margin: 0 auto;
      background: #fff;
      padding: 40px;
      border-radius: 16px;
      box-shadow: 0 8px 24px var(--shadow);
    }

    .cbf-progress-wrapper { margin-bottom: 24px; }
    .step-text { font-size: 16px; font-weight: 600; margin-bottom: 6px; }

    .cbf-progress { height: 6px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
    .cbf-progress .bar {
      height: 100%;
      width: 50%;
      background: linear-gradient(90deg, var(--pink), var(--pink-dark));
      transition: width 0.35s ease;
    }

    h3 { font-size: 22px; font-weight: 600; margin: 0 0 6px 0; }
    p strong { color: var(--muted); font-weight: 500; margin-bottom: 20px; display: block; }

    .cbf-field { margin-bottom: 20px; position: relative; }
    label { font-weight: 500; display: block; margin-bottom: 6px; }
    label.required::after { content: " *"; color: var(--pink); }

    select, input, textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 15px;
      box-sizing: border-box;
      background-color: #fff;
      color: var(--text);
    }

    textarea { min-height: 100px; }

    select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      padding-right: 42px;
      background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="%23999"><path d="M7 10l5 5 5-5z"/></svg>');
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 18px 18px;
    }

    .date-time-wrap { display: flex; gap: 12px; align-items: stretch; }
    .date-time-wrap .half { flex: 1; position: relative; }

    .invalid { border-color: var(--error) !important; box-shadow: 0 0 0 2px rgba(244,123,155,0.2) !important; }
    .error-text { color: var(--error); font-size: 13px; margin-top: 6px; display: none; }
    .error-text.visible { display: block; }

    .cbf-step { display: none; }
    .cbf-step.active { display: block; }

    .btn-row { margin-top: 6px; }
    button {
      background: var(--pink);
      border: none;
      color: #fff;
      font-weight: 600;
      padding: 14px 28px;
      border-radius: 999px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      margin-top: 10px;
    }
    button:hover {
      background: var(--pink-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(244,123,155,0.35);
    }
    .back-btn { background: #e0e0e0; color: #333; margin-right: 12px; }
    .back-btn:hover { background: #d5d5d5; transform: none; box-shadow: none; }

    .thank-you { text-align: center; padding: 40px; font-size: 20px; }

    /* Time dropdown */
    #timeDropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fff;
      border: 1px solid var(--border);
      max-height: 150px;      /* compact, scrollable */
      overflow-y: auto;
      z-index: 10;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    #timeDropdown div {
      padding: 8px 12px;
      cursor: pointer;
      white-space: nowrap;
    }
    #timeDropdown div:hover {
      background: var(--pink);
      color: #fff;
    }

    /* Force step text, headings and helper text to be left-aligned */
.cbf-container,
.cbf-container h2,
.cbf-container h3,
.cbf-container p,
.cbf-container .step-text,
.cbf-container .thank-you {
  text-align: left !important;
}
