/* Custom Styles for SecurityBlogs Growth Hub Plugin */

/* General Form Styling */
.sbgh-form-wrapper {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sbgh-form-wrapper h2 {
    color: #003366;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

.sbgh-form-section {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.sbgh-form-section h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sbgh-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.sbgh-form-wrapper input[type="text"],
.sbgh-form-wrapper input[type="email"],
.sbgh-form-wrapper input[type="url"],
.sbgh-form-wrapper select,
.sbgh-form-wrapper textarea {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.sbgh-form-wrapper input[type="file"] {
    margin-bottom: 15px;
}

.sbgh-form-wrapper small {
    display: block;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.sbgh-form-wrapper button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
}

.sbgh-form-wrapper button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Live Preview Styling */
.sbgh-preview-container {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.sbgh-preview-container h3 {
    color: #003366;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

#sbgh-live-preview {
    min-height: 200px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #343a40;
}

#sbgh-live-preview h1 {
    font-size: 2.2em;
    color: #003366;
    margin-bottom: 15px;
}

#sbgh-live-preview h2 {
    font-size: 1.8em;
    color: #0056b3;
    margin-top: 25px;
    margin-bottom: 10px;
}

#sbgh-live-preview p {
    margin-bottom: 1em;
}

#sbgh-live-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 5px;
}

#sbgh-live-preview .preview-meta {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 10px;
}

/* AI Audit Form Styling */
.sbgh-ai-audit-form-wrapper {
    background-color: #f0f8ff;
    border: 1px solid #b0e0e6;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sbgh-ai-audit-form-wrapper h2 {
    color: #2f4f4f;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

.sbgh-ai-audit-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.sbgh-ai-audit-form-wrapper input[type="text"],
.sbgh-ai-audit-form-wrapper input[type="email"],
.sbgh-ai-audit-form-wrapper input[type="url"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #a9d9e6;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.sbgh-ai-audit-form-wrapper button[type="submit"] {
    background-color: #17a2b8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0;
}

.sbgh-ai-audit-form-wrapper button[type="submit"]:hover {
    background-color: #138496;
}

#sbgh-ai-audit-response {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
    color: #155724;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sbgh-form-wrapper, .sbgh-ai-audit-form-wrapper {
        margin: 20px 10px;
        padding: 15px;
    }

    .sbgh-form-wrapper h2, .sbgh-ai-audit-form-wrapper h2 {
        font-size: 1.8em;
    }

    .sbgh-form-section h3 {
        font-size: 1.3em;
    }
}
