/* ============================= */
/* BUTTON */
/* ============================= */
.primary-btn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;

  font-size: 16px;
  font-weight: 600;

  background: linear-gradient(135deg, #007aff, #005fcc);
  color: white;

  border: none;
  border-radius: 14px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,122,255,0.25);
}

.primary-btn:active {
  transform: scale(0.97);
}


/* ============================= */
/* INPUT / SELECT UNIFIED */
/* ============================= */
.input-shell input,
.input-shell select {
  width: 100%;
  padding: 14px;

  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;

  background: #f9fafb;
  transition: all 0.2s ease;

  outline: none;
}

/* Focus */
.input-shell input:focus,
.input-shell select:focus {
  border-color: #007aff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.1);
}

/* iOS Zoom Fix */
input,
select {
  font-size: 16px;
}


/* ============================= */
/* LANGUAGE SWITCH */
/* ============================= */
.lang-shell {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: white;

  cursor: pointer;
  font-weight: 500;
}


/* ============================= */
/* SELECT (native clean) */
/* ============================= */
.input-shell select {
  appearance: none;
  -webkit-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5H5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;

  padding-right: 36px;
}


/* ============================= */
/* COUNTRY DROPDOWN */
/* ============================= */
.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);

  max-height: 40vh;
  overflow-y: auto;

  z-index: 1000;
  display: none;

  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.18s ease;
}

.country-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* ============================= */
/* COUNTRY ITEM */
/* ============================= */
.country-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  cursor: pointer;

  font-size: 15px;
  transition: background 0.15s ease;
}

.country-item:hover {
  background: #f4f6f8;
}

.country-item.active {
  background: #e8f0fe;
}

.country-flag {
  font-size: 18px;
  flex-shrink: 0;
}


/* ============================= */
/* DIVIDER */
/* ============================= */
.country-divider {
  padding: 8px 12px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
}


/* ============================= */
/* SCROLLBAR */
/* ============================= */
.country-dropdown::-webkit-scrollbar {
  width: 6px;
}

.country-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}


/* ============================= */
/* FIELD */
/* ============================= */
.field {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  margin-bottom: 6px;

  font-size: 13px;
  color: #555;
  font-weight: 500;
}


/* ============================= */
/* CUSTOM SELECT (read-only) */
/* ============================= */
.input-shell input[readonly] {
  cursor: pointer;
  background: #fff;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5H5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}


/* ============================= */
/* VALIDATION (PRO UX FIX) */
/* ============================= */

/* ❌ Browser default komplett deaktivieren */
input:invalid,
select:invalid {
  border: 1px solid #dcdcdc !important;
  background: #f9fafb !important;
  box-shadow: none !important;
}

/* Safari Fix */
input:invalid:focus,
select:invalid:focus {
  box-shadow: none !important;
}

/* ✅ NUR unsere Fehler anzeigen */
.input-error {
  border: 1.5px solid #ff3b30 !important;
  background: #fff5f5 !important;
}

.error-text {
  font-size: 12px;
  color: #ff3b30;
  margin-top: 4px;
}


/* ============================= */
/* SHAKE ANIMATION */
/* ============================= */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.25s ease;
}


/* ============================= */
/* TOAST */
/* ============================= */
.toast-stack {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}

.toast {
  background: #333;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 8px;

  font-size: 14px;

  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #2ecc71;
}

.toast-error {
  background: #e74c3c;
}