.npcl-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* Cards */
.npcl-form,
.npcl-preview {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.npcl-form {
  flex: 3;
}

.npcl-preview {
  flex: 7;
}

@media (max-width: 768px) {
  .npcl-form,
  .npcl-preview {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Title */
.npcl-title {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

/* Tabs */
.npcl-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid #dedede;
  border-radius: 4px;
}

.npcl-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.npcl-tab:hover,
.npcl-tab.active {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

/* Tab content */
.npcl-tab-content {
  display: none;
}

.npcl-tab-content.active {
  display: block;
}

.npcl-tab-content,
.npcl-common {
  margin-top: 20px;
  padding: 20px;
  background-color: #f3f3f3;
  border-radius: 12px;
}

.npcl-tab-content label,
.npcl-common label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

/* Inputs */
.npcl-form input,
.npcl-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

.npcl-form input::placeholder {
  font-size: 13px;
}

.npcl-form input:focus,
.npcl-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Button */
.npcl-btn {
  background: var(--wp--preset--color--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.npcl-btn:hover {
  background: var(--wp--preset--color--secondary);
}

/* Preview letter */
.npcl-letter {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .npcl-form,
  .npcl-preview {
    width: 100%;
  }
}
