* {
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

body {
  background: #fafafa;
}

.centerTop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 20px;
}

.center {
  margin: 20% auto 0 auto
}
.errorCamera{
  border-radius: 8px;
  padding: 10px 16px;
  background-color: #e15023;
  display: flex;
  text-align: center;
  justify-content: center;
  color: #FFFFFF;
  text-shadow: 1px 1px #00000053;
  width: 380px;
  margin: 0 auto;

  align-items: center;
}
.menuButton {
  width: 100%;
  max-width: 380px;
  background-color: #271E2C;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin-top: 10px;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.menuButton:hover,
.menuButton:focus {
  background-color: #271e2cd5;
}

.padding-horizontal--48 {
  padding: 48px;
}

.padding-bottom--24 {
  padding-bottom: 24px;
}

.formbg {
  margin-top: 20px;
  margin: 0px auto;
  width: 100%;
  max-width: 448px;
  background: white;
  border-radius: 4px;
  box-shadow: rgba(60, 66, 87, 0.12) 0px 7px 14px 0px, rgba(0, 0, 0, 0.12) 0px 3px 6px 0px;
}

.field input {
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
  width: 100%;
  padding: 8px 16px;
  min-height: 32px;
  margin-top: 10px;
  border-radius: 4px;
}

textarea {
  resize: none;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
  width: 100%;
  padding: 8px 16px;
  min-height: 32px;
  margin-top: 10px;
  border-radius: 4px;
  border: 2px solid rgb(53, 53, 53);
}

.loader {
  margin: 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: linear-gradient(0deg, rgba(255, 61, 0, 0.2) 33%, #ff3d00 100%);
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
}

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

@-webkit-keyframes rotation {
  0% { -webkit-transform: rotate(0deg);}
  100% { -webkit-transform: rotate(360deg);}
}

.modalContainer {
  padding: 0;
  margin: 0;
  background-color: #f5f5f5;
  display: none;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.modalContent {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  color: #000;
  text-align: center;
  border-radius: 20px;
  padding: 30px 30px 70px;
}

button.close {
  width: 30px;
  font-size: 20px;
  color: #c0c5cb;
  align-self: flex-end;
  background-color: transparent;
  border: none;
  margin-bottom: 10px;
}

img {
  width: 82px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 40px;
  font-size: 14px;
}

button.accept {
  background-color: #271e2cd5;
  border: none;
  border-radius: 5px;
  width: 200px;
  padding: 14px;
  font-size: 14px;
  color: white;
  box-shadow: 0px 6px 18px -5px #271e2cd5;
}

.documentCamera {
  display: none;
  width: 100%;
  height: 100%;

  @media(min-width: 844px) {
    width: 50%;
  }
}

.card-container {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.step-content {
  display: none;
  margin-top: 20px;
}

.step-content.active {
  display: block;
}

.stepper-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.stepper-btn {
  flex: 1;
  padding: 10px;
  background-color: #271E2C;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

.toggle-btn {
  padding: 10px 18px;
  font-size: 15px;
  border: 2px solid #271E2C;
  background-color: transparent;
  color: #271E2C;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.toggle-btn.active {
  background-color: #271E2C;
  color: white;
}

.card-container select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  margin-top: 10px;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card-container select:focus {
  border-color: #271E2C;
  box-shadow: 0 0 4px rgba(39, 30, 44, 0.5);
}

.country-dropdown {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 300px;
  padding: 0.5rem;
  background-color: white;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
}

.country-option:hover {
  background-color: #eee;
}

.country-flag {
  margin-right: 8px;
}

.dropdown-wrapper {
  position: relative;
  width: 300px;
  margin-bottom: 16px;
}

.dropdown-selected {
  border: 1px solid #ccc;
  padding: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-selected span {
  margin-left: 8px;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.country-option {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.country-option:hover {
  background-color: #f0f0f0;
}

.country-flag {
  margin-right: 8px;
}

.dropdown-center-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.card-container .dropdown-wrapper {
  width: 300px;
}

.corner-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: auto;
  opacity: 0.9;
  z-index: 10; /* peste background, sub modale dacă vrei */
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.under-card-logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.disclosure-btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:8px 12px; border:1px solid #e6e6ea; border-radius:10px;
  background:#fff; color:#1f1f1f; font:600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.disclosure-btn:hover{ background:#f8f8fb; }
.disclosure-btn:focus-visible{ outline:2px solid #6c5ce7; outline-offset:2px; }
.disclosure-btn .chev{ margin-left:.25rem; transition:transform .2s ease; }
.disclosure-btn[aria-expanded="true"] .chev{ transform:rotate(180deg); }

.op-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
.op-panel code {
  background: #e5e7eb;
  padding: 2px 4px;
  border-radius: 4px;
}

.op-toggle-btn {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #ccc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.op-toggle-btn:hover {
  background-color: #f0f0f0 !important;
}

.op-toggle-btn i {
  transition: transform 0.2s ease;
}

.op-toggle-btn.rotated i {
  transform: rotate(180deg);
}

#final-status.success {
  color: green;
}

#final-status.error {
  color: red;
}