/*
* Vision3D - Contact Page Styles
*/

/* Page Header */
.page-header {
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.2) 0%, rgba(0, 51, 102, 0) 70%);
}

.page-header h1 {
    position: relative;
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
    z-index: 1;
}

.page-header p {
    position: relative;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    z-index: 1;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.demo-request-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.demo-info {
    flex: 1;
    min-width: 300px;
}

.demo-info h2 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark-blue);
}

.demo-info > p {
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-dark-gray);
}

/* Contact Details */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.demo-type-card {
    background-color: var(--secondary-light-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.demo-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.demo-type-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark-blue);
    color: var(--accent-cyan);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.demo-type-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark-blue);
}

.demo-type-card p {
    color: var(--secondary-dark-gray);
}

/* Contact Testimonial */
.demo-testimonial {
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.demo-testimonial::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: var(--accent-cyan);
    opacity: 0.3;
}

.demo-testimonial blockquote {
    margin-bottom: var(--spacing-md);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-circle);
    margin-right: var(--spacing-sm);
}

.testimonial-author h4 {
    margin-bottom: 0;
}

.testimonial-author p {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: var(--font-size-small);
}

/* Social Links */
.social-links {
    margin-top: var(--spacing-lg);
}

.social-links h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark-blue);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-dark-blue);
    color: var(--primary-white);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-dark-blue);
    transform: translateY(-3px);
}

/* Contact Form */
.demo-form-wrapper {
    flex: 1;
    min-width: 500px;
    background-color: var(--primary-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: var(--spacing-lg);
}

.form-header h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark-blue);
}

.form-header p {
    color: var(--secondary-dark-gray);
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.form-group {
    flex: 0 0 calc(50% - var(--spacing-md) / 2);
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--primary-dark-blue);
}

.form-group label .required {
    color: #ff3366;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-white);
    color: var(--text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light-blue);
    box-shadow: 0 0 0 3px rgba(102, 178, 255, 0.2);
    outline: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff3366;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ff3366;
}

.form-error-message {
    color: #ff3366;
    font-size: var(--font-size-small);
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: var(--spacing-sm);
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.alert {
    padding: 15px;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #006600;
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #cc0000;
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: var(--font-size-small);
    color: var(--secondary-dark-gray);
    margin-top: 5px;
}

.character-counter.warning {
    color: #ff9900;
}

.character-counter.error {
    color: #ff3366;
}

/* Button Loading State */
.btn-loading {
    display: none;
}

.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark-blue);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--secondary-dark-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--primary-white);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-item.active .faq-question {
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: var(--font-size-h5);
    flex: 1;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-light-blue);
    color: var(--primary-white);
    border-radius: var(--border-radius-circle);
    transition: all var(--transition-fast);
}

.faq-item.active .faq-toggle {
    background-color: var(--accent-cyan);
    color: var(--primary-dark-blue);
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding-bottom: var(--spacing-md);
}

/* Map Section */
.map-section {
    padding: var(--spacing-xl) 0;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-dark-blue);
    color: var(--primary-white);
    padding: 8px 15px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

body.keyboard-navigation :focus {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background-color: var(--primary-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.fade-out {
    transform: translateY(100px);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.notification-message {
    flex: 1;
    padding-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--secondary-dark-gray);
}

.notification-info {
    border-left: 4px solid var(--primary-light-blue);
}

.notification-success {
    border-left: 4px solid #00cc66;
}

.notification-error {
    border-left: 4px solid #ff3366;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .demo-request-wrapper {
        flex-direction: column;
    }
    
    .demo-info,
    .demo-form-wrapper {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .form-group {
        flex: 0 0 100%;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 30px;
    }
    
    .demo-form-wrapper {
        padding: var(--spacing-md);
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}