/* 
    CONTACT PAGE STYLES
    - Primary CTA color: #2563eb (blue)
    - Secondary accent: #10b981 (green)
    - Background: #f8fafc (light gray)
*/

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* New Modern Header Design with Updated Logo */
.new-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
}

.header-left .logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.header-center .main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header-center .main-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.header-center .main-nav a:hover,
.header-center .main-nav a.active {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.contact-bar {
    margin-right: 1.5rem;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    white-space: nowrap;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6);
}

.phone-icon {
    font-size: 1.4rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #334155;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.5rem;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #2563eb;
    color: white;
}

.mobile-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    justify-content: center;
}

.mobile-contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6);
}

/* Hero Section with Same Design as Home Page */
.modern-hero {
    height: 80vh;
    min-height: 600px;
    background-image: url('https://media.istockphoto.com/id/2150777010/id/foto/engineer-man-in-waistcoats-and-hardhats-with-documents-inspecting-construction-site-mechanical.jpg?s=612x612&w=0&k=20&c=N7qYs-KWWeqoSTWDGX2ScfED8FiexlK4Z_kGPjVa8sw=');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Space for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: #f1f5f9;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.phone-button {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 1.3rem 2.7rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
    white-space: nowrap;
}

.phone-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.7);
}

/* Modern Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Panel */
.contact-info-panel {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.contact-info-panel h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background: #f1f5f9;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    min-width: 50px;
    text-align: center;
    color: #2563eb;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-details p {
    margin-bottom: 0.3rem;
    color: #64748b;
    line-height: 1.5;
}

.contact-details a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.hours, .response-time, .service-note {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

.map-container {
    margin-top: 2rem;
}

.map-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.map-container p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    line-height: 1.5;
}

.google-map {
    width: 100%;
    height: 300px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

/* Contact Form Panel with Simplified Fields */
.contact-form-panel {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.contact-form-panel h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

.modern-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #334155;
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.8rem;
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.submit-button {
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    color: white;
    padding: 1.3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #bfdbfe 100%);
    border-radius: 1rem;
    margin-top: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #047857;
}

.success-message p {
    margin-bottom: 1rem;
    color: #065f46;
    line-height: 1.6;
    font-size: 1.1rem;
}

.success-message a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 1.2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Modal */
.loading-modal .modal-content {
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.loading-modal p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Success Modal */
.success-modal .success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.success-modal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #047857;
}

.success-modal p {
    color: #065f46;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Error Modal */
.error-modal .error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.error-modal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.error-modal p {
    color: #991b1b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.close-modal {
    background: linear-gradient(90deg, #2563eb, #10b981);
    color: white;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.close-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

/* Modern Footer with Updated Logo */
.modern-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 5rem 0 1.8rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-column h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-column h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

.footer-column p {
    margin-bottom: 0.8rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 1.1rem;
}

.footer-column a:hover {
    color: #2563eb;
    transform: translateX(7px);
}

.contact-details a {
    color: #94a3b8;
    font-weight: 500;
}

.contact-details a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1.3rem;
    margin-top: 1.3rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #334155;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 1.1rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #2563eb;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 900px) {
    .header-center {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .header-left .logo h1 {
        font-size: 1.8rem;
    }
    
    .contact-bar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn span {
        width: 24px;
        height: 2.5px;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .modern-hero {
        height: 70vh;
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .phone-button {
        padding: 1.1rem 2.2rem;
        font-size: 1.1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 2rem;
    }
    
    .contact-method {
        padding: 1.2rem;
    }
    
    .contact-icon {
        font-size: 1.8rem;
        margin-right: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .submit-button {
        padding: 1.1rem;
        font-size: 1.1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem;
    }
    
    .header-left .logo h1 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .phone-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.5rem;
    }
    
    .contact-info-panel h2,
    .contact-form-panel h2 {
        font-size: 1.7rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .submit-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .success-message {
        padding: 2rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-message h3 {
        font-size: 1.7rem;
    }
}