/* Anytime Mailbox Integration Styles */

.atmb-integration-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.atmb-header {
    text-align: center;
    margin-bottom: 40px;
}

.atmb-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.atmb-header p {
    font-size: 1.1em;
    color: #666;
}

/* Loading State */
.atmb-loading {
    text-align: center;
    padding: 60px 20px;
}

.atmb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.atmb-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Plans Grid */
.atmb-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.atmb-plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.atmb-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.atmb-plan-card.featured {
    border-color: #0073aa;
    border-width: 3px;
    position: relative;
}

.atmb-plan-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0073aa;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.atmb-plan-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.atmb-plan-description {
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.atmb-plan-pricing {
    margin-bottom: 25px;
}

.atmb-price {
    display: block;
    margin-bottom: 10px;
}

.atmb-price-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
}

.atmb-price-period {
    font-size: 1em;
    color: #666;
}

.atmb-price.monthly {
    margin-bottom: 5px;
}

.atmb-price.annually {
    font-size: 0.9em;
    color: #666;
}

.atmb-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.atmb-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.atmb-plan-features li:before {
    content: "✓";
    color: #0073aa;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.atmb-plan-features li:last-child {
    border-bottom: none;
}

.atmb-select-plan-btn {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.atmb-select-plan-btn:hover {
    background: #005a87;
}

/* Signup Form */
.atmb-signup-section {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
}

.atmb-signup-section h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.atmb-signup-form {
    max-width: 700px;
    margin: 0 auto;
}

.atmb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.atmb-form-row .atmb-form-group-small {
    grid-column: span 1;
    max-width: 150px;
}

.atmb-form-group {
    margin-bottom: 20px;
}

.atmb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.atmb-form-group input,
.atmb-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.atmb-form-group input:focus,
.atmb-form-group select:focus {
    outline: none;
    border-color: #0073aa;
}

.atmb-form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.atmb-form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

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

.atmb-submit-btn {
    width: 100%;
    padding: 18px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.atmb-submit-btn:hover:not(:disabled) {
    background: #005a87;
}

.atmb-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.atmb-btn-spinner {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .atmb-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .atmb-form-row {
        grid-template-columns: 1fr;
    }
    
    .atmb-form-row .atmb-form-group-small {
        max-width: 100%;
    }
    
    .atmb-signup-section {
        padding: 20px;
    }
    
    .atmb-header h2 {
        font-size: 2em;
    }
}
