/* Contact Page Styles */

/* Page Header */
.page-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/pages/contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    margin: 0 10px;
    opacity: 0.7;
}

.breadcrumb-current {
    opacity: 0.8;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Contact Overview */
.contact-overview {
    padding: 100px 0;
    background: #f8f9fa !important;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 204, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.contact-card-icon i {
    font-size: 2.2rem;
    color: white;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.3);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-details p {
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(0, 102, 204, 0.05);
}

.contact-card-link:hover {
    color: white;
    background: var(--primary-color);
    gap: 12px;
    transform: translateY(-2px);
}

/* Responsive Design for Contact Cards */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 960px;
        padding: 0 20px;
    }
    
    .contact-card {
        padding: 2rem 1.2rem;
    }
    
    .contact-card-icon {
        width: 80px;
        height: 80px;
    }
    
    .contact-card-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    
    /* Center the last card when in 2-column layout */
    .contact-card:last-child {
        grid-column: span 2;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .contact-card-icon i {
        font-size: 1.8rem;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
    
    .contact-card-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .contact-card:last-child {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .contact-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .contact-overview {
        padding: 60px 0;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-card-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.2rem;
    }
    
    .contact-card-icon i {
        font-size: 2rem;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .contact-card-link {
        font-size: 0.85rem;
    }
}

/* Contact Forms */
.contact-forms {
    padding: 100px 0;
    background: white;
}

.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    padding-bottom: 0;
}

.form-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.form-tab:hover {
    color: var(--primary-color);
    background: rgba(0, 51, 102, 0.05);
}

.form-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 51, 102, 0.05);
}

.form-tab i {
    font-size: 1.1rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

.contact-form {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

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

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

.form-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

/* Map Section */
.map-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.map-wrapper {
    margin-top: 50px;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    z-index: 10;
}

.map-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-info h3 i {
    color: var(--accent-color);
}

.map-details {
    margin-bottom: 25px;
}

.map-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.map-detail i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
}

.map-detail div {
    flex: 1;
}

.map-detail strong {
    color: var(--primary-color);
    font-weight: 600;
}

.map-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.map-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 20px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 50vh;
        min-height: 350px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-overview,
    .contact-forms,
    .map-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .form-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        border-bottom: none;
    }
    
    .form-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .form-tab.active {
        border-color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-overview,
    .contact-forms,
    .map-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 30px;
    }
    
    .btn-large {
        padding: 15px 40px;
        font-size: 1rem;
    }
    
    .map-overlay {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .page-header,
    .contact-forms,
    .map-section {
        break-inside: avoid;
    }
    
    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid #000;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form Content Visibility */
#quote-form,
#meeting-form,
#support-form {
    display: none;
}

#quote-form.active,
#meeting-form.active,
#support-form.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Product Category Dropdown Styling */
.form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 45px;
}

.form-select:focus {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23003366" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
}

/* Enhanced Form Styling */
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 51, 102, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Dark Mode Support Removed/Disabled for these sections to match mobile */
@media (prefers-color-scheme: dark) {
    /* ... other dark mode rules ... */
}