﻿/* 
 * WCT Engineering - Contact Page Custom Styles
 * Brand Color: #333091 (Dark Blue)
 * This file contains custom styling for the Contact page
 * Add this to wwwroot/css/contact-custom.css
 */

/* Primary Brand Color Variables */
:root {
    --wct-primary: #333091;
    --wct-primary-dark: #2a2675;
    --wct-primary-light: #4a46b8;
    --wct-accent: #f0f0f5;
    --wct-text: #333333;
    --wct-gray: #666666;
}

/* Contact Page Main Container */
.contact_wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(51, 48, 145, 0.08);
    transition: box-shadow 0.3s ease;
}

    .contact_wrapper:hover {
        box-shadow: 0 4px 25px rgba(51, 48, 145, 0.12);
    }

    /* Section Headers */
    .contact_wrapper h3 {
        color: var(--wct-primary);
        font-weight: 700;
        font-size: 22px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        position: relative;
        padding-bottom: 15px;
    }

        .contact_wrapper h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 3px;
            background: var(--wct-primary);
            border-radius: 2px;
        }

    /* Contact Information Sections */
    .contact_wrapper h4 {
        color: var(--wct-primary);
        font-weight: 600;
        font-size: 18px;
        margin-bottom: 15px;
        margin-top: 0;
    }

        .contact_wrapper h4 i {
            margin-right: 10px;
            font-size: 20px;
            color: var(--wct-primary);
            display: inline-block;
            width: 25px;
            text-align: center;
        }

    /* Contact Links */
    .contact_wrapper a {
        color: var(--wct-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .contact_wrapper a:hover {
            color: var(--wct-primary-dark);
            text-decoration: none;
            transform: translateX(3px);
        }

/* Business Hours Table */
.hours_table {
    width: 100%;
    margin-top: 15px;
    background: #ffffff;
}

    .hours_table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.2s ease;
    }

        .hours_table tbody tr:hover {
            background-color: var(--wct-accent);
        }

    .hours_table td {
        padding: 12px 15px;
        font-size: 14px;
    }

        .hours_table td:first-child {
            font-weight: 600;
            color: var(--wct-primary);
            width: 40%;
        }

        .hours_table td:last-child {
            color: var(--wct-text);
        }

/* Form Styling */
.form_contact {
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: 600;
        color: var(--wct-text);
        margin-bottom: 8px;
        font-size: 14px;
        display: block;
    }

/* Form Controls */
.form-control {
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--wct-text) !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 45px !important;
}

    .form-control:focus {
        border-color: var(--wct-primary) !important;
        box-shadow: 0 0 0 0.2rem rgba(51, 48, 145, 0.15) !important;
        outline: none !important;
        background-color: #ffffff !important;
    }

    .form-control:hover:not(:focus) {
        border-color: var(--wct-primary-light) !important;
    }

    /* Input Placeholder */
    .form-control::placeholder {
        color: #999999 !important;
        opacity: 1 !important;
        font-style: italic;
    }

/* Select Dropdown */
select.form-control {
    cursor: pointer !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333091"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

    select.form-control option {
        padding: 10px !important;
        background: #ffffff !important;
        color: var(--wct-text) !important;
    }

/* Textarea */
.contact_textarea {
    resize: vertical !important;
    min-height: 140px !important;
    padding: 15px !important;
    line-height: 1.6 !important;
    font-family: inherit !important;
}

/* Validation Messages */
.text-danger {
    color: #dc3545 !important;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.form-text {
    color: var(--wct-gray) !important;
    font-size: 12px;
    margin-top: 5px;
}

/* Submit Button */
.btn-primary {
    background-color: var(--wct-primary) !important;
    border-color: var(--wct-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transition: left 0.3s ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        background-color: var(--wct-primary-dark) !important;
        border-color: var(--wct-primary-dark) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(51, 48, 145, 0.3) !important;
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(51, 48, 145, 0.2) !important;
    }

    .btn-primary i {
        margin-right: 8px;
    }

/* Alert Messages */
.alert {
    border-radius: 8px !important;
    padding: 15px 20px !important;
    margin-bottom: 25px !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

.alert strong {
    font-weight: 700;
}

/* Secondary Banner Enhancements */
#secondary-banner h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#secondary-banner h4 {
    color: #ffffff;
    font-weight: 400;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

    .breadcrumb li {
        color: #ffffff;
        font-size: 14px;
    }

        .breadcrumb li a {
            color: #ffffff;
            text-decoration: none;
            transition: opacity 0.3s ease;
        }

            .breadcrumb li a:hover {
                opacity: 0.8;
            }

/* Map Container */
#map-canvas {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(51, 48, 145, 0.15);
    border: 3px solid var(--wct-primary);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .contact_wrapper {
        margin-bottom: 30px;
    }

        .contact_wrapper h3 {
            font-size: 20px;
        }
}

@media (max-width: 768px) {
    /* Prevent iOS zoom on input focus */
    select.form-control,
    input.form-control,
    textarea.form-control {
        font-size: 16px !important;
        min-height: 50px !important;
    }

    select.form-control {
        padding: 15px !important;
        padding-right: 45px !important;
    }

    .btn-primary {
        padding: 16px 30px !important;
        font-size: 15px !important;
    }

    #secondary-banner h2 {
        font-size: 32px;
    }

    #secondary-banner h4 {
        font-size: 16px;
    }

    #map-canvas {
        height: 300px !important;
        margin-bottom: 30px;
    }

    .contact_wrapper {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .contact_wrapper h3 {
        font-size: 18px;
    }

    .contact_wrapper h4 {
        font-size: 16px;
    }

    .hours_table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* Loading State for Form Submission */
.btn-primary:disabled {
    background-color: var(--wct-gray) !important;
    border-color: var(--wct-gray) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Animation for Success/Error Messages */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideInDown 0.4s ease-out;
}

/* Focus Visible for Accessibility */
.form-control:focus-visible {
    outline: 3px solid rgba(51, 48, 145, 0.5) !important;
    outline-offset: 2px;
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(51, 48, 145, 0.5) !important;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact_wrapper {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .btn-primary,
    #map-canvas {
        display: none !important;
    }
}
