:root {
  --mwd-bg: var(--bs-tertiary-bg);
  --mwd-text: var(--bs-body-color);
  --section-bg: var(--bs-body-bg);
  --section-border: var(--bs-border-color);
  --muted-text: var(--bs-secondary-color);
  --output-bg: var(--bs-body-bg);
  --output-border: var(--bs-border-color);
  --output-text: var(--bs-emphasis-color);
  --hint-bg: rgba(13, 110, 253, 0.08);
  --hint-border: var(--bs-primary);
}

.email-generator-section-main {
  background: var(--section-bg);
  border: 1px solid var(--section-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

@media (min-width: 992px) {
  .email-generator-section-main {
    padding: 2rem;
  }
}

.subtext,
#statusMessage,
.footer-text {
  color: var(--muted-text) !important;
}

.status-message {
  width: 100%;
  margin: 1rem 0;
  padding: 0.35rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
  border-radius: 0.375rem;
  border: 1px solid;
  font-weight: 500;
}

[data-bs-theme="light"] .status-message {
  background-color: rgba(var(--bs-primary-rgb), 0.12);
  border-color: rgba(var(--bs-primary-rgb), 0.4);
  color: var(--bs-primary-text-emphasis);
}

[data-bs-theme="dark"] .status-message {
  background-color: rgba(var(--bs-primary-rgb), 0.22);
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  color: #dbe9ff;
}

.instruction-line {
  font-size: 1rem;
  font-weight: 600;
}

.form-select,
.form-control {
  min-height: 56px;
  font-size: 1.05rem;
}

.email-display-box {
  width: 100%;
  border-radius: 1.5rem;
  min-height: clamp(180px, 34vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 1.6vw, 2rem);
  overflow: hidden;
}

.email-output-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
}

.email-output {
  color: var(--output-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  max-width: none;
  transform-origin: center center;
  text-rendering: geometricPrecision;
}

.hint-box {
  background: var(--hint-bg);
  border-left: 5px solid var(--hint-border);
  border-radius: 1rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-xl {
  min-height: 62px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
}

.btn-icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
}

.btn-icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.key-highlight {
  animation: keyPulse 0.35s ease;
}

@keyframes keyPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .email-generator-section-main {
    border-radius: 1rem;
    padding: 1rem;
  }

  .email-display-box {
    min-height: 150px;
    border-radius: 1rem;
  }

  .btn-xl {
    min-height: 56px;
  }

  .instruction-line {
    font-size: 0.95rem;
  }
}
