/**
 * PreMember Form Styles
 *
 * Estilos para el formulario wizard de 8 pasos
 *
 * @package COEM_VU
 */

/* Form wrapper */
.coem-premember-form-wrapper {
}

/* Progress bar */
.premember-progress {
  margin-bottom: 40px;
  padding: 20px 0;
}

.premember-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.premember-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Connector line between steps */
.step-connector {
  position: absolute;
  top: 16px;
  left: calc(50% + 16px + 8px);
  right: calc(-50% + 16px + 8px);
  height: 2px;
  border: 1px solid #F8AE80;
  background: #F8D280;
  z-index: 0;
}

/* Circle container */
.premember-progress-step::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 15px;
  border: 1px solid #A8A8A4;
  border-radius: 5px;
  background: #FFFFFF;
  transition: all 0.3s ease;
  position: relative;
}

/* Check icon for completed (shown inside circle) */
.premember-progress-step::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 11px;
  background-image: url('/wp-content/plugins/coem-vu/assets/images/check-white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Step number - outside below circle */
.step-number {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #A8A8A4;
  margin-top: -5px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

/* Step name */
.step-name {
  display: block;
  color: #999;
  margin-top: 5px;
  line-height: 1.3;
  transition: all 0.3s ease;
}

/* Completed step */
.premember-progress-step.completed::before {
  border-color: #f9a825;
  background: #f9a825;
}

.premember-progress-step.completed::after {
  opacity: 1;
}

.premember-progress-step.completed .step-number {
  color: #F05C00;
}

.premember-progress-step.completed .step-name {
  color: #F05C00;
  font-weight: 600;
}

/* Active/current step */
.premember-progress-step.active::before {
  border: 1px solid #F8AE80 !important;
  border-radius: 5px !important;
  background: #FFFFFF url('/wp-content/plugins/coem-vu/assets/images/circle-active.svg') no-repeat center !important;
  background-size: 22px 22px !important;
}

.premember-progress-step.active .step-number {
  color: #F05C00;
}

.premember-progress-step.active .step-name {
  color: #F05C00;
  font-weight: 600;
}

/* Form content */
.premember-form {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  overflow: auto;
}

.premember-step-content {
  overflow: auto;
}

/* Form fields */
.premember-form-group {
  margin-bottom: 20px;
}

/* Utility classes for form elements */
[class^="field-"],
[class*=" field-"] {
  margin-bottom: 20px;
}

.uppercase-input {
  text-transform: uppercase;
}

.inline-label {
  display: inline;
  padding: 0;
}

.radio-input {
  margin: 10px 4px 10px 15px;
}

.photo-container {
  margin: 0 auto;
  text-align: center;
}

.photo-label {
  padding-bottom: 15px;
}

.photo-preview {
  width: 135px;
  cursor: pointer;
}

.select-full-width {
  width: 100%;
}

.input-width-70 {
  width: 70px;
}

.input-width-52 {
  width: 52px;
}

.input-width-127 {
  width: 127px;
}

.input-width-170 {
  width: 170px;
}

.input-width-80-percent {
  width: 80%;
  display: inline;
}

.file-preview {
  display: none;
  height: 100px;
  margin: 10px;
}

.float-right {
  float: right;
}

.hidden {
  display: none;
}

.premember-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.premember-form-group label.required::after {
  content: ' *';
  color: #F05C00;
}

/* Error states - colors inherited from _forms.scss */

/* General error message box */
.premember-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  line-height: 1.5;
}

.premember-message-error {
  background-color: #FCEDCC;
  color: #F05C00;
  padding-left: calc(15px + 32px + 12px);
  background-image: url('/wp-content/themes/coem25/assets/images/error.svg');
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 32px 32px;
}

.premember-message-success {
  background-color: #d4edda;
  color: #155724;
}

.premember-message ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.premember-message li {
  margin-bottom: 5px;
}

@media (min-width: 768px) {
  .premember-message {
    padding: 30px;
  }

  .premember-message-error {
    padding-left: calc(30px + 32px + 12px);
    background-position: 30px center;
  }
}

.premember-form-group .help-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

/* Radio and checkbox groups */
.premember-radio-group,
.premember-checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.premember-radio-group label,
.premember-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  cursor: pointer;
}

/* File upload */
.premember-file-upload {
  border: 2px dashed #ddd;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.premember-file-upload:hover {
  border-color: #1471ad;
}

.premember-file-upload.dragover {
  border-color: #1471ad;
  background: #f0f8ff;
}

.premember-file-preview {
  margin-top: 10px;
  max-width: 200px;
  max-height: 200px;
}

/* Navigation buttons */
.premember-form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.premember-btn {
  padding: 12px 30px;
  border: 1px solid #0F81C4;
  border-radius: 4px;
  font-style: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0F81C4;
  color: white;
  /* font-weight and font-size inherited from _forms.scss */
}

.premember-btn-prev {
  background: #0F81C4 !important;
  border: 1px solid #0F81C4 !important;
  color: white !important;
  font-style: normal !important;
}

.premember-btn-prev:hover {
  background: #0d6ba3 !important;
  border-color: #0d6ba3 !important;
}

.premember-btn-next {
  background: #0F81C4 !important;
  border: 1px solid #0F81C4 !important;
  color: white !important;
  font-style: normal !important;
  margin-left: auto;
}

.premember-btn-next:hover {
  background: #0d6ba3 !important;
  border-color: #0d6ba3 !important;
}

.premember-btn-submit {
  background: #0F81C4 !important;
  border: 1px solid #0F81C4 !important;
  color: white !important;
  font-style: normal !important;
  margin-left: auto;
}

.premember-btn-submit:hover {
  background: #0d6ba3 !important;
  border-color: #0d6ba3 !important;
}

.premember-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading state */
.premember-form.loading {
  opacity: 0.6;
  pointer-events: none;
}

.premember-loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1471ad;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Step intro text */
.premember-step-intro {
  margin-bottom: 30px;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Form rows */
.premember-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Info boxes */
.premember-info-box {
  background: #f8f9fa;
  border-left: 4px solid #1471ad;
  padding: 15px 20px;
  margin-top: 30px;
  border-radius: 4px;
}

.premember-info-box strong {
  display: block;
  margin-bottom: 10px;
  color: #1471ad;
}

.premember-info-box ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.premember-info-box li {
  margin-bottom: 5px;
}

.premember-info-box a {
  color: #1471ad;
  text-decoration: underline;
}

/* Data protection styles */
.premember-data-protection {
  max-width: 700px;
}

.premember-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
}

.premember-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.premember-consent-text {
  margin: 10px 0 20px 30px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Disciplines list */
.premember-disciplines-list {
  margin: 20px 0;
}

.premember-disciplines-list .premember-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.premember-disciplines-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.premember-disciplines-list label:hover {
  background: #f8f9fa;
  border-color: #1471ad;
}

.premember-disciplines-list input[type="checkbox"]:checked + label,
.premember-disciplines-list label:has(input[type="checkbox"]:checked) {
  background: #e7f3ff;
  border-color: #1471ad;
}

/* File uploaded indicator */
.file-uploaded {
  color: #28a745;
  font-weight: bold;
  margin-top: 10px;
}

/* Payment summary */
.premember-payment-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.premember-payment-summary h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #1471ad;
}

.premember-payment-table {
  width: 100%;
  border-collapse: collapse;
}

.premember-payment-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.premember-payment-table td.amount {
  text-align: right;
  font-weight: 500;
}

.premember-payment-table tr.total-row {
  border-top: 2px solid #333;
}

.premember-payment-table tr.total-row td {
  padding-top: 15px;
  font-size: 18px;
}

/* Messages - styles defined above in "General error message box" section */

/* Column layout from original Yii */
.column-full {
  width: 100%;
  float: left;
  clear: both;
}

.column-half {
  width: 48%;
  float: left;
  margin-right: 2%;
}

.column-half:nth-child(2n) {
  margin-right: 0;
}

.column-responsive-half {
  width: 100%;
  float: left;
}

@media (min-width: 768px) {
  .column-responsive-half {
    width: 48%;
    margin-right: 2%;
  }

  .column-responsive-half:nth-child(2n) {
    margin-right: 0;
  }
}

/* Margins */
.margin-short {
  margin-bottom: 10px;
}

.margin-medium {
  margin-bottom: 20px;
}

.margin-large {
  margin-bottom: 30px;
}

/* VU Head styling */
.vu-head {
}

.vu-head h2 {
}

.step-count {
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.lblCurrentStepTxt {
  margin-right: 5px;
}

/* Field intro text */
.field-intro,
.field-signature-intro {
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
  font-weight: normal;
  font-style: normal;
}

/* Clausule / legal text */
.clausule {
  background: #f8f9fa;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}

/* itext - informative text */
.itext {
}

/* Upload button styling - inherited from _forms.scss */

input[type="file"].file {
  display: none;
}

/* Discipline pills */
.discipline-pill {
  display: inline-block;
  padding: 8px 15px;
  background: #e7f3ff;
  border: 1px solid #1471ad;
  border-radius: 20px;
  margin: 5px;
  font-size: 14px;
}

.discipline-pill .remove-discipline {
  margin-left: 10px;
  color: #0F81C4;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
}

.discipline-pill .remove-discipline:hover {
  color: #0d6ba3;
}

/* Modal styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

.modal .form-row {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.modal table.amounts {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.modal table.amounts th,
.modal table.amounts td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.modal table.amounts th {
  background: #f8f9fa;
  font-weight: bold;
}

.modal table.amounts td.th {
  background: #f8f9fa;
  font-weight: bold;
}

/* Numeric input styling */
input.numeric {
  text-align: center;
}

input.account {
  display: inline-block;
  margin: 0 5px;
}

.loadingmin {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

/* Responsive */
@media (min-width: 768px) {
  .premember-form {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .premember-progress-steps {
    flex-wrap: wrap;
  }

  .premember-progress-step {
    flex-basis: 25%;
    margin-bottom: 20px;
  }

  .step-name {
    display: none;
  }

  .premember-form-navigation {
    flex-direction: column;
  }

  .premember-btn-next,
  .premember-btn-submit {
    margin-left: 0;
  }

  .premember-form-row {
    grid-template-columns: 1fr;
  }

  .premember-disciplines-list .premember-checkbox-group {
    grid-template-columns: 1fr;
  }

  .column-half {
    width: 100%;
    margin-right: 0;
  }
}

/* Clear floats */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================
   Error Dialog
   ============================================ */

/* Overlay */
.premember-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Dialog box */
.premember-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dialog header */
.premember-dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  border-radius: 8px 8px 0 0;
}

.premember-dialog-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  /* color inherited from _forms.scss */
}

.premember-dialog-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.premember-dialog-close:hover {
  background: #e0e0e0;
  color: #333;
}

/* Dialog body */
.premember-dialog-body {
  padding: 24px;
}

.error-intro {
  margin: 0 0 16px;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.error-list {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.error-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  /* color inherited from _forms.scss */
}

.error-list li::before {
  content: '✕';
  position: absolute;
  left: -20px;
  font-weight: bold;
  /* color inherited from _forms.scss */
}

/* Dialog footer */
.premember-dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8f8f8;
  border-radius: 0 0 8px 8px;
}

.premember-btn-primary {
  background-color: #F05C00;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.premember-btn-primary:hover {
  background-color: #d94f00;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(240, 92, 0, 0.3);
}

.premember-btn-primary:active {
  transform: translateY(0);
}

/* Bank account inputs */
.field-bank-code input {
  margin-bottom: 10px;
}

/* Bank account validation display */
#BankValid {
  display: block;
  width: 100%;
}

.bank-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.bank-valid-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin-top: 10px;
}

.bank-icon-loading {
  width: 20px;
  height: 20px;
  background-image: url('/wp-content/plugins/coem-vu/assets/images/icon-loading-circle.svg');
  animation: bank-spinner 1s linear infinite;
}

@keyframes bank-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.bank-valid-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #22c55e;
  font-size: 15px;
  margin-top: 10px;
}

.bank-icon-success {
  width: 24px;
  height: 24px;
  background-image: url('/wp-content/plugins/coem-vu/assets/images/icon-check-circle.svg');
}

.bank-valid-success strong {
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.5px;
}

.bank-valid-error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 14px;
  margin-top: 10px;
}

.bank-icon-error {
  width: 22px;
  height: 22px;
  background-image: url('/wp-content/plugins/coem-vu/assets/images/icon-error-circle.svg');
}

/* Disciplines */
.field-disciplines-title h4 {
  margin-bottom: 5px;
}

.field-disciplines-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.field-disciplines-selector label {
  width: 100%;
}

.field-disciplines-selector select {
  flex: 1;
}

.field-disciplines-selector .button {
  border: 1px solid #0F81C4;
  background: #0F81C4;
  color: white;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.field-disciplines-selector .button:hover {
  background: #0d6ba3;
  border-color: #0d6ba3;
}

.field-disciplines-selector .button:focus {
  background: #0F81C4;
  border-color: #0F81C4;
  color: white;
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .premember-dialog {
    max-width: 100%;
    margin: 20px;
  }

  .premember-dialog-header h3 {
    font-size: 18px;
  }

  .premember-dialog-body {
    padding: 20px;
  }

  .error-list li {
  }
}

/* Text classes (without font-size override) */
.file-help-link {
}

.data-protection-text {
}

.insurance-intro-text {
}

.legal-text {
}

.disclaimer-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.disclaimer-text input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.disclaimer-text label {
  flex: 1;
}

/* Signature Pad Styles */
.signature-pad {
  border: 2px solid #ddd;
  border-radius: 4px;
  margin: 20px 0;
  background: #fff;
}

.signature-pad--body {
  position: relative;
  background: #ffffff;
}

.signature-pad--body canvas {
  border-bottom: 1px solid #ddd;
  cursor: crosshair;
  display: block;
  width: 100%;
  height: 200px;
  background: #ffffff;
  touch-action: none; /* Prevent scrolling on touch devices */
}

.signature-pad--footer {
  padding: 10px 15px;
  background: #f8f9fa;
}

.signature-pad--footer .description {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.signature-pad--actions {
  padding: 12px;
  text-align: center;
  border-top: 1px solid #ddd;
  background: #ffffff;
}

.signature-pad--actions a {
  display: inline-block;
  margin: 0 15px;
  padding: 8px 12px;
  color: #1471ad;
  text-decoration: none;
  border: 1px solid #1471ad;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.signature-pad--actions a:hover {
  background: #1471ad;
  color: #fff;
  text-decoration: none;
}

.signature-pad--actions a i {
  margin-right: 5px;
}

/* Disclaimer Box Styles */
.disclaimer-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.disclaimer-box p {
  margin-bottom: 15px;
}

.disclaimer-box input[type="checkbox"] {
  margin-right: 10px;
  vertical-align: middle;
}

.disclaimer-box label {
  vertical-align: middle;
  cursor: pointer;
}

.disclaimer-box a {
  color: #1471ad;
  text-decoration: underline;
}

.disclaimer-box a:hover {
  text-decoration: none;
}

.dialog-Photo .photo-controls button {
  border:1px solid #1471ad !important;
  color: #1471ad !important;
}

/* Responsive layout for name fields */
@media (min-width: 768px) {
  .field-name {
    display: flex;
    gap: 15px;
  }

  .field-name-input {
    flex: 1;
  }

  .field-last-name {
    flex: 1;
  }

  .field-member-region {
    display: flex;
    gap: 15px;
  }

  .field-member-region-input {
    flex: 1;
  }

  .field-phone {
    flex: 1;
  }

  .field-email {
    flex: 2;
  }

  .field-document {
    display: flex;
    gap: 15px;
  }

  .field-document-number {
    flex: 1;
  }

  .field-document-type {
    flex: 1;
  }

  .field-birth {
    display: flex;
    margin-left: -7.5px;
    margin-right: -7.5px;
    flex-wrap: wrap;
  }

  .field-birth-date {
    width: calc(25% - 15px);
    margin-left: 7.5px;
    margin-right: 7.5px;
  }

  .field-birth-province-id {
    width: calc(25% - 15px);
    margin-left: 7.5px;
    margin-right: 7.5px;
  }

  .field-birth-town {
    width: calc(50% - 15px);
    margin-left: 7.5px;
    margin-right: 7.5px;
  }

  .field-birth-country-id {
    width: calc(50% - 15px);
    margin-left: 7.5px;
    margin-right: 7.5px;
  }

  .field-nationality-id {
    width: calc(50% - 15px);
    margin-left: 7.5px;
    margin-right: 7.5px;
  }

  .photo-container {
    text-align: left;
  }

  .field-address-type {
    display: flex;
    gap: 15px;
  }

  .field-address-type-input {
    flex:1;
  }

  .field-address {
    flex: 1;
  }

  .field-address-number {
    display: flex;
    gap: 15px;
  }

  .field-address-number-input {
    flex: 1;
  }

  .field-address-floor {
    flex: 1;
  }

  .field-city {
    flex: 2;
  }

  .field-postal-code {
    display: flex;
    gap: 15px;
  }

  .field-postal-code-input {
    flex: 1;
  }

  .field-province-id {
    flex: 1;
  }

  .field-bank-code {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
  }

  .field-bank-code > label {
    width: 100%;
  }

  .field-bank-code .bank-fields {
    display: flex;
  }

  .field-bank-code .bank-fields input[name="bank_code"] {
    flex: 2;
  }

  .field-bank-code .bank-fields input[name="bank_office"] {
    flex: 2;
  }

  .field-bank-code .bank-fields input[name="bank_dc"] {
    flex: 1;
  }

  .field-bank-code .bank-fields input[name="bank_account"] {
    flex: 5;
  }

  .field-bank-bic > label {
    width: 100%;
    display: block;
    max-width: 300px;
  }

  .field-bank-bic > label > a {
    float:none;
  }

  .field-bank-bic > input {
    width: 300px;
  }

  .field-degree {
    display: flex;
    gap: 15px;
  }

  .field-degree-input {
    flex: 1;
  }

  .field-university-name {
    flex: 1;
  }

  .field-degree-date {
    display: flex;
    gap: 15px;
  }

  .field-degree-date-input {
    flex: 1;
  }

  .field-degree-country-id {
    flex: 1;
  }

  .field-degree-doc {
    width: 300px;
  }

  .field-document-identity {
    width: 300px;
  }

  .field-certificates {
    width: 300px;
  }
}

/* Document validation states */
input.success {
  border-color: #28a745 !important;
}

/* input.error inherited from _forms.scss */

.success-message {
  color: #28a745;
  font-size: 12px;
  display: block;
  margin-top: 3px;
}

.validating-message {
  color: #666;
  font-size: 12px;
  display: block;
  margin-top: 3px;
}

