/* Demo Page Specific Styles */

.demo-section {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--background) 50%);
}

.demo-header {
    text-align: center;
    margin-bottom: 60px;
}

.demo-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Benefits Section */
.demo-benefits h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.benefit-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.benefit-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.demo-stat {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 12px;
}

.demo-stat .stat-number {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.demo-stat .stat-label {
    font-size: 13px;
    color: cornflowerblue;
}

/* Form Section */
.demo-form-container {
    position: sticky;
    top: 100px;
}

.demo-form-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.demo-form-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.required {
    color: #EF4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-privacy {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
}

.form-privacy a {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-privacy a:hover {
    text-decoration: underline;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message svg {
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-message p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Helpful Links Section */
.helpful-links {
    padding: 80px 0;
    background: var(--background-secondary);
    border-top: 1px solid var(--border);
}

.helpful-links h2 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.link-category h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-blue);
}

.link-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-category ul li {
    margin-bottom: 12px;
}

.link-category ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-category ul li a:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .demo-form-container {
        position: static;
    }
    
    .demo-header h1 {
        font-size: 36px;
    }
    
    .demo-stats {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .demo-section {
        padding: 100px 0 60px;
    }
    
    .demo-header h1 {
        font-size: 32px;
    }
    
    .demo-header p {
        font-size: 16px;
    }
    
    .demo-form-card {
        padding: 24px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin: 0 auto;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation on scroll */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.benefit-item {
    animation: slideInLeft 0.6s ease-out both;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }

.demo-form-card {
    animation: slideInRight 0.6s ease-out 0.2s both;
}

/* Navigation Links */
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Button */
.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Logo link */
.logo {
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.logo:hover {
    text-decoration: none;
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.footer .logo-image {
    filter: brightness(0) invert(1);
    width: 120px;
    height: 120px;
}

/* Footer Links */
.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.footer-legal a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Footer column headers */
.footer-col h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Success Animation Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
}

.success-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.active .success-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animated Checkmark */
.success-checkmark {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #0EA5E9;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #0EA5E9;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #0EA5E9;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Success Text */
.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    line-height: 1.6;
    color: #64748B;
    margin-bottom: 32px;
}

/* Success Button */
.success-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}