- Changed $steps variable from const to let to allow reassignment - Added new modal styling and AJAX form handlers - Fixed campaign form JavaScript 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
344 lines
No EOL
5.8 KiB
CSS
344 lines
No EOL
5.8 KiB
CSS
/* Modal Styles */
|
|
.mf-floating-action-button {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
width: 60px;
|
|
height: 60px;
|
|
background-color: #0073aa;
|
|
border-radius: 50%;
|
|
text-align: center;
|
|
line-height: 60px;
|
|
font-size: 24px;
|
|
color: white;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
cursor: pointer;
|
|
z-index: 1000;
|
|
transition: transform 0.3s, background-color 0.3s;
|
|
}
|
|
|
|
.mf-floating-action-button:hover {
|
|
transform: scale(1.1);
|
|
background-color: #005d87;
|
|
}
|
|
|
|
.mf-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 1001;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.3s, visibility 0.3s;
|
|
}
|
|
|
|
.mf-modal-overlay.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.mf-modal-container {
|
|
background: white;
|
|
width: 90%;
|
|
max-width: 700px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
max-height: 90vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mf-modal-header {
|
|
padding: 20px;
|
|
background-color: #f8f8f8;
|
|
border-bottom: 1px solid #eee;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.mf-modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.4rem;
|
|
color: #333;
|
|
}
|
|
|
|
.mf-modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: #888;
|
|
cursor: pointer;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.mf-modal-close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.mf-modal-body {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.mf-modal-footer {
|
|
padding: 15px 20px;
|
|
background-color: #f8f8f8;
|
|
border-top: 1px solid #eee;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.mf-modal-footer button {
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
border: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mf-back-btn {
|
|
background-color: #f0f0f0;
|
|
color: #555;
|
|
}
|
|
|
|
.mf-next-btn {
|
|
background-color: #0073aa;
|
|
color: white;
|
|
}
|
|
|
|
.mf-back-btn:hover {
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
.mf-next-btn:hover {
|
|
background-color: #005d87;
|
|
}
|
|
|
|
.mf-next-btn.disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Step indicator styles */
|
|
.mf-steps-indicator {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 0 0 20px;
|
|
}
|
|
|
|
.mf-step-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background-color: #ddd;
|
|
margin: 0 5px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.mf-step-dot.active {
|
|
background-color: #0073aa;
|
|
}
|
|
|
|
.mf-step-dot.completed {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
/* Multi-step form styles */
|
|
.mf-step {
|
|
display: none;
|
|
}
|
|
|
|
.mf-step.active {
|
|
display: block;
|
|
}
|
|
|
|
.mf-step h3 {
|
|
margin-top: 0;
|
|
color: #333;
|
|
}
|
|
|
|
.mf-form-field {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.mf-form-field label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mf-form-field input,
|
|
.mf-form-field select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.mf-form-field input:focus,
|
|
.mf-form-field select:focus {
|
|
border-color: #0073aa;
|
|
outline: none;
|
|
box-shadow: 0 0 0 1px #0073aa;
|
|
}
|
|
|
|
.mf-selection-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.mf-selection-button {
|
|
flex: 1;
|
|
padding: 15px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 6px;
|
|
background-color: #f8f8f8;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.mf-selection-button:hover {
|
|
border-color: #0073aa;
|
|
background-color: #f0f7fb;
|
|
}
|
|
|
|
.mf-selection-button.selected {
|
|
border-color: #0073aa;
|
|
background-color: #e6f3fa;
|
|
}
|
|
|
|
.mf-selection-button i {
|
|
display: block;
|
|
font-size: 24px;
|
|
margin-bottom: 10px;
|
|
color: #555;
|
|
}
|
|
|
|
.mf-selection-button.selected i {
|
|
color: #0073aa;
|
|
}
|
|
|
|
.mf-validation-error {
|
|
color: #d32f2f;
|
|
font-size: 14px;
|
|
margin-top: 5px;
|
|
display: none;
|
|
}
|
|
|
|
.mf-loading {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.mf-loading-spinner {
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #0073aa;
|
|
border-radius: 50%;
|
|
width: 30px;
|
|
height: 30px;
|
|
animation: spin 1s linear infinite;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.mf-success-message,
|
|
.mf-error-message {
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.mf-success-message {
|
|
background-color: #e8f5e9;
|
|
border: 1px solid #c8e6c9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.mf-error-message {
|
|
background-color: #ffebee;
|
|
border: 1px solid #ffcdd2;
|
|
color: #c62828;
|
|
}
|
|
|
|
.mf-mx-option {
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.mf-mx-option:hover {
|
|
border-color: #0073aa;
|
|
background-color: #f0f7fb;
|
|
}
|
|
|
|
.mf-mx-option.selected {
|
|
border-color: #0073aa;
|
|
background-color: #e6f3fa;
|
|
}
|
|
|
|
.mf-email-list {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.mf-email-row {
|
|
display: flex;
|
|
margin-bottom: 10px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.mf-email-row input {
|
|
flex: 1;
|
|
}
|
|
|
|
.mf-add-email-btn {
|
|
background-color: #0073aa;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.mf-add-email-btn:hover {
|
|
background-color: #005d87;
|
|
}
|
|
|
|
.mf-remove-email-btn {
|
|
background-color: #f44336;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.mf-remove-email-btn:hover {
|
|
background-color: #d32f2f;
|
|
} |