.widget-page {
  --widget-accent: #079d50;
  --widget-accent-dark: #06753c;
  --widget-accent-glow: rgba(7, 157, 80, 0.35);
  --widget-dark: #0d1f14;
  --widget-card-bg: #1a2e22;
}

.widget-head-box {
  width: 100%;
  padding-top: 75px;
  padding-bottom: 40px;
  background-image:
    linear-gradient(180deg, rgba(7, 25, 15, 0.72) 0%, rgba(13, 31, 20, 0.88) 100%),
    url(../../images/widget/header_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: -24rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.widget-head-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--widget-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.widget-head-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 126, 27, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.widget-head-box .container {
  position: relative;
  z-index: 1;
}

.widget-head-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--widget-accent) 0%, var(--widget-accent-dark) 100%);
  border-radius: 20px;
  box-shadow: 0 4px 14px var(--widget-accent-glow);
}

.widget-head-box .widget-head-title {
  font-size: 36px;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
}

.widget-head-box .widget-head-text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 500;
  opacity: 0.92;
  max-width: 1000px;
}

.widget-section {
  position: relative;
}

.widget-section-alt {
  background: linear-gradient(180deg, #f4f8f5 0%, #eef5f0 100%);
}

.widget-section-title {
  font-size: 24px;
  color: var(--widget-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.widget-section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--widget-accent), #ff7e1b);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
}

.widget-section-title {
  position: relative;
  padding-bottom: 16px;
}

.widget-section-icon {
  font-size: 22px;
  line-height: 1;
}

.widget-box {
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8f0eb;
  box-shadow:
    0 4px 24px rgba(7, 157, 80, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.widget-iframe {
  box-shadow: 0 0 10px rgb(167 167 167 / 50%);
  border-radius: 10px;
  max-width: 100%;
}

.widget-iframe-size {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--widget-dark);
}

.widget-iframe-size input {
  background: #f8faf9;
  border-radius: 8px;
  border: 1px solid #d4e8dc;
  height: 32px;
  font-weight: 600;
  color: var(--widget-accent-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget-iframe-size input:focus {
  outline: none;
  border-color: var(--widget-accent);
  box-shadow: 0 0 0 3px var(--widget-accent-glow);
}

.widget-code-label {
  color: var(--widget-dark);
  font-size: 15px;
  letter-spacing: 0.02em;
}

input[type="checkbox"].show-name-checkbox {
  margin: 0;
  padding: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.widget-iframe-code {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 637px;
  max-width: 100%;
  min-height: 56px;
  background: var(--widget-card-bg);
  border-radius: 12px;
  border: 1px solid #2a4034;
  padding: 10px 12px;
  color: #a8d4b8;
  gap: 10px;
}

.widget-iframe-code-text {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #7ec99a;
  width: 100%;
}

.widget-iframe-code-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--widget-accent) 0%, var(--widget-accent-dark) 100%);
  border: none;
  box-shadow: 0 4px 12px var(--widget-accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.widget-iframe-code-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--widget-accent-glow);
}

.widget-footer-box {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-image:
    linear-gradient(180deg, rgba(7, 25, 15, 0.8) 0%, rgba(13, 31, 20, 0.92) 100%),
    url(../../images/widget/footer_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.widget-footer-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--widget-accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.widget-footer-box .container {
  position: relative;
  z-index: 1;
}

.widget-footer-title {
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 767px) {
  .widget-head-box {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .widget-head-box .widget-head-title {
    font-size: 28px;
  }

  .widget-head-box .widget-head-text {
    margin-bottom: 20px;
    text-align: center;
  }

  .widget-section {
    background: none;
  }

  .widget-section-title {
    font-size: 20px;
    flex-wrap: wrap;
  }

  .widget-box {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .widget-iframe-code {
    flex-direction: column;
    height: auto;
    padding: 14px;
  }

  .widget-iframe-code-btn {
    width: 100%;
  }
}