.ai-content-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    box-sizing: border-box;
}

.ai-content-form h2 {
    margin-bottom: 20px;
    font-size: 1.6em;
    text-align: center;
}

.ai-content-form input[type="text"],
.ai-content-form select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.ai-content-form button {
    padding: 10px 25px;
    border: none;
    background-color: #0073aa;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 10px auto;
}

.ai-content-form button:hover {
    background-color: #005f8d;
}

#ai-loading {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* Apply to assets/css/form.css */

.ai-content-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.ai-content-result {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin: 30px auto;
    font-size: 17px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.8;
    text-align: justify;
    box-sizing: border-box;
    max-width: 850px;
    direction: ltr;
}

/* RTL styling applied only when needed */
.ai-content-result.rtl {
    direction: rtl;
    text-align: right;
}


#ai-content-result[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

#ai-loading {
    margin-top: 20px;
    font-style: italic;
    color: rgb(102, 102, 102);
}

button,
input[type="submit"] {
    background-color: #0073aa;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background-color: #005177;
}
