/* Alap stílusok */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f7f6;
  margin: 0;
  padding: 0;
}
header {
  background-color: #ffffff;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}
.logo img {
  max-width: 150px;
}

.container {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.5s ease;
}
h1 {
  text-align: center;
  color: #333;
  margin-top: 0;
}
#welcome-msg {
  text-align: center;
  color: #28a745;
  font-weight: bold;
  margin-bottom: 20px;
  display: none;
}

.form-group {
  margin-bottom: 20px;
  transition: opacity 0.5s ease;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}
input[type='text'],
input[type='email'] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  transition: all 0.3s;
}

.phone-wrapper {
  display: flex;
  align-items: center;
}
.phone-prefix {
  background-color: #e9ecef;
  border: 1px solid #ccc;
  border-right: none;
  padding: 10px;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-input {
  border-radius: 0 4px 4px 0 !important;
  flex: 1;
}
.error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

/* Gomb és animáció stílusok */
button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
button:hover:not(:disabled) {
  background-color: #0056b3;
}
button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.9;
}

.btn-success {
  background-color: #28a745 !important;
  color: white !important;
  cursor: default !important;
}
.btn-collapse {
  max-height: 0;
  padding: 0 !important;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  border: none;
}
.form-hide {
  opacity: 0;
  transform: scaleY(0.9);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: none;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- ÚJ: Letöltési felület stílusai --- */
#result-container {
  text-align: center;
  display: none;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#result-container a {
  text-decoration: none;
}

.result-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.arrow-down {
  width: 50px;
  height: 50px;
  margin: -30px 0px -0px -10px;
  stroke: #888;
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(60deg);
  position: absolute;
}

.os-logo-img {
  max-width: 30px;
}

.wallet-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
}
.wallet-img:hover {
  transform: scale(1.05);
}

/* Asztali QR nézet stílusai */
.desktop-qr-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.qr-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.qr-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #444;
}
.qr-box-header svg {
  width: 24px;
  height: 24px;
}
.qr-code {
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}
.qr-box img.wallet-img {
  max-width: 140px;
  cursor: default;
  pointer-events: none;
} /* Asztalin ne legyen kattintható */

.email-notice {
  margin-top: 30px;
  padding: 15px;
  background-color: #e9f7ef;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
}
