/* ============================================
   FORM PAGES STYLING (Contact & Demo)
   Professional split-screen layout
   ============================================ */

/* Page Container */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 80px;
}

.content-wrapper {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    height: calc(100vh - 70px);
    /* Fixed height for no scroll */
    overflow: hidden;
    align-items: center;
    /* Vertically center children */
}

/* Info Section (Left Side) */
.info-section {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Box Styling */
    border-radius: 20px;
    margin: 20px;
    /* Spacing from edges */
    box-shadow: 0 10px 40px rgba(25, 118, 210, 0.3);
    max-width: 90%;
    width: 100%;
    align-self: center;
    /* Vertical center in grid */
    justify-self: center;
    /* Horizontal center in grid */
}

.info-header {
    max-width: 600px;
    width: 100%;
}

.info-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-header p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.95;
    margin-bottom: 20px;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
    /* Constrain width */
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-icon.email {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.contact-icon.phone {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #26d367, #128c7e);
}

.contact-icon.location {
    background: linear-gradient(135deg, #ef5350, #e53935);
}

.contact-card h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.contact-card a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s;
}

.contact-card a:hover {
    border-color: white;
}

.contact-card .location-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    /* Center icons */
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: white;
    color: #1976d2;
    transform: translateY(-3px);
}

/* Demo Benefits */
.demo-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 600px;
    /* Constrain width */
}

.demo-benefits h3 {
    grid-column: 1 / -1;
    /* Title spans full width */
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.benefit-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-item i {
    font-size: 1.2rem;
}

/* Form Section (Right Side) */
/* Form Section (Right Side) */
.form-section {
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    /* Ensure it fills parent to allow internal scroll */
}

.form-card {
    width: 100%;
    max-width: 450px;
    margin: auto;
    /* Safe vertical/horizontal centering */
    /* Don't stretch too wide */
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Professional shadow */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-card h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-subtitle {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #1976d2;
    margin-right: 8px;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #f8f9fa;
    /* Slight background for inputs */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

.privacy-note i {
    margin-right: 5px;
}

/* Form Messages (Success/Error) */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
    transition: opacity 0.3s;
}

.form-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #66bb6a;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef5350;
}

.form-message i {
    font-size: 1.5rem;
}

.form-message p {
    margin: 0;
    flex: 1;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Link Styling */
header .back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

header .back-link:hover {
    color: #1976d2 !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        display: flex;
        /* Stack vertically */
        flex-direction: column;
        height: auto;
        /* Allow full scroll */
        overflow: visible;
        grid-template-columns: none;
        /* Reset grid */
    }

    .page-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .info-section {
        padding: 40px 20px;
        order: 1;
        /* Keep info on top or change to 2 to put form first if desired (usually info first is good) */
    }

    .form-section {
        height: auto;
        /* Let content dictate height */
        padding: 40px 20px;
        overflow: visible;
        /* No internal scroll, page scroll instead */
    }

    .form-card {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        /* Lighter shadow on mobile */
        margin-bottom: 40px;
    }

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

@media (max-width: 768px) {
    .page-container {
        padding-top: 70px;
    }

    .info-section {
        padding: 40px 25px;
    }

    .form-section {
        padding: 40px 25px;
    }

    .info-header h1 {
        font-size: 2.2rem;
    }

    .form-card h2 {
        font-size: 1.7rem;
    }

    .contact-cards {
        gap: 15px;
    }

    .trust-badges {
        gap: 10px;
    }

    .trust-item {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .info-header h1 {
        font-size: 1.8rem;
    }

    .info-header p {
        font-size: 1rem;
    }

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

    .contact-card {
        padding: 20px;
    }

    .benefit-item {
        padding: 15px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}