/**
 * Aventora Callback Request Styles
 */

/* Floating Button */
.aventora-callback-button {
    position: fixed;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aventora-callback-button:hover {
    background: #005a87;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.aventora-callback-button:active {
    transform: translateY(0);
}

.aventora-callback-button-icon {
    font-size: 18px;
}

.aventora-callback-button-text {
    white-space: nowrap;
}

/* Button Positions */
.aventora-callback-button-bottom-left {
    bottom: 20px;
    left: 20px;
}

.aventora-callback-button-bottom-right {
    bottom: 20px;
    right: 20px;
}

.aventora-callback-button-top-left {
    top: 20px;
    left: 20px;
}

.aventora-callback-button-top-right {
    top: 20px;
    right: 20px;
}

/* Inline button (for shortcode) */
.aventora-callback-button-inline {
    position: static;
    display: inline-flex;
    margin: 10px 0;
}

/* Modal */
.aventora-callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.aventora-callback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.aventora-callback-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    overflow-y: auto;
    z-index: 1;
}

.aventora-callback-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.aventora-callback-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.aventora-callback-modal-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.aventora-callback-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

/* Form */
.aventora-callback-form {
    margin-top: 20px;
}

.aventora-callback-field {
    margin-bottom: 20px;
}

.aventora-callback-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.aventora-callback-field input,
.aventora-callback-field select,
.aventora-callback-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.aventora-callback-field input:focus,
.aventora-callback-field select:focus,
.aventora-callback-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.aventora-callback-field textarea {
    resize: vertical;
    min-height: 80px;
}

.aventora-callback-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.aventora-callback-submit,
.aventora-callback-cancel {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aventora-callback-submit {
    background: #0073aa;
    color: #ffffff;
}

.aventora-callback-submit:hover:not(:disabled) {
    background: #005a87;
}

.aventora-callback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aventora-callback-cancel {
    background: #f0f0f0;
    color: #333;
}

.aventora-callback-cancel:hover {
    background: #e0e0e0;
}

/* Messages */
.aventora-callback-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.aventora-callback-message.aventora-callback-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aventora-callback-message.aventora-callback-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Prevent body scroll when modal is open */
body.aventora-callback-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .aventora-callback-modal-content {
        width: 95%;
        margin: 2vh auto;
        padding: 20px;
    }
    
    .aventora-callback-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .aventora-callback-button-text {
        display: none;
    }
    
    .aventora-callback-button-icon {
        font-size: 20px;
    }
    
    .aventora-callback-actions {
        flex-direction: column;
    }
    
    .aventora-callback-submit,
    .aventora-callback-cancel {
        width: 100%;
    }
}

/* Chatbot Button Styles */
.aventora-chatbot-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aventora-chatbot-button:hover {
    background: #005a87;
    color: #ffffff;
    text-decoration: none;
}

.aventora-chatbot-button:active {
    background: #004a73;
}

.aventora-chatbot-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}
