

/* Form container */
.form.card {
    max-width: 1200px;
    margin: 1.25rem auto;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: #111827;
  }
  
  .form.card .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem; 
    margin-bottom: 1rem;
  }
  
  .form.card label {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    font-weight: 600;
  }
  
  .form.card .input {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: #111827;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  }
  
  .form.card .input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  }
  
  .form.card .input::placeholder { color: #9ca3af; }
  
  .form.card textarea.input {
    min-height: 110px;
    resize: vertical;
  }
  
  .form.card .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .form.card .checkbox {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-right: auto;
    flex-direction: row;
  }
  
  .form.card .checkbox input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #2563eb; 
  }
  
  .form.card .btn.primary {
    appearance: none;
    border: none;
    border-radius: 9999px;
    padding: .675rem 4.25rem;
    background: #1d4ed8; 
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(29,78,216,.25);
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
  }
  
  .form.card .btn.primary:hover { background: #1e40af; }
  .form.card .btn.primary:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(29,78,216,.25); }

  .form.card .input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
  }
  .form.card .error-text {
    color: #dc2626;
    font-size: 0.85rem;
    line-height: 1.2;
    min-height: 1.1em;
    margin-top: .25rem;
    display: block;
  }
  .form.card .form-summary {
    margin-bottom: 1.75rem;
    padding: .625rem .75rem;
    border-radius: 10px;
    background: #fef2f2; 
    color: #7f1d1d; 
    font-weight: 600;
  }
  @media (max-width: 1024px) {
    .form.card .row { grid-template-columns: 1fr; }
    .form.card .actions { flex-direction: column; align-items: stretch; gap: .75rem; }
    .form.card .checkbox { margin-right: 0; order: 2; }
    .form.card .btn.primary { width: 100%; order: 1; }
  }
  