/* ===========================
   Demo Page Specific Styles
   =========================== */

.demo-page {
    padding-top: 80px;
    background: var(--light-gray);
}

/* Demo Hero */
.demo-hero {
    background:
        linear-gradient(135deg, rgba(10, 39, 72, 0.75) 0%, rgba(47, 117, 187, 0.7) 100%),
        url('https://images.unsplash.com/photo-1598624443973-2aa79a646a1e?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 39, 72, 0.4) 0%, rgba(47, 117, 187, 0.3) 100%);
    z-index: 0;
}

.demo-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(47, 117, 187, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.demo-hero-content {
    position: relative;
    z-index: 1;
}

.demo-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

.demo-hero-content p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--white);
    opacity: 1;
    line-height: 1.6;
}

/* Trust indicators */
.demo-trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.trust-badge-icon svg {
    width: 28px;
    height: 28px;
}

.trust-badge-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Demo Form Section */
.demo-form-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Demo Info Sidebar */
.demo-info {
    position: sticky;
    top: 100px;
}

.demo-info h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.demo-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.demo-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.demo-benefits li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.demo-benefits svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    padding: 4px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.demo-benefits span {
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 500;
}

.demo-contact-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

.demo-contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-link {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

/* Form Container */
.demo-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(47, 117, 187, 0.1);
    position: relative;
}

.demo-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-radius: 20px 20px 0 0;
}

.demo-form h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.demo-form-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

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

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label.consent {
    margin-top: 0.5rem;
}

.checkbox-label.consent span {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Form Button */
.demo-form .btn-large {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(47, 117, 187, 0.3);
    transition: all 0.3s ease;
}

.demo-form .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 117, 187, 0.4);
}

.demo-form .btn-large:active {
    transform: translateY(0);
}

.form-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
}

.form-message.success {
    background: #f0f9f4;
    border: 2px solid #4caf50;
}

.form-message.error {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.form-message svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.form-message.success svg {
    color: #4caf50;
}

.form-message.error svg {
    color: #ef4444;
}

.form-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-message.success h3 {
    color: #2e7d32;
}

.form-message.error h3 {
    color: #c62828;
}

.form-message p {
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-info {
        position: static;
    }

    .demo-form-container {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

    .demo-hero-content p {
        font-size: 1rem;
    }

    .demo-form-container {
        padding: 1.5rem 1rem;
    }

    .demo-form h2 {
        font-size: 1.5rem;
    }
}
