#imeg-sale-form {
    width:100%;
    max-width: 500px;
    padding: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.center-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px; /* Optional spacing from top */
}

/* Container styling to keep everything aligned */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Input field styling */
#imeg-sale-form  input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* textarea field styling */
#imeg-sale-form  textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical; /* User can resize vertically only */
    margin-bottom: 15px;
    font-family: inherit;
}

label{ 
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 6px;
}

.checkbox-line input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    cursor: pointer;
    accent-color: #0073e6;
    margin: 0 !important;
}

.opt-out-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opt-out-box .title {
  font-size: 16px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

/* Submit button styling */
#imeg-sale-form .sale_form_submit button {    
    padding: 10px 90px
}

#imeg-sale-form-result {
    margin-bottom: 20px;
    font-weight: bold;
}
/* Success message styling */
#imeg-sale-form-result p.success {
    font-size: 21px;
    font-weight: 700;
    color: #28a745;
}

#imeg-sale-form-result p.error {
    font-size: 21px;
    font-weight: 700;
    color: #d93025;
}
/* Error message styling */
#imeg-sale-form label.error{
    display: block;
    color: #d93025;
    margin-top: 5px;
    padding: 6px;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

@media only screen and (max-width:767px) {
    #imeg-sale-form .sale_form_submit button {
        padding: 10px 40px;
    }
    .opt-out-box .title {
        font-size: 14px;
    }
}