:root {
  --font-family: 'Inter', -apple-system, sans-serif;
  --primary-color: #e99eb5; /* Pinkish color from psm24.pro */
  --primary-hover: #d88fa4;
  --text-main: #333333;
  --text-muted: #888888;
  --border-color: #e0e0e0;
  --bg-color: #f7f7f7;
  --white: #ffffff;
  --error: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Split Layout */
.split-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.layout-left {
  flex: 1;
  background: url('https://psm24.pro/wp-content/uploads/2021/04/bg-psm.jpg') center/cover no-repeat;
  background-color: #e9e9e9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Fallback gradient if image doesn't load */
.layout-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.7);
}

.left-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-icon {
  color: var(--success);
  font-weight: bold;
}

.contact-phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 1rem;
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white);
}

.social-link.tg { background-color: #0088cc; }
.social-link.wa { background-color: #25D366; }

.layout-right {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  position: relative;
}

.quiz-container {
  width: 100%;
  max-width: 600px;
  padding: 2rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.step-slide {
  display: none;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.step-slide.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.green-check {
  color: var(--success);
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background-color: rgba(233, 158, 181, 0.05);
}

.quiz-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
  transition: all 0.2s ease;
}

.quiz-option input[type="radio"]:checked {
  border-color: var(--primary-color);
}

.quiz-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.quiz-option input[type="radio"]:checked + .option-content {
  font-weight: 500;
}

/* Forms */
.form-fields {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quiz-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s ease;
}

.quiz-input:focus {
  border-color: var(--primary-color);
}

.quiz-input.input-error {
  border-color: var(--error);
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ef4444" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2a10 10 0 1010 10A10.011 10.011 0 0012 2zm1 15h-2v-2h2zm0-4h-2V7h2z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.input-error + .error-message {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: 1.5rem;
  gap: 10px;
  cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 16px; height: 16px;
  margin-top: 2px;
}

.privacy-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.privacy-text a {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Nav */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.btn-prev, .btn-next {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
}

.btn-prev:disabled, .btn-next:disabled {
  color: var(--border-color);
  cursor: not-allowed;
}

.btn-next {
  color: var(--primary-color);
}

.quiz-progress {
  flex: 1;
  margin: 0 2rem;
  text-align: center;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  width: 33%;
  transition: width 0.3s ease;
}

/* Success Slide */
.success-wrap {
  text-align: center;
}

.success-icon {
  width: 64px; height: 64px;
  background-color: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.success-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.btn-social {
  padding: 1rem;
  text-decoration: none;
  color: white;
  border-radius: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }
  body { overflow: auto; height: auto; }
  .layout-left { padding: 1.5rem; }
  .quiz-container { padding: 1.5rem; }
}
