
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f3f4f6;
color: #1f2937;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}

:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--text: #1f2937;
--text-light: #6b7280;
--gradient: linear-gradient(135deg, #3B82F6, #6366F1);
--light: #ffffff;
--gray-light: #e5e7eb;
}

.demo-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(4px);
}

.demo-notice {
background: white;
border-radius: 16px;
padding: 2rem;
max-width: 500px;
margin: 2rem;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
text-align: center;
}

.demo-notice h3 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--text);
}

.demo-notice p {
color: var(--text-light);
line-height: 1.6;
margin-bottom: 1.5rem;
}

.demo-notice .notice-list {
text-align: left;
margin: 1.5rem 0;
padding-left: 1rem;
}

.demo-notice .notice-list li {
color: var(--text-light);
margin-bottom: 0.5rem;
font-size: 0.9rem;
}

.demo-notice button {
background: var(--primary);
color: white;
border: none;
padding: 0.75rem 2rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}

.demo-notice button:hover {
background: var(--primary-dark);
}

.demo-content-dimmed {
filter: blur(2px);
pointer-events: none;
}

.demo-wrapper {
max-width: 1200px;
width: 100%;
}

.demo-header-text {
text-align: center;
margin-bottom: 2rem;
}

.demo-header-text h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
background: var(--gradient);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.demo-header-text p {
font-size: 1.125rem;
color: var(--text-light);
}

.demo-container {
background: white;
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
border: 1px solid #e5e7eb;
overflow: hidden;
height: 600px;
display: flex;
flex-direction: column;
}

.demo-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 1.5rem;
border-bottom: 1px solid #e5e7eb;
background: #f9fafb;
}

.demo-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}

.demo-dot:nth-child(1) { background: #ff5f56; }
.demo-dot:nth-child(2) { background: #ffbd2e; }
.demo-dot:nth-child(3) { background: #27ca3f; }

.demo-title {
margin-left: 1rem;
color: var(--text-light);
font-size: 0.9rem;
font-weight: 500;
}

.campaign-creation-container {
flex: 1;
overflow-y: auto;
padding: 2rem;
}

.progress-bar {
display: flex;
justify-content: space-between;
margin-bottom: 3rem;
position: relative;
}

.progress-bar::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: #e5e7eb;
transform: translateY(-50%);
z-index: 0;
}

.progress-bar-fill {
position: absolute;
top: 50%;
left: 0;
height: 2px;
background: var(--primary);
transform: translateY(-50%);
transition: width 0.3s ease;
z-index: 1;
}

.progress-step {
background: white;
border: 2px solid #e5e7eb;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: var(--text-light);
position: relative;
z-index: 2;
transition: all 0.3s ease;
}

.progress-step.active {
background: var(--primary);
border-color: var(--primary);
color: white;
}

.progress-step.completed {
background: var(--primary);
border-color: var(--primary);
color: white;
}

.progress-step.completed::after {
content: '✓';
position: absolute;
font-size: 1.2rem;
}

.progress-step.completed span {
display: none;
}

.step-content {
display: none;
}

.step-content.active {
display: block;
}

.step-header {
margin-bottom: 2rem;
}

.step-header h2 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text);
}

.step-header p {
color: var(--text-light);
font-size: 0.875rem;
}

.form-group {
margin-bottom: 1.5rem;
}

.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text);
font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 0.875rem;
transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
resize: vertical;
min-height: 100px;
}

.template-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}

.template-option {
border: 2px solid #e5e7eb;
border-radius: 8px;
padding: 1.5rem;
cursor: pointer;
transition: all 0.2s;
position: relative;
}

.template-option:hover {
border-color: var(--primary);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.template-option.selected {
border-color: var(--primary);
background: #eff6ff;
}

.template-option.selected::after {
content: '✓';
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: var(--primary);
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.875rem;
}

.template-option h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text);
}

.template-option p {
font-size: 0.875rem;
color: var(--text-light);
line-height: 1.5;
}

.email-preview {
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 1.5rem;
background: #f9fafb;
margin-bottom: 1.5rem;
}

.email-preview-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e5e7eb;
}

.email-preview-header h3 {
font-size: 1rem;
font-weight: 600;
color: var(--text);
}

.preview-actions {
display: flex;
gap: 0.5rem;
}

.preview-btn {
padding: 0.375rem 0.75rem;
font-size: 0.75rem;
border-radius: 4px;
border: 1px solid #d1d5db;
background: white;
color: var(--text);
cursor: pointer;
transition: all 0.2s;
}

.preview-btn:hover {
background: #f3f4f6;
}

.email-preview-content {
font-size: 0.875rem;
line-height: 1.6;
color: var(--text);
}

.action-buttons {
display: flex;
gap: 1rem;
justify-content: flex-end;
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
}

.btn {
padding: 0.75rem 1.5rem;
border-radius: 6px;
font-weight: 600;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s;
border: none;
}

.btn-secondary {
background: white;
color: var(--text);
border: 1px solid #d1d5db;
}

.btn-secondary:hover {
background: #f9fafb;
}

.btn-primary {
background: var(--primary);
color: white;
}

.btn-primary:hover {
background: var(--primary-dark);
}

.btn-primary:disabled {
background: #9ca3af;
cursor: not-allowed;
}

.final-step-cta {
text-align: center;
padding: 3rem;
}

.final-step-cta h2 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--text);
}

.final-step-cta p {
font-size: 1.125rem;
color: var(--text-light);
margin-bottom: 2rem;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}

.cta-button {
display: inline-block;
padding: 1rem 2rem;
background: var(--gradient);
color: white;
border-radius: 8px;
font-weight: 600;
font-size: 1rem;
text-decoration: none;
transition: all 0.3s;
border: none;
cursor: pointer;
}

.cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.feature-list {
list-style: none;
margin: 2rem auto;
max-width: 400px;
text-align: left;
}

.feature-list li {
display: flex;
align-items: center;
margin-bottom: 1rem;
color: var(--text);
}

.feature-list .checkmark {
width: 20px;
height: 20px;
background: #dcfce7;
border-radius: 50%;
color: #166534;
margin-right: 1rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
flex-shrink: 0;
}

@media (max-width: 768px) {
.demo-header-text h1 {
    font-size: 2rem;
}

.campaign-creation-container {
    padding: 1.5rem;
}

.template-grid {
    grid-template-columns: 1fr;
}

.action-buttons {
    flex-direction: column-reverse;
}

.btn {
    width: 100%;
}
}