/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: #1a202c;
  line-height: 1.6;
}

/* === CONTAINER === */
.container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ffa726 100%);
}

/* === HEADER === */
h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* === INTRO BOX === */
.intro-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.intro-box h3 {
  color: #ff6b35;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.intro-box p {
  color: #2d3748;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.intro-box p:last-child {
  margin-bottom: 0;
}

.intro-box a {
  color: #ff6b35;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.intro-box a:hover {
  color: #f7931e;
}

/* === SECTION TITLE === */
.section-title {
  margin: 50px 0 30px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
  border-left: 5px solid #ff6b35;
  border-radius: 12px;
  font-weight: 700;
  font-size: 24px;
  color: #ff6b35;
  position: relative;
  overflow: hidden;
  animation: slideInRight 0.5s ease-out;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.05));
  pointer-events: none;
}

/* === FORM === */
.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

.sub-label {
  display: block;
  font-size: 14px;
  color: #718096;
  margin-bottom: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* === INPUTS === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #2d3748;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
  transform: translateY(-1px);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

input::placeholder,
textarea::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

/* === CHECKBOX & RADIO === */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #ffffff;
  border: 1px solid transparent;
}

.checkbox-item:hover,
.radio-item:hover {
  background: #fff5f0;
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateX(4px);
}

.checkbox-item a,
.radio-item a {
  color: #ff6b35;
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-item a:hover,
.radio-item a:hover {
  color: #f7931e;
}

input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #ff6b35;
  flex-shrink: 0;
}

/* === SCALE ROW === */
.scale-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.scale-row label {
  margin: 0;
  font-weight: normal;
  font-size: 14px;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scale-row span {
  font-size: 14px;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scale-row input[type="radio"] {
  width: 24px;
  height: 24px;
  margin: 0 6px;
  transition: transform 0.2s ease;
}

.scale-row input[type="radio"]:hover {
  transform: scale(1.15);
}

/* === BUTTONS === */
.btn-submit,
.btn-test {
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  text-align: center;
  letter-spacing: 0.3px;
  width: 100%;
}

.btn-submit {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-test {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* === SUCCESS VIEW === */
.success-view {
  text-align: center;
  padding: 80px 20px;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 15px 40px rgba(72, 187, 120, 0.4);
  animation: successPulse 2s ease-in-out infinite;
}

.success-view h2 {
  font-size: 32px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 16px;
}

.success-view p {
  font-size: 17px;
  color: #718096;
  margin-bottom: 40px;
}

/* === UTILITIES === */
.hidden {
  display: none !important;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(72, 187, 120, 0.5);
  }
}

/* === FOCUS STYLES === */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.5);
  outline-offset: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .container {
    padding: 30px 24px;
    border-radius: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .intro-box {
    padding: 20px;
  }

  .intro-box h3 {
    font-size: 19px;
  }

  .section-title {
    font-size: 20px;
    padding: 16px 18px;
    margin: 35px 0 24px 0;
  }

  .scale-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
  }

  .btn-submit,
  .btn-test {
    padding: 14px 28px;
    font-size: 16px;
  }

  .checkbox-item,
  .radio-item {
    padding: 10px 12px;
  }

  .success-view {
    padding: 60px 20px;
  }

  .success-icon {
    width: 80px;
    height: 80px;
    font-size: 48px;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
}
