/* Hide scrollbars globally */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Ensure smooth scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Zalando Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #191919;
  background-color: #FFFFFF;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  font-family: 'Zalando Sans', sans-serif;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.header {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 24px;
  border-bottom: 1px solid #E6E6E6;
}

.logo-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.main-container {
  max-width: 1200px;
  padding: 40px 32px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headings {
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
  align-items: center;
  margin-bottom: 48px;
  width: 100%;
  text-align: center;
}

.headings h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.forms-subtitle {
  box-sizing: border-box;
  display: flex;
  flex-flow: wrap;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.forms-subtitle p {
  font-size: 16px;
  color: #858585;
  margin: 0;
}

.forms-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  width: 100%;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

input, textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  transition: border-color 0.2s;
  width: 100%;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

input.error, textarea.error {
  border-color: #E74C3C;
}

.input-with-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.input-with-counter input {
  width: 100%;
  padding-right: 70px;
}

#charCount {
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: #888;
}

button {
  height: 48px;
  border: none;
  border-radius: 6px;
  background-color: #191919;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-weight: 500;
}

button:hover:not(:disabled) {
  background-color: #070707;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.response-msg {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: #007BFF;
  min-height: 20px;
}

.error-msg {
  font-size: 13px;
  color: #E74C3C;
  height: 16px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .main-container {
      padding: 24px 16px;
  }
  
  .headings h1 {
      font-size: 28px;
  }
  
  input, textarea {
      font-size: 16px; /* Prevents zoom on iOS */
  }
}

.success-message {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.success-message .message-illustration {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.success-message .message-illustration video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.success-message h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #191919;
}

.success-message p {
  font-size: 15px;
  color: #191919;
  line-height: 1.4;
}

.fade-in {
  animation: fadeInScale 0.6s ease forwards;
}

@keyframes fadeInScale {
  from {
      opacity: 0;
      transform: scale(0.95);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  from {
      opacity: 1;
      transform: scale(1);
  }
  to {
      opacity: 0;
      transform: scale(0.97);
  }
}