/* Elementor AI Prompt Form - Frontend Styles */

/* Base Styles */
.eapf-form-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Form Elements */
.eapf-form {
    margin: 0;
    padding: 0;
}

.eapf-form-field {
    margin-bottom: 20px;
}

.eapf-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1e1e1e;
}

.eapf-form-field .eapf-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.eapf-form-field .eapf-field:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.eapf-form-field textarea.eapf-field {
    min-height: 120px;
    resize: vertical;
}

.eapf-form-field select.eapf-field {
    height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

/* Button Styles */
.eapf-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.eapf-button:hover {
    background-color: #135e96;
    transform: translateY(-1px);
}

.eapf-button:active {
    transform: translateY(0);
}

.eapf-button:disabled {
    background-color: #a7aaad;
    cursor: not-allowed;
    transform: none;
}

/* Status Messages */
.eapf-status {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f6fc;
    border-left: 4px solid #72aee6;
    border-radius: 4px;
}

.eapf-status p {
    margin: 0;
    color: #1e1e1e;
}

.eapf-status .eapf-error {
    color: #d63638;
}

/* Result Container */
.eapf-result {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.7;
}

/* Error States */
.eapf-form-field.eapf-has-error .eapf-field {
    border-color: #d63638;
    background-color: rgba(214, 54, 56, 0.05);
}

.eapf-required {
    color: #d63638;
    margin-right: 4px;
}

/* Loading Animation */
@keyframes eapf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.eapf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: eapf-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* RTL Support */
.rtl .eapf-form-field select.eapf-field {
    background-position: left 12px center;
    padding-right: 15px;
    padding-left: 36px;
}

.rtl .eapf-required {
    margin-right: 0;
    margin-left: 4px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .eapf-form-field .eapf-field {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .eapf-button {
        width: 100%;
        padding: 12px;
    }
    
    .eapf-result {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .eapf-form,
    .eapf-status {
        display: none !important;
    }
    
    .eapf-result {
        border: none;
        padding: 0;
        background: none;
    }
}
