/**
 * Public styles for WPBee Honey Leads.
 *
 * @since      1.0.0
 * @package    WPBeeHoneyLeads
 */

/* Modal */
.wpbee-honey-leads-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.wpbee-honey-leads-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.wpbee-honey-leads-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: wpbeeModalFadeIn 0.3s ease-out;
}

@keyframes wpbeeModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpbee-honey-leads-modal-header {
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpbee-honey-leads-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.wpbee-honey-leads-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.wpbee-honey-leads-modal-close:hover {
    color: #333;
}

.wpbee-honey-leads-modal-body {
    padding: 20px;
}

/* Form */
.wpbee-honey-leads-form {
    margin: 0;
}

.wpbee-honey-leads-form-group {
    margin-bottom: 15px;
}

.wpbee-honey-leads-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.wpbee-honey-leads-input,
.wpbee-honey-leads-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

.wpbee-honey-leads-textarea {
    min-height: 100px;
    resize: vertical;
}

.wpbee-honey-leads-input:focus,
.wpbee-honey-leads-textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.wpbee-honey-leads-submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpbee-honey-leads-submit:hover {
    background-color: #005f8b;
}

.wpbee-honey-leads-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Success and Error Messages */
.wpbee-honey-leads-success {
    padding: 15px;
    background-color: #ecf7ed;
    border-left: 4px solid #46b450;
    color: #333;
    margin-bottom: 20px;
}

.wpbee-honey-leads-error {
    padding: 15px;
    background-color: #fbeaea;
    border-left: 4px solid #d63638;
    color: #333;
    margin-bottom: 20px;
}

/* Loading Spinner */
.wpbee-honey-leads-loading {
    text-align: center;
    padding: 30px;
}

.wpbee-honey-leads-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: wpbeeSpinner 1s linear infinite;
}

@keyframes wpbeeSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Trigger Button */
button.wpbee-honey-leads-trigger {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button.wpbee-honey-leads-trigger:hover {
    background-color: #005f8b;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .wpbee-honey-leads-modal-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .wpbee-honey-leads-modal-title {
        font-size: 18px;
    }
    
    .wpbee-honey-leads-modal-body {
        padding: 15px;
    }
}