.email-signature-tool {
  font-family: Arial, sans-serif;
}

.email-signature-tool .steps {
  margin-bottom: 1.5rem;
}

.email-signature-tool .steps h2,
.email-signature-tool .steps p {
  margin: 0;
}

.email-signature-tool .steps h2 {
  font-size: 32px;
  line-height: 1.25em;
}

.email-signature-tool .steps p {
  margin-top: 0.5rem;
  font-size: 18px;
  line-height: 28px;
}

.email-signature-tool .est-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 30px;
}

.email-signature-tool .est-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--est-primary);
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.email-signature-tool .est-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-10px);
}

#est-form label,
#est-form .detail-flex p,
#est-form .label {
  font-weight: 500 !important;
  font-family: Sarabun, sans-serif;
  color: var(--est-primary);
  margin-top: 10px;
  font-size: 18px;
  margin-bottom: 10px;
}

#est-form input:not([type="radio"]) {
  padding: 0.5rem 0.8rem;
  font-size: 14px;
  width: 100%;
  border: 1px solid #959494;
  border-radius: 4px;
  margin: 0;
  color: var(--est-primary);
  font-weight: 500;
  background: #f5f8fa;
}

#est-form input[type="checkbox"] {
  margin-right: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;

  &:checked {
    background: var(--qode-main-color) !important;

    &::after {
      display: none !important;
    }

    &::before {
      content: "✔";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #ffffff;
      font-size: 16px;
      line-height: 1;
    }
  }
}

#est-form .phone-grid,
#est-form .detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 20px;
}

@media (min-width: 768px) {
  #est-form .phone-grid,
  #est-form .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#est-form .address-options {
  display: grid;
  gap: 12px;
}

#est-form .radio-mother {
  margin: 0;
  padding: 0.5rem;
  border: 0;
  cursor: pointer;
  align-items: center;
  display: flex;
}

#est-form .address-options label {
  padding: 0;
}

#est-form .radio-mother div {
  gap: 0.5rem;
}

#est-form .radio-mother input[type="radio"] {
  margin-right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
}

#est-form .radio-mother input[type="radio"]:checked:after {
  border: 0 !important;
}

#est-form .radio-mother p {
  margin: 0;
  font-size: 16px;
}

#est-form .reset {
  padding: 0;
  background: none;
  border: 0;
  font-size: 1.2rem;
  text-decoration: underline;
  color: #949494;
  cursor: pointer;
}

#est-form .address-selection {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  #est-form .address-selection {
    display: flex;
    flex-direction: column;
  }
}

#est-form select {
  margin: 0;
  padding: 0.5rem 0.8rem;
  font-size: 14px;
  width: 100%;
  border: 1px solid #959494;
  border-radius: 4px;
  margin: 0;
  color: var(--est-primary);
  font-weight: 500;
  background-color: #f5f8fa;
}

.est-previews {
  display: flex;
  gap: 1rem;
}

#est-html-code {
  display: inline-block;
  font-size: 14px !important;
  line-height: 22px !important;
}

.est-code {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: scroll;
}

.est-code .bg {
  padding: 1rem;
  background: #dfdfdf;
}

.est-code-text pre {
  margin: 0 !important;
  display: flex;
  max-height: 20rem;
  overflow-y: scroll;
}

#est-output {
  margin-top: 3rem;
}

#est-output #est-copy {
  margin-top: 1rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--est-primary);
  color: #fff;
  padding: 0.8rem 1rem;
  border: 1px solid var(--est-primary);
  transition: all 0.2s ease;
}

#est-output #est-copy:hover {
  background: #fff;
  color: var(--est-primary);
  border: 1px solid var(--est-primary);
}

#est-output {
  pre {
    max-width: 100%;
    margin: 15px 0;
    padding: 15px;
    background-color: #dfdfdf;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 1em;
    color: #5b5b5b;
  }

  code {
    background-color: #dfdfdf;
    padding: 0;
    font-family: monospace, monospace;
    font-size: 1em;
    color: #5b5b5b;
  }
}

@media screen and (max-width: 1200px) {
  .est-previews {
    flex-direction: column;
  }
}

body.signature-tool header,
body.signature-tool footer {
  display: none !important;
}
