552 lines
10 KiB
CSS
552 lines
10 KiB
CSS
/* ═══════════════════════════════════════════════
|
|
A2P Compliance Wizard - Form Styles
|
|
Premium, modern design
|
|
═══════════════════════════════════════════════ */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
|
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--primary: #2563EB;
|
|
--primary-dark: #1D4ED8;
|
|
--primary-light: #EFF6FF;
|
|
--accent: #7C3AED;
|
|
--accent-light: #F5F3FF;
|
|
--success: #059669;
|
|
--error: #DC2626;
|
|
--gray-50: #F9FAFB;
|
|
--gray-100: #F3F4F6;
|
|
--gray-200: #E5E7EB;
|
|
--gray-300: #D1D5DB;
|
|
--gray-400: #9CA3AF;
|
|
--gray-500: #6B7280;
|
|
--gray-600: #4B5563;
|
|
--gray-700: #374151;
|
|
--gray-800: #1F2937;
|
|
--gray-900: #111827;
|
|
--radius: 12px;
|
|
--radius-lg: 16px;
|
|
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
|
--shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
|
|
--shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
|
|
--shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
background: var(--gray-50);
|
|
color: var(--gray-900);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ── Background Pattern ── */
|
|
.page-bg {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background:
|
|
radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
|
|
radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
|
|
radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
|
|
var(--gray-50);
|
|
}
|
|
|
|
/* ── Header ── */
|
|
.header {
|
|
text-align: center;
|
|
padding: 60px 20px 20px;
|
|
}
|
|
|
|
.header-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
padding: 6px 16px;
|
|
border-radius: 100px;
|
|
margin-bottom: 20px;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.header-badge svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: clamp(28px, 5vw, 42px);
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.15;
|
|
background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 17px;
|
|
color: var(--gray-500);
|
|
max-width: 520px;
|
|
margin: 0 auto;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ── Steps indicator ── */
|
|
.steps {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 24px 20px;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.step {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--gray-400);
|
|
}
|
|
|
|
.step-num {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
background: var(--gray-200);
|
|
color: var(--gray-500);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.step.active .step-num {
|
|
background: var(--primary);
|
|
color: white;
|
|
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
|
|
}
|
|
|
|
.step.active {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.step.done .step-num {
|
|
background: var(--success);
|
|
color: white;
|
|
}
|
|
|
|
.step-line {
|
|
width: 40px;
|
|
height: 2px;
|
|
background: var(--gray-200);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ── Form Container ── */
|
|
.form-container {
|
|
max-width: 640px;
|
|
margin: 0 auto 80px;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.form-card {
|
|
background: white;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
border: 1px solid var(--gray-200);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.form-section {
|
|
padding: 32px;
|
|
}
|
|
|
|
.form-section + .form-section {
|
|
border-top: 1px solid var(--gray-100);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--gray-800);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: 13px;
|
|
color: var(--gray-500);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
/* ── Form Fields ── */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--gray-700);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
label .required {
|
|
color: var(--error);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="tel"],
|
|
textarea {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
border: 1.5px solid var(--gray-300);
|
|
border-radius: var(--radius);
|
|
background: white;
|
|
color: var(--gray-900);
|
|
transition: all 0.2s ease;
|
|
outline: none;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--gray-400);
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.field-hint {
|
|
font-size: 12px;
|
|
color: var(--gray-400);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ── Logo Upload ── */
|
|
.logo-upload {
|
|
border: 2px dashed var(--gray-300);
|
|
border-radius: var(--radius);
|
|
padding: 32px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: var(--gray-50);
|
|
}
|
|
|
|
.logo-upload:hover {
|
|
border-color: var(--primary);
|
|
background: var(--primary-light);
|
|
}
|
|
|
|
.logo-upload.has-file {
|
|
border-color: var(--success);
|
|
background: #F0FDF4;
|
|
}
|
|
|
|
.logo-upload input[type="file"] {
|
|
display: none;
|
|
}
|
|
|
|
.logo-upload-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin: 0 auto 12px;
|
|
border-radius: 12px;
|
|
background: var(--gray-200);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--gray-500);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.logo-upload:hover .logo-upload-icon {
|
|
background: rgba(37, 99, 235, 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.logo-upload-text {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--gray-700);
|
|
}
|
|
|
|
.logo-upload-hint {
|
|
font-size: 12px;
|
|
color: var(--gray-400);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.logo-preview {
|
|
max-width: 200px;
|
|
max-height: 100px;
|
|
margin: 12px auto 0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* ── Checkbox ── */
|
|
.checkbox-group {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
background: var(--accent-light);
|
|
border-radius: var(--radius);
|
|
border: 1px solid rgba(124, 58, 237, 0.15);
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-label {
|
|
font-size: 13px;
|
|
color: var(--gray-600);
|
|
line-height: 1.5;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ── Submit Button ── */
|
|
.submit-section {
|
|
padding: 24px 32px;
|
|
background: var(--gray-50);
|
|
border-top: 1px solid var(--gray-100);
|
|
}
|
|
|
|
.btn-submit {
|
|
width: 100%;
|
|
padding: 14px 28px;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
font-family: inherit;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-submit:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
|
|
}
|
|
|
|
.btn-submit:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-submit:disabled {
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-text {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ── Loading Overlay ── */
|
|
.loading-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
background: rgba(15, 23, 42, 0.7);
|
|
backdrop-filter: blur(8px);
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.loading-overlay.active {
|
|
display: flex;
|
|
}
|
|
|
|
.loading-card {
|
|
background: white;
|
|
border-radius: var(--radius-lg);
|
|
padding: 48px;
|
|
text-align: center;
|
|
max-width: 420px;
|
|
width: 90%;
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 56px;
|
|
height: 56px;
|
|
margin: 0 auto 24px;
|
|
border: 3px solid var(--gray-200);
|
|
border-top: 3px solid var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.loading-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--gray-900);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.loading-message {
|
|
font-size: 14px;
|
|
color: var(--gray-500);
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--gray-200);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--primary), var(--accent));
|
|
border-radius: 3px;
|
|
width: 0%;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.progress-steps {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
.progress-step {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 13px;
|
|
color: var(--gray-400);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.progress-step.active {
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.progress-step.done {
|
|
color: var(--success);
|
|
}
|
|
|
|
.progress-step-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ── Error ── */
|
|
.error-banner {
|
|
display: none;
|
|
background: #FEF2F2;
|
|
border: 1px solid #FECACA;
|
|
color: var(--error);
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius);
|
|
font-size: 14px;
|
|
margin-bottom: 20px;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.error-banner.visible {
|
|
display: block;
|
|
}
|
|
|
|
/* ── Footer ── */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--gray-400);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Animations ── */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 640px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.form-section {
|
|
padding: 24px 20px;
|
|
}
|
|
|
|
.submit-section {
|
|
padding: 20px;
|
|
}
|
|
|
|
.steps {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|