/* ── Banner ── */
.create-banner {
    background: linear-gradient(120deg, #009470, #42a06d);
    padding: 2.5rem 5%;
    display: flex;
    align-items: center;
  }
 
  .create-banner-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.3rem;
  }
 
  .create-banner-content p {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
  }
 
  /* ── Page wrapper ── */
  .create-wrap {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
  }
 
  /* ── Error banner ── */
  .form-error-banner {
    background: #fff3f3;
    border: 1px solid #f5c0c0;
    color: #c0392b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
  }
 
  /* ── Cards ── */
  .form-card {
    background: #ffffff;
    border: 1.5px solid #d7ebe3;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
  }
 
  .form-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3d2b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px solid #d7ebe3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
 
  /* ── Fields ── */
  .field-group {
    margin-bottom: 1rem;
  }
 
  .field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a3d2b;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
 
  .required { color: #e74c3c; }
 
  .field-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid #d7ebe3;
    border-radius: 999px;
    font-size: 0.95rem;
    background: #f9fcfa;
    color: #1a3d2b;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
  }
 
  .field-input:focus {
    outline: none;
    border-color: #009470;
    box-shadow: 0 0 0 3px rgba(0, 148, 112, 0.12);
    background: #ffffff;
  }
 
  /* textarea overrides pill shape */
  textarea.field-input {
    border-radius: 12px;
    resize: vertical;
    min-height: 80px;
  }
 
  select.field-input {
    appearance: none;
    cursor: pointer;
  }
 
  /* ── Toggle ── */
  .toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 1rem;
  }
 
  .toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
 
  .toggle-hint {
    font-size: 0.82rem;
    color: #9ab8ac;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }
 
  .toggle-track {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 26px;
  }
 
  .toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
  }
 
  .toggle-thumb {
    display: block;
    width: 48px;
    height: 26px;
    background: #d7ebe3;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
    cursor: pointer;
  }
 
  .toggle-thumb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  }
 
  .toggle-input:checked + .toggle-thumb {
    background: #009470;
  }
 
  .toggle-input:checked + .toggle-thumb::after {
    transform: translateX(22px);
  }
 
  /* ── Ingredient rows ── */
  .ingredient-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
 
  .qty-input   { width: 85px;  flex-shrink: 0; }
  .unit-select { width: 95px;  flex-shrink: 0; }
  .name-input  { flex: 1; }
 
  /* ── Step rows ── */
  .step-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
 
  .step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #009470;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: 0.6rem;
  }
 
  .step-textarea { flex: 1; }
 
  /* ── Buttons ── */
  .remove-btn {
    background: none;
    border: 1.5px solid #d7ebe3;
    border-radius: 50%;
    color: #9ab8ac;
    cursor: pointer;
    font-size: 0.8rem;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    margin-top: 0.55rem;
    padding: 0;
  }
 
  .remove-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
  }
 
  .add-btn {
    background: none;
    border: 1.5px dashed #d7ebe3;
    border-radius: 999px;
    color: #9ab8ac;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    padding: 0.5rem 1.25rem;
    margin-top: 0.25rem;
    width: 100%;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
 
  .add-btn:hover {
    border-color: #009470;
    color: #009470;
    background: #f0faf7;
  }
 
  .form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
 
  .cancel-btn {
    font-size: 0.9rem;
    color: #9ab8ac;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid #d7eba3;
    transition: color 0.15s, border-color 0.15s;
  }
 
  .cancel-btn:hover {
    color: #1a3d2b;
    border-color: #1a3d2b;
  }
 
  .submit-btn {
    background: #009470;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 2rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
  }
 
  .submit-btn:hover  { background: #42a06d; }
  .submit-btn:active { transform: scale(0.97); }