div#field_customer_customer_type div.row > div {
  display: inline-block;
  width: 45%;
  margin-left: 15px;
}

div#field_custom_customer_type .label-error {
  color: #ff4c4c;
}

@media(max-width: 1199px) {
  div#field_customer_customer_type div.row > div {
      width: 100%;
  }
}

/**
 * Customer Type OPC - Modal Styles (BEM Methodology)
 * Block: ctopc-modal
 */

/* Block */
.ctopc-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Elements */
.ctopc-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.ctopc-modal__content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: ctopModalFadeIn 0.3s ease;
}

@keyframes ctopModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ctopc-modal__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.ctopc-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctopc-modal__icon {
  font-size: 24px;
  color: #2fb5d2;
}

.ctopc-modal__body {
  padding: 24px;
}

.ctopc-modal__description {
  margin: 0 0 20px;
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.ctopc-modal__error {
  margin-bottom: 16px;
}

.ctopc-modal__selector {
  margin-bottom: 8px;
}

/* Radio options */
.ctopc-modal__option {
  margin-bottom: 12px;
}

.ctopc-modal__label {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0;
  font-weight: 400;
}

.ctopc-modal__label:hover {
  border-color: #2fb5d2;
  background-color: #f8f9fa;
}

.ctopc-modal__input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.ctopc-modal__input:checked {
  accent-color: #2fb5d2;
}

.ctopc-modal__input:checked + .ctopc-modal__text {
  font-weight: 600;
  color: #2fb5d2;
}

.ctopc-modal__label:has(.ctopc-modal__input:checked) {
  border-color: #2fb5d2;
  background-color: #f0f9fb;
}

.ctopc-modal__text {
  flex: 1;
  font-size: 15px;
  color: #333;
}

/* Dropdown select */
.ctopc-modal__select {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  height: auto !important;
  transition: border-color 0.2s ease;
}

.ctopc-modal__select:focus {
  outline: none;
  border-color: #2fb5d2;
  box-shadow: 0 0 0 3px rgba(47, 181, 210, 0.1);
}

.ctopc-modal__footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
}

/* Button */
.ctopc-modal__button {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.ctopc-modal__button--primary:not(:disabled) {
  background-color: #2fb5d2;
  color: #fff;
}

.ctopc-modal__button--primary:not(:disabled):hover {
  background-color: #28a3bf;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 181, 210, 0.3);
}

.ctopc-modal__button:disabled {
  background-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

.ctopc-modal__button:active:not(:disabled) {
  transform: translateY(0);
}

.ctopc-modal__button-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ctopc-modal__button-text .material-icons {
  font-size: 20px;
}

.ctopc-modal__button-loader {
  display: none;
}

.ctopc-modal__button-loader .material-icons {
  font-size: 20px;
  animation: ctopRotate 1s linear infinite;
}

@keyframes ctopRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Modal Mobile responsive */
@media (max-width: 576px) {
  .ctopc-modal {
    padding: 10px;
  }

  .ctopc-modal__content {
    max-height: 95vh;
  }

  .ctopc-modal__header {
    padding: 20px 20px 12px;
  }

  .ctopc-modal__title {
    font-size: 18px;
  }

  .ctopc-modal__body {
    padding: 20px;
  }

  .ctopc-modal__description {
    font-size: 14px;
  }

  .ctopc-modal__label {
    padding: 12px 14px;
  }

  .ctopc-modal__text {
    font-size: 14px;
  }

  .ctopc-modal__footer {
    padding: 12px 20px 20px;
  }

  .ctopc-modal__button {
    width: 100%;
  }
}

/* Modal Accessibility */
.ctopc-modal__input:focus {
  outline: 2px solid #2fb5d2;
  outline-offset: 2px;
}

.ctopc-modal__select:focus-visible {
  outline: 2px solid #2fb5d2;
  outline-offset: 2px;
}

.ctopc-modal__button:focus-visible {
  outline: 2px solid #2fb5d2;
  outline-offset: 2px;
}