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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: "#EEE";
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
}

.header-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.header-section .logo {
  max-width: 150px;
  height: auto;
}

.header-section .headshot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .header-section {
    flex-direction: column;
    gap: 20px;
  }

  .header-section .logo {
    max-width: 120px;
  }

  .header-section .headshot {
    width: 80px;
    height: 80px;
  }
}

h2 {
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
  background-color: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #667eea;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

button {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #5a67d8;
}

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

.status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.status.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.status.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* Radio button styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.radio-option:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.radio-option input[type="radio"] {
  width: auto;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #667eea;
}

.radio-option input[type="radio"]:checked+span {
  font-weight: 600;
  color: #667eea;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: #f0f4ff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.radio-option span {
  flex: 1;
  font-size: 16px;
  color: #333;
}

/* Conditional sections */
.conditional-section {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  animation: fadeIn 0.4s ease-in;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #4caf50;
}

.success-message h3 {
  color: #2e7d32;
  margin-bottom: 15px;
  font-size: 18px;
}

.success-message p {
  color: #1b5e20;
  margin-bottom: 20px;
}

.apology-message {
  background: #fff3e0;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #ff9800;
}

.apology-message h3 {
  color: #e65100;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Review links */
.review-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.review-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.review-btn.google {
  background: #4285f4;
  color: white;
}

.review-btn.google:hover {
  background: #357ae8;
}

.review-btn.facebook {
  background: #1877f2;
  color: white;
}

.review-btn.facebook:hover {
  background: #165ed0;
}

.review-btn.zillow {
  background: #006aff;
  color: white;
}

.review-btn.zillow:hover {
  background: #0058d6;
}

/* Completion Screen Styles */
#completionScreen {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#completionScreen.visible {
  opacity: 1;
}

.completion-message {
  text-align: center;
  padding: 30px 20px;
  animation: fadeInUp 0.6s ease-out;
}

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

.completion-message h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.completion-message p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.completion-message.excellent h2 {
  color: #4caf50;
}

.completion-message.needs-improvement h2 {
  color: #ff9800;
}

.completion-message.okay h2 {
  color: #667eea;
}

.review-request {
  margin-top: 40px;
  padding: 30px;
  background: #f0f4ff;
  border-radius: 10px;
  border: 2px solid #667eea;
}

.review-request h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.review-request p {
  color: #555;
  margin-bottom: 25px;
}

.signature {
  margin-top: 30px;
  font-size: 16px;
  color: #666;
  font-style: italic;
}

.signature strong {
  color: #333;
  font-style: normal;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .container {
    padding: 20px 15px;
    border-radius: 0;
  }

  .radio-option {
    padding: 10px 12px;
  }

  .radio-option span {
    font-size: 14px;
  }

  .completion-message h2 {
    font-size: 24px;
  }

  .review-request {
    padding: 20px;
  }

  .review-request h3 {
    font-size: 20px;
  }
}
