/* Form elements */
.field { 
  margin-bottom: 0px; 
}

.field:last-child {
  margin-bottom: 0;
}

.balance-block {
  position: relative;
  padding: 20px;
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='280' viewBox='0 0 360 280'%3E%3Ctext x='20' y='45' font-size='38' fill='rgba(34,197,94,0.12)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='140' y='95' font-size='62' fill='rgba(34,197,94,0.07)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='260' y='35' font-size='28' fill='rgba(34,197,94,0.1)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='50' y='175' font-size='48' fill='rgba(34,197,94,0.06)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='300' y='155' font-size='32' fill='rgba(34,197,94,0.09)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='180' y='235' font-size='42' fill='rgba(34,197,94,0.05)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='95' y='125' font-size='24' fill='rgba(34,197,94,0.08)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3Ctext x='220' y='70' font-size='18' fill='rgba(34,197,94,0.07)' font-family='system-ui,sans-serif'%3E%24%3C/text%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(240, 253, 244, 0.95) 0%, rgba(254, 252, 232, 0.98) 40%, rgba(254, 243, 199, 0.95) 100%);
  background-size: 360px 280px, 100% 100%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.08);
}

.balance-block .field,
.balance-block .field label,
.balance-block .field p,
.balance-block .field small {
  position: relative;
  z-index: 1;
}

.balance-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  padding: 12px 20px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.06);
  letter-spacing: 0.02em;
  line-height: 1.2;
  width: fit-content;
  margin: 0 auto;
}

.balance-display-unit {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6b7280;
}

.field .error-message {
  margin-top: 8px;
  margin-bottom: 0;
  color: #dc3545;
  font-size: 14px;
  line-height: 1.4;
}
label { display:block; font-size: 13px; margin-bottom: 6px; color:#333; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width:100%;
  display:block;
  padding: 10px;
  border:0;
  border-radius: 16px;
  font-size:15px;
  box-sizing: border-box;
  background:#f6f0e4;
  line-height: 1.5;
  color: #111;
  margin: 0;
}

/* Предотвращение автоматического увеличения масштаба на мобильных устройствах при фокусе на input */
@media screen and (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
  
  input::placeholder,
  textarea::placeholder {
    font-size: 16px !important;
  }
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

/* Enhanced select styling for all selects */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
  padding-right: 48px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  margin: 0;
}

/* Beautiful option styling - ограниченная поддержка браузерами */
select option {
  padding: 12px 16px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
  min-height: 44px;
  line-height: 1.5;
}

/* Hover effect for options (limited browser support) */
select option:hover,
select option:focus {
  background: #f3f4f6;
  color: #111827;
}

/* Selected option styling */
select option:checked,
select option[selected] {
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
}

/* Focus state for select */
select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d6efd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Hover state for select (excluding form-control) */
select:not(.form-control):hover {
  border-color: #c7c7cf;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
input:focus, textarea:focus {
  outline: none;
  border-color: #0d6efd;
}
input:not(.form-control):hover, textarea:not(.form-control):hover {
  border-color: #c7c7cf;
}
.error { color:#b42318; font-size: 13px; margin: 8px 0 0; }

