/*!*****************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[0].use[3]!./src/scss/blocks/customer-modal.scss ***!
  \*****************************************************************************************************************************************************************************************************************************************/
.customer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.customer-modal.is-open {
  display: flex;
}
.customer-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(75, 75, 75, 0.32);
  z-index: -1;
  animation: fadeIn 0.3s ease-out;
}
.customer-modal__content {
  position: relative;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}
@media (max-width: 640px) {
  .customer-modal__content {
    width: 95%;
    max-width: 100%;
  }
}
.customer-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s ease;
  z-index: 10;
}
.customer-modal__close:hover, .customer-modal__close:focus {
  color: #333;
  outline: 2px solid #007bff;
  outline-offset: 2px;
}
.customer-modal__close svg {
  width: 24px;
  height: 24px;
}
.customer-modal__body {
  padding: 40px;
}
@media (max-width: 768px) {
  .customer-modal__body {
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .customer-modal__body {
    padding: 16px;
  }
}
.customer-modal__title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}
@media (max-width: 768px) {
  .customer-modal__title {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  .customer-modal__title {
    font-size: 18px;
  }
}
.customer-modal__description {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .customer-modal__description {
    font-size: 13px;
    margin-bottom: 16px;
  }
}
@media (max-width: 640px) {
  .customer-modal__description {
    font-size: 12px;
  }
}
.customer-modal__error {
  padding: 16px;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease-out;
}
.customer-modal__error.is-hidden {
  display: none;
}
.customer-modal__form-container {
  transition: opacity 0.3s ease;
}
.customer-modal__form-container.is-hidden {
  display: none;
}
.customer-modal__success {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.3s ease-out;
}
.customer-modal__success.is-hidden {
  display: none;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.error-header svg {
  width: 20px;
  height: 20px;
  color: #dc2626;
  flex-shrink: 0;
}

.error-title {
  font-weight: 600;
  color: #dc2626;
  font-size: 14px;
}

.error-message {
  color: #991b1b;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.customer-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 768px) {
  .form-group {
    gap: 4px;
  }
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 768px) {
  .form-label {
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .form-label {
    font-size: 12px;
  }
}

.form-required {
  color: #e74c3c;
  font-weight: 600;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #fff;
}
@media (max-width: 768px) {
  .form-input {
    padding: 10px 12px;
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .form-input {
    padding: 9px 11px;
    font-size: 12px;
  }
}
.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.form-input[aria-invalid=true] {
  border-color: #e74c3c;
  background-color: #fef5f5;
}
.form-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}
.form-input::placeholder {
  color: #999;
  font-size: 14px;
}
@media (max-width: 768px) {
  .form-input::placeholder {
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .form-input::placeholder {
    font-size: 12px;
  }
}

.form-error {
  font-size: 12px;
  color: #e74c3c;
  min-height: 16px;
  display: block;
}
@media (max-width: 768px) {
  .form-error {
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  .form-error {
    font-size: 10px;
  }
}

.form-submit {
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  position: relative;
}
@media (max-width: 768px) {
  .form-submit {
    padding: 10px 18px;
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .form-submit {
    padding: 9px 16px;
    font-size: 12px;
  }
}
.form-submit:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}
.form-submit:active:not(:disabled) {
  transform: translateY(0);
}
.form-submit:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}
.form-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}
.form-submit.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.success-icon svg {
  color: #059669;
  width: 48px;
  height: 48px;
}

.success-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
}

.success-message {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-contrast: more) {
  .customer-modal__content {
    border: 2px solid #000;
  }
  .form-input {
    border-width: 2px;
  }
  .form-submit {
    border: 2px solid transparent;
  }
  .form-submit:focus {
    outline-width: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .customer-modal__overlay, .customer-modal__content {
    animation: none;
  }
  .success-icon {
    animation: none;
  }
  .loading-spinner {
    animation: none;
    border-top-color: white;
  }
  .form-input,
  .form-submit {
    transition: none;
  }
}
