html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

.main-container {
  padding: 60px 20px 150px 20px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 35px;
}

.page-title {
  color: #000;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: clamp(40px, 8vw, 105px);
  transition: font-size 0.3s ease, margin 0.3s ease;
}

.gradient-text {
  background: linear-gradient(90deg, #364aff 0%, #8c15e9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-icon {
  font-size: clamp(24px, 5vw, 48px);
  vertical-align: middle;
  margin-left: 10px;
}

.subtitle-large {
  color: #000;
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  transition: font-size 0.3s ease;
}

.subtitle-small {
  color: #000;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 24px;
  transition: font-size 0.3s ease;
}

.generator-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 648px;
  min-width: 648px;
}

.right-column {
  width: 470px;
  min-width: 470px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 0.8px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 0.8px;
}

.form-card {
  padding: 24.8px;
  border-radius: 14px;
  border: 0.8px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.form-card-large {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: padding 0.3s ease;
}

.form-section-title {
  color: #0f172b;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  display: block;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  color: #314158;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  display: block;
}

.form-input,
.form-select {
  height: 45.6px;
  width: 100%;
  padding: 0 16px;
  border-radius: 10px;
  border: 0.8px solid #cad5e2;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.form-select {
  height: 45.6px;
  width: 100%;
  padding: 0 16px;
  border-radius: 10px;
  border: 0.8px solid #cad5e2;
  background-color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  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='%23334155' 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 16px center;
  background-size: 16px;

  padding-right: 40px;
}

.form-textarea {
  height: 120px;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #0f172a;
  font-weight: 400;
  box-sizing: border-box;
  resize: vertical;
}

.char-counter {
  color: #62748e;
  font-size: 14px;
  font-weight: 400;
}

.input-row {
  display: flex;
  gap: 25px;
}

.input-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-add-faq {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #eff6ff;
  color: #155dfc;
  border: 1px dashed #155dfc;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-faq:hover {
  background-color: #dbeafe;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
}

.faq-dynamic-item {
  margin-top: 24px;
  position: relative;
}

.btn-delete-faq {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-faq:hover {
  color: #ef4444;
  background-color: #fef2f2;
}

.faq-input-wrapper {
  margin-right: 40px;
}

.btn-remove-faq {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-remove-faq:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.button-container {
  display: flex;
  height: 72.8px;
  padding: 16px 30px;
  align-items: center;
  gap: 8px;
  border-bottom: 0.8px solid #e2e8f0;
  background: #f8fafc;
}

.action-btn {
  display: flex;
  height: 40px;
  padding: 0 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}

.btn-orange {
  background: #f54900;
}
.btn-yellow {
  background: #e7000b;
}
.btn-purple {
  background: #4f39f6;
}
.btn-blue {
  background: #155dfc;
}

.code-section {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  align-self: stretch;
}

.code-title {
  color: #0f172b;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  display: block;
  margin-bottom: 8px;
}

.code-wrapper {
  display: flex;
  height: 700px;
  padding: 16.8px;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 10px;
  border: 0.8px solid #e2e8f0;
  background: #f8fafc;
}

.code-textarea {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  resize: none;
  outline: none;
}

.site-footer {
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.hidden {
  display: none !important;
}

@media screen and (max-width: 1200px) {
  .main-container {
    padding: 40px 15px !important;
  }

  .generator-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .left-column,
  .right-column {
    max-width: 100% !important;
    width: 100%;
    flex: auto;
  }

  .input-row {
    flex-direction: column !important;
  }

  .input-col {
    min-width: 100%;
  }

  .button-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto !important;
    padding: 16px !important;
  }

  .action-btn {
    width: 100%;
  }
}

@media screen and (max-width: 670px) {
  body {
    background-image: none !important;
    background-color: #f8fafc !important;
  }

  .generator-wrapper {
    flex-direction: column;
    align-items: stretch !important;
    padding: 0 10px;
    width: 100% !important;
  }

  .left-column,
  .right-column {
    width: 100% !important;
    min-width: auto !important;
  }
}

#article-section,
#product-section,
#faq-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
