/**
 * Public styles for AI Architect
 */

 @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Outfit:wght@400;700&family=Montserrat:wght@400;700&family=Poppins:wght@400;700&family=Playfair+Display:wght@400;700&family=Lato:wght@400;700&family=Nunito:wght@400;700&family=Roboto:wght@400;700&family=Open+Sans:wght@400;700&display=swap');
 
 .card-header {
    background-color: #fff !important;
}
.ai-builder-form-wrapper .col-md-6 {
    box-sizing: border-box !important;
}
.tox-toolbar:last-child {
    display: none !important;
}
.mce-notification-error{
    display: none !important;
}

 .ai-builder-form-wrapper h1,.ai-builder-form-wrapper h2,.ai-builder-form-wrapper h3,.ai-builder-form-wrapper h4{
    font-family: "Outfit", serif;
 }
 .ai-builder-form-wrapper p, .ai-builder-form-wrapper span,.ai-builder-form-wrapper div {
    font-family: "DM Sans", serif;
    font-size: 14px;
    line-height: 24px;
    text-align: left;
}
.ai-builder-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ai-builder-form .form-description {
    margin-bottom: 2em;
    color: #666;
}

.ai-builder-form .form-fields {
    margin-bottom: 2em;
}

.ai-builder-form .form-field {
    margin-bottom: 1.5em;
}

.ai-builder-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 16px;
    text-align: left;
}

.ai-builder-form .required {
    color: #dc3545;
    margin-left: 0.2em;
}

.ai-builder-form .form-control {
    display: block;
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ai-builder-form .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ai-builder-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.ai-builder-form .radio-group,
.ai-builder-form .checkbox-group {
    margin-top: 0.5em;
}

.ai-builder-form .radio-label,
.ai-builder-form .checkbox-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: normal;
}

.ai-builder-form .radio-label input,
.ai-builder-form .checkbox-label input {
    margin-right: 0.5em;
}

.ai-builder-form .field-error {
    display: none;
    margin-top: 0.5em;
    color: #dc3545;
    font-size: 0.875em;
}

.ai-builder-form .form-field.has-error .form-control {
    border-color: #dc3545;
}

.ai-builder-form .form-field.has-error .field-error {
    display: block;
}

.ai-builder-form .btn-primary {
    padding: 0.5rem 2rem;
    font-weight: 500;
}

.ai-builder-form .form-messages {
    margin-bottom: 1rem;
}

.ai-builder-form .submit-button.loading {
    position: relative;
    color: transparent;
}

.ai-builder-form .submit-button.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-builder-form .form-message {
    display: none;
    margin-top: 1em;
    padding: 1em;
    border-radius: 4px;
}

.ai-builder-form .form-message.success {
    display: block;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.ai-builder-form .form-message.error {
    display: block;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.ai-builder-form-wrapper {
    width: 100% !important; 
}
.ai-builder-iframe-container {
    max-width: 1200px !important;
    width: 1200px !important;
}

.form-text {
    margin: 0 !important;
}

.ai-builder-form label {
    margin: 0 !important;
    line-height: 26px !important;
}
 

.ai-builder-form-wrapper .card {
    height: 100% !important;
    border: 1px solid #cacaca;
    padding-bottom: 20px;
}
 
div#ai-response-editor-container {
    height: 100% !important;
}
 .mce-container-body {
    height: 100% !important;
}
 
.mce-statusbar.mce-container.mce-panel {
    display: none !important;
}

div.mce-panel {
    height: 95% !important;
}
 

.ai-builder-form textarea.form-control {
    box-shadow: none !important; 
}

.ai-builder-form .form-control,.ai-builder-form .form-select {
    box-shadow: none !important; 
}

iframe#ai-response-editor_ifr {
    height: 100% !important; 
}


/* Responsive Design */
@media (max-width: 576px) {
    .ai-builder-form-wrapper {
        padding: 1rem;
    }

    .ai-builder-iframe-container {
        max-width: 100% !important; 
        width: 100% !important; 
    }
}

@media screen and (max-width: 600px) {
    .ai-builder-form .submit-button {
        width: 100%;
    }

    .card-header h5 {
        font-size: 16px !important; 
    }
    
    .card-header .btn-group .btn {
        font-size: 10px !important; 
    }
    
    .mce-toolbar .mce-btn button, .qt-dfw {
        padding: 5px !important; 
    }
    
    .ai-builder-form-wrapper .card {
        padding-bottom: 70px !important; 
    }
}


@media screen and (max-width: 1280px) {
    .ai-builder-iframe-container {
      max-width: 1000px !important;
       width: 1000px !important;
   }
} 

@media screen and (max-width: 1024px) {
    .ai-builder-iframe-container {
       max-width: 800px !important;
       width: 800px !important;
   }
}
@media screen and (max-width: 800px) {
    .ai-builder-iframe-container {
        max-width: 660px !important;
        width: 660px !important;
    }
}
@media screen and (max-width: 600px) {
    .ai-builder-iframe-container {
        max-width: 100% !important; 
        width: 100% !important; 
    }
}
@media screen and (max-width: 480px) {
    .ai-builder-iframe-container {
        max-width: 100% !important; 
        width: 100% !important; 
    }
} 