/* =============================================
   Activation Pages - Shared styles
   Used by /aktivera/ and /testa/ pages.
   Matches the Notiscan sub-page design language
   (carecontact, minasidor, etc.)
   ============================================= */

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", Courier, monospace;
  background-color: #f1efe5;
  min-height: 100vh;
  padding: 20px;
  color: #000;
}

/* === Container === */
.activation-container {
  max-width: 520px;
  margin: 0 auto;
}

/* === Header === */
.activation-header {
  text-align: center;
  margin-bottom: 30px;
}

.activation-header img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.activation-header h1 {
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

.activation-header p {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* === Card === */
.activation-card {
  background: #ffffff;
  border: 3px solid #000;
  border-radius: 15px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 #000;
}

/* === Step Indicator === */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #ccc;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.step-dot.active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.step-dot.completed {
  border-color: #4b9a42;
  background: #4b9a42;
  color: #fff;
}

.step-line {
  width: 40px;
  height: 3px;
  background: #ccc;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.step-line.completed {
  background: #4b9a42;
}

/* === Step Panels === */
.step-panel {
  display: none;
}

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

.step-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 8px;
  text-align: center;
}

.step-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}

/* === Form Elements === */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid #000;
  border-radius: 10px;
  font-size: 16px;
  font-family: "Courier New", Courier, monospace;
  background: #fff;
  color: #000;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: #4b9a42;
}

.form-input::placeholder {
  color: #aaa;
}

.form-input.error {
  border-color: #c53939;
}

/* === Code Input (NB-XXXX-XXXX-XXXX) === */
.code-input {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
}

/* === Phone Input Row === */
.phone-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 3px solid #000;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  background: #f1efe5;
  color: #000;
  flex-shrink: 0;
}

.phone-input-row .form-input {
  flex: 1;
}

/* === OTP Input === */
.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.otp-digit {
  width: 48px;
  height: 56px;
  border: 3px solid #000;
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  background: #fff;
  color: #000;
  outline: none;
  transition: border-color 0.2s ease;
}

.otp-digit:focus {
  border-color: #4b9a42;
}

.otp-digit.filled {
  background: #f1efe5;
}

/* === Buttons === */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 3px solid #000;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  cursor: pointer;
  transition: all 0.1s ease;
  text-decoration: none;
  color: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 0 #333;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 0 #333;
}

.btn-success {
  background: #4b9a42;
  color: #fff;
  box-shadow: 0 4px 0 #357a2d;
}

.btn-success:hover:not(:disabled) {
  box-shadow: 0 6px 0 #357a2d;
}

.btn-secondary {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 0 #000;
}

.btn-secondary:hover:not(:disabled) {
  box-shadow: 0 6px 0 #000;
}

.btn-link {
  background: none;
  border: none;
  box-shadow: none;
  color: #666;
  font-size: 13px;
  text-decoration: underline;
  padding: 8px;
}

.btn-link:hover {
  color: #000;
  transform: none;
}

.btn-link:disabled {
  text-decoration: none;
}

/* === Messages === */
.error-message {
  background: #fde8e8;
  border: 2px solid #c53939;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #c53939;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.success-message {
  background: #e8f5e9;
  border: 2px solid #4b9a42;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #2e7d32;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.info-message {
  background: #e3f2fd;
  border: 2px solid #1976d2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #1565c0;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

/* === Loading Spinner === */
.spinner-container {
  text-align: center;
  padding: 32px 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e8e4d8;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.spinner-text {
  font-size: 14px;
  color: #666;
}

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

/* === Success Screen === */
.success-icon {
  font-size: 64px;
  text-align: center;
  margin-bottom: 16px;
}

.success-title {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-bottom: 8px;
}

.success-detail {
  font-size: 14px;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.5;
}

.success-tier {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 16px;
  border-radius: 2rem;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 20px;
}

.success-info-box {
  background: #f1efe5;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.success-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.success-info-row:not(:last-child) {
  border-bottom: 1px solid #e8e4d8;
}

.success-info-label {
  color: #666;
}

.success-info-value {
  font-weight: bold;
  color: #000;
}

/* === Hidden Utility === */
.hidden {
  display: none !important;
}

/* === Footer === */
.activation-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: #666;
  font-size: 12px;
}

.activation-footer a {
  color: #666;
  text-decoration: underline;
}

.activation-footer a:hover {
  color: #000;
}

/* === Responsive === */
@media screen and (max-width: 480px) {
  body {
    padding: 12px;
  }

  .activation-card {
    padding: 20px 16px;
  }

  .otp-digit {
    width: 42px;
    height: 50px;
    font-size: 20px;
  }

  .code-input {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .step-line {
    width: 24px;
  }

  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
