form{
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-rows: min-content;
  height: 100%}
/*body*/
form .body{
  display: grid;
  grid-auto-rows:min-content;
  max-height: 560px;
  min-height: 300px;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  gap: var(--space-4)}

/*feild*/
form .field{ 
  display:grid; 
  gap:6px}
form .field label{ 
  font-size: var(--fs-sm); 
  color: var(--gray-700)}

/* checkbox row */
.check{
  display:flex; 
  align-items:center; 
  gap:10px; 
  font-size: var(--fs-sm); 
  color: var(--gray-700)}
.check input{ 
  width:16px; 
  height:16px}

/* error text */
form .error{
  display:none; padding:8px 10px; 
  border:1px solid var(--red-500);
  background: var(--red-100); 
  color: var(--red-500); 
  border-radius: var(--radius-md);
  font-size: var(--fs-sm)}
form .error.on{display:block}

/* avatar picker */
.avatar{
  justify-content: center;
  display:flex; 
  align-items:center; 
  gap:14px}
.avatar img{
  object-fit: cover;
  width:84px; 
  height:84px; 
  border-radius:50%;
  border:1px dashed var(--gray-300);
  box-shadow: var(--shadow-sm)}
.avatar .controls{
  display:flex; 
  gap:8px}
.avatar .controls .icon-btn{ 
  width:34px; 
  height:34px; 
  --icon-size:18px}

.check{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0}

input[type="radio"]{
  width: 18px;
  height: 18px;
  accent-color: var(--green-500)}

select{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: var(--fs-md);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none}
select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: var(--shadow-sm), var(--focus-ring)}
#bnk_card{
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  font-size: var(--fs-md)}
#bnk_card:focus{
  outline: none;
  border-color: var(--green-500);
  box-shadow: var(--shadow-sm), var(--focus-ring)}
  .InputElement{
    font-size: var(--fs-ld)}
/*footer*/
form .footer{
  border-top: 1px solid var(--gray-300)}
form .footer.btn-container{
  padding: var(--space-4);
  display: flex;
  justify-content: flex-end;
  gap:8px}

form .footer.input{
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5)}
form .footer.input .a{
  align-items: center;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr min-content}
form .footer.input input{
  min-width: 0}