/* Evoxmails Form Styles */
.evoxmails-form {
    max-width: 100%;
    margin: 0 auto;
}

.evoxmails-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.evoxmails-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.evoxmails-title {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.evoxmails-description {
    color: #718096;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.evoxmails-fields {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

/* Layout variations */
.evoxmails-layout-stacked .name-fields {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.evoxmails-layout-stacked .name-fields .field-group {
    flex: 1;
}

.evoxmails-layout-centered .email-button-container {
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.evoxmails-layout-stacked .email-button-row {
    display: flex;
    gap: 0.5rem;
}

/* Field styles */
.field-group {
    display: flex;
    flex-direction: column;
}

.field-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.field-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.field-input::placeholder {
    color: #a0aec0;
}

/* Button styles */
.evoxmails-button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    position: relative;
}

.evoxmails-button:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

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

.evoxmails-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Message styles */
.evoxmails-messages {
    margin-top: 1rem;
}

.evoxmails-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.evoxmails-alert.success {
    color: #22543d;
    background-color: #c6f6d5;
    border: 1px solid #9ae6b4;
}

.evoxmails-alert.error {
    color: #742a2a;
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
}

/* Loading state */
.loading-spinner {
    font-style: italic;
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .evoxmails-box {
        padding: 1.5rem;
    }
    
    .evoxmails-layout-stacked .name-fields {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .evoxmails-layout-stacked .email-button-row,
    .evoxmails-layout-centered .email-button-container {
        flex-direction: column;
    }
    
    .evoxmails-button {
        width: 100%;
    }
}

/* Animation for messages */
.evoxmails-messages {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.field-input:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.evoxmails-button:focus-visible {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}