/* ==========================================================================
   WESERT UX Discovery Interview Form - Styles
   ========================================================================== */

/* CSS Variables */
:root {
  --color-primary: #0F3BFE;
  --color-primary-light: #E8EDFF;
  --color-text-dark: #000000;
  --color-text-gray: #666666;
  --color-text-light: #999999;
  --color-background: #FFFFFF;
  --color-section-bg: #F9FAFB;
  --color-border: #E5E7EB;
  --color-input-border: #D1D5DB;
  --color-input-focus: #0F3BFE;

  --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 800px;
  --container-padding: 24px;

  --transition: 0.2s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.logo-img {
  height: 28px;
  width: auto;
}

.header-subtitle {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero-divider {
  width: 96px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 9999px;
  margin: 0 auto;
}

/* ==========================================================================
   Progress Indicator
   ========================================================================== */
.progress-container {
  padding: 16px 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 61px;
  z-index: 99;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-text {
  font-size: 14px;
  color: var(--color-text-gray);
}

.progress-current {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 9999px;
  transition: width 0.3s ease;
  width: 10%;
}

/* ==========================================================================
   Form Navigation
   ========================================================================== */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  margin-top: 16px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-prev {
  background-color: var(--color-background);
  color: var(--color-text-gray);
  border: 1px solid var(--color-border);
}

.nav-prev:hover:not(:disabled) {
  background-color: var(--color-section-bg);
  border-color: var(--color-text-gray);
}

.nav-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-next {
  background-color: var(--color-primary);
  color: white;
  border: none;
  margin-left: auto;
}

.nav-next:hover {
  background-color: #0A2FD4;
}

.nav-arrow {
  font-size: 16px;
}

/* ==========================================================================
   Introduction Section
   ========================================================================== */
.intro {
  padding: 40px 0;
}

.intro-box {
  margin-bottom: 32px;
}

.intro-greeting {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.intro-text {
  font-size: 15px;
  color: var(--color-text-gray);
  margin-bottom: 12px;
  line-height: 1.8;
}

.text-gray {
  color: var(--color-text-light);
}

.guide-box {
  background-color: var(--color-section-bg);
  border-radius: 12px;
  padding: 24px;
}

.guide-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-list li {
  font-size: 14px;
  color: var(--color-text-gray);
  padding-left: 16px;
  position: relative;
}

.guide-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ==========================================================================
   Form Sections
   ========================================================================== */
.interview-form {
  padding-bottom: 40px;
}

.form-section {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Question Groups */
.question-group {
  margin-bottom: 32px;
}

.question-group:last-child {
  margin-bottom: 0;
}

.question-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.question-hint {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px rgba(15, 59, 254, 0.1);
}

.example-text {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ==========================================================================
   Thank You Section
   ========================================================================== */
.thank-you-section {
  text-align: center;
  padding: 60px 32px;
  background-color: var(--color-section-bg);
  border-radius: 16px;
  margin-top: 40px;
}

.thank-you-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.thank-you-text {
  font-size: 15px;
  color: var(--color-text-gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.thank-you-notice {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 15px;
  color: var(--color-text-gray);
  margin-top: -24px;
  margin-bottom: 32px;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  min-width: 160px;
  background-color: var(--color-background);
  color: var(--color-primary);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

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

/* Security Badges */
.security-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-item {
  font-size: 13px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-item::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 600;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  min-width: 160px;
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.submit-btn:hover {
  background-color: #0A2FD4;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 48px 0;
  background-color: var(--color-section-bg);
  text-align: center;
}

.contact-intro {
  font-size: 15px;
  color: var(--color-text-gray);
  margin-bottom: 24px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 13px;
  color: var(--color-text-light);
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
}

.contact-desc {
  font-size: 14px;
  color: var(--color-text-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ==========================================================================
   Steps Section
   ========================================================================== */
.steps-section {
  padding: 48px 0;
  background-color: var(--color-background);
}

.steps-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 32px;
}

.steps-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: var(--color-text-gray);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #1F2937;
  color: white;
  padding: 60px 0 30px;
}

.footer .container {
  max-width: 1000px;
}

.footer-content {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-about {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-about strong {
  display: block;
  color: white;
  margin-bottom: 8px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li,
.footer-contact li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .progress-container {
    top: 57px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .form-section {
    padding: 24px;
    border-radius: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .contact-grid {
    flex-direction: column;
    gap: 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-item {
    max-width: 100%;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .header .container {
    flex-direction: column;
    gap: 8px;
  }

  .progress-container {
    top: 77px;
  }

  .nav-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-divider {
    width: 64px;
  }

  .intro-greeting {
    font-size: 18px;
  }

  .intro-text {
    font-size: 14px;
  }

  .guide-box {
    padding: 20px;
  }

  .form-section {
    padding: 20px;
    margin-bottom: 16px;
  }

  .section-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .section-title {
    font-size: 16px;
  }

  .question-label {
    font-size: 15px;
  }

  .question-hint {
    font-size: 13px;
  }

  .form-textarea {
    min-height: 100px;
    padding: 14px;
    font-size: 14px;
  }

  .thank-you-section {
    padding: 40px 20px;
  }

  .thank-you-title {
    font-size: 20px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px 32px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn-secondary {
    width: 100%;
    padding: 14px 24px;
  }

  .security-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .section-subtitle {
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 24px;
  }

  .contact-section {
    padding: 32px 0;
  }

  .steps-section {
    padding: 32px 0;
  }

  .steps-title {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer-logo {
    font-size: 20px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .form-section {
    padding: 16px;
  }

  .section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .question-group {
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   Success Modal
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 48px 40px;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  position: relative;
}

.modal-icon {
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease 0.2s both;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.modal-message {
  font-size: 16px;
  color: var(--color-text-gray);
  margin-bottom: 12px;
  line-height: 1.6;
}

.modal-uuid {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--color-text-light);
  background: var(--color-section-bg);
  padding: 8px 16px;
  border-radius: 6px;
  margin: 16px 0;
  word-break: break-all;
}

.modal-description {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.modal-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 59, 254, 0.3);
}

.modal-btn:hover {
  background: #0d32d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 59, 254, 0.4);
}

.modal-btn:active {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 36px 24px;
    width: 95%;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-message {
    font-size: 15px;
  }

  .modal-btn {
    width: 100%;
    padding: 14px 32px;
  }
}
