/**
 * Roots2Blooms Signup Modal Styles
 */

/* Modal Overlay - Hidden by default */
.r2b-modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
}

.r2b-modal-overlay.active {
    display: flex !important;
}

/* Modal Content */
.r2b-modal {
    background: #fff !important;
    border-radius: 8px !important;
    max-width: 450px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    animation: r2b-modal-appear 0.3s ease !important;
}

@keyframes r2b-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.r2b-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    cursor: pointer !important;
    color: #666 !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
}

.r2b-modal-close:hover {
    color: #333 !important;
}

/* Form Container */
.roots2blooms-signup-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px 25px;
    text-align: center;
}

.roots2blooms-signup-container h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #333;
}

.roots2blooms-signup-container p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.roots2blooms-signup-container .r2b-note {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

.r2b-form-row {
    margin-bottom: 15px;
}

.r2b-form-row input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.r2b-form-row input[type="email"]:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.r2b-submit-btn {
    width: 100%;
    padding: 12px 25px;
    background-color: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.r2b-submit-btn:hover {
    background-color: #1b5e20;
}

.r2b-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#r2b-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#r2b-message:empty {
    display: none;
}

#r2b-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#r2b-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Trigger Button */
.r2b-trigger-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.r2b-trigger-btn:hover {
    background-color: #1b5e20;
    color: #fff;
}
