/* Wrapper for input/select + tooltip */
        .input-with-tooltip {
            display: flex;
            align-items: center;
            position: relative;
            gap: 6px;
            width: 100%; /* keeps alignment consistent */
        }

        /* Make input/select fill space, icon on the right */
        .input-with-tooltip input,
        .input-with-tooltip select {
            flex: 1;
        }

        /* Tooltip icon (ℹ️) */
        .custom-tooltip {
            position: relative;
            cursor: pointer;
            font-size: 18px; /* adjust size of icon */
            color: #555;
            flex-shrink: 0; /* prevents shrinking */
        }

        /* Tooltip text */
        .custom-tooltip .custom-tooltip-text {
            visibility: hidden;
            opacity: 0;
            max-width: 350px; /* prevents overflow */
            background-color: #3C3C3C;
            color: #fff;
            text-align: left;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            bottom: 125%; /* show above the icon */
            left: 50%;
            transform: translateX(-50%);
            transition: opacity 0.3s;
            font-size: 13px;
            line-height: 1.4;
            z-index: 10;
            word-wrap: break-word;
            white-space: normal;
            width: 280px;
        }

        /* Tooltip arrow */
        .custom-tooltip .custom-tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%; /* bottom of tooltip */
            left: 50%;
            margin-left: -5px;
            border-width: 6px;
            border-style: solid;
            border-color: #3C3C3C transparent transparent transparent;
        }

        /* Show tooltip on hover */
        .custom-tooltip:hover .custom-tooltip-text {
            visibility: visible;
            opacity: 1;
        }




/* Edit Form Styling */
.my-plugin-edit-form {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #ddd;
}

.my-plugin-edit-form .form-section {
  margin-bottom: 2rem;
}

.my-plugin-edit-form .form-field {
  margin-bottom: 1rem;
}

.my-plugin-edit-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.my-plugin-edit-form input[type="text"],
.my-plugin-edit-form textarea {
  width: 100%;
  padding: 0.5rem;
}

.my-plugin-notice {
  padding: 1rem;
  background: #f0f0f1;
  margin-bottom: 2rem;
  border-left: 4px solid #2271b1;
}

/* ############## ADMIN EDIT FORM ###############*/
.wrap .form-section {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  background: red !important;
}

.wrap .form-section h2 {
  font-size: 1.25em;
  margin-top: 0;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 5px;
}

/* Field rows */
.wrap .form-field,
.wrap .field-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.wrap .form-field label,
.wrap .field-group label {
  width: 160px;
  font-weight: 600;
  margin-right: 10px;
  line-height: 1.5;
}

.wrap .form-field input[type="text"],
.wrap .field-group input[type="text"],
.wrap .form-field select,
.wrap .field-group select,
.wrap .form-field textarea,
.wrap .field-group textarea {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

/* File‐download link */
.wrap .file-download a {
  display: inline-block;
  padding: 6px 10px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
}

.wrap .file-download a:hover {
  background: #f1f1f1;
}

/* Buttons */
.button-success {
  background: #46b450;
  border-color: #46b450;
  color: #fff;
}

.button-success:hover,
.button-success:focus {
  background: #159f40;
  border-color: #159f40;
  color: #fff;
}

.button-danger {
  background: #dc3232;
  border-color: #dc3232;
  color: #fff;
}

.button-danger:hover,
.button-danger:focus {
  background: #b82b2b;
  border-color: #b82b2b;
  color: #fff;
}

/* Tighten up the submit section */
.wrap .submit {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

#nextBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.aseef-custom-form {
  max-width: none !important;
  margin: 0 !important;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.form-group {
  width: 100%;
}

@media (max-width: 769px) {
  .eml {
    display: block !important;
  }
  .step-nav button {
    width: 100%;
  }
  form input {
    height: 32px !important;
  }
  .form-group {
    margin-bottom: 10px !important;
  }
}
