@font-face {
  font-family: "DINN";
  src: url(assets/fonts/din-next-lt-w23-medium.ttf);
}

html {
  background: transparent !important;
  background-color: transparent !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: 'DINN', sans-serif;
  margin: 0;
  padding: 0;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: transparent !important;
  background-color: transparent !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Almanea%20-%20Ramadan%20post.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(25px) brightness(0.3);
  transform: scale(1.1);
  z-index: -2;
  will-change: transform;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 16, 43, 0.4);
  z-index: -1;
}

.container {
  position: relative;
  z-index: 1;
  background: transparent !important;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Prevent canvas from overflowing on small screens */
.canvas-wrapper {
  max-width: 100%;
}

/* Responsive: tighter padding and typography on small screens */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .step-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .step-title {
    font-size: 1.1rem;
  }
}

.form-control,
.btn {
  border-radius: 12px;
}

.form-control {
  background-color: #28303C !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: none;
}

.form-control::placeholder {
  color: #9aa7c0;
  font-size: 0.95rem;
  opacity: 1;
}

.form-control:focus {
  background-color: #2C3E50 !important;
  border: none !important;
  box-shadow: 0 0 0 2px rgba(108, 142, 255, 0.3);
  outline: none;
}

.form-control:focus-visible {
  box-shadow: 0 0 0 2px rgba(108, 142, 255, 0.5);
}

/* Step 3: name input same width as CTA buttons */
.step3-content .name-input-wrap,
.step3-content .name-input-wrap input#name {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.input-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
}

.input-feedback {
  flex: 1;
  text-align: center;
}

.char-counter {
  font-size: 0.8rem;
  color: #9aa7c0;
  flex-shrink: 0;
}

[dir="rtl"] .input-meta {
  flex-direction: row-reverse;
}

.btn-light {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 600;
}

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

.alert {
  background-color: #1e1e1e;
  border-color: #333;
}

.alert-heading {
  font-size: 1.5rem;
}

.info-text {
  color: #aaa;
  font-size: 1rem;
}

/* Center all step text */
.step-title,
.step-subtitle,
.step p,
.step h2,
.input-feedback,
.step-label {
  text-align: center;
}

.step .row {
  justify-content: center;
}

footer {
  background-color: transparent;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 1;
}

footer p {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

footer a {
  color: #6c8eff;
  display: inline-flex;
  align-items: center;
}

footer a img {
  vertical-align: middle;
  display: block;
}

.powered-by {
  font-size: 0.9rem;
  color: #888;
  margin-right: 0.25rem;
  line-height: 1;
}

.footer-logo {
  height: 28px;
  margin-left: 0.5rem;
}
