/* ===================================================
   CONTACT PAGE - MODERN UNIQUE DESIGN
   Homes Overstock
   =================================================== */

/* Brand Colors */
:root {
    --primary-red: #0d9488;
    --primary-dark: #115e59;
    --navy: #171b2a;
    --navy-light: #252d42;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --white: #ffffff;
}

/* ===== HERO SECTION ===== */
.contact-hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-decorative-lines span {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(13, 148, 136, 0.3), transparent);
    animation: lineFloat 8s ease-in-out infinite;
}

.hero-decorative-lines span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-decorative-lines span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; height: 100px; }
.hero-decorative-lines span:nth-child(3) { left: 75%; top: 10%; animation-delay: 2s; height: 120px; }
.hero-decorative-lines span:nth-child(4) { left: 90%; top: 50%; animation-delay: 3s; }

@keyframes lineFloat {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scaleY(1.2); opacity: 1; }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.hero-label i {
    color: var(--primary-red);
    font-size: 16px;
}

.hero-label span {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-main-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-main-title span {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-section {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

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

.info-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.info-card:hover .info-card-icon {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
}

.info-card-icon i {
    font-size: 32px;
    color: var(--primary-red);
    transition: all 0.4s ease;
}

.info-card:hover .info-card-icon i {
    color: var(--white);
}

.info-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.info-card a {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-red);
}

/* ===== MAIN CONTACT SECTION ===== */
.main-contact-section {
    padding: 100px 0;
    background: var(--gray-100);
    position: relative;
}

.main-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Left Side - Info */
.contact-info-side {
    position: relative;
}

.section-label-small {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title-large {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-title-large span {
    color: var(--primary-red);
}

.section-description {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--white);
    font-size: 18px;
}

.feature-content h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Social Links */
.social-connect {
    margin-top: 40px;
}

.social-connect h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
}
.footer-fb-icon{
    margin-left: 50px;
}
.social-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 12px !important;
    background: var(--white) !important;
    border: 1px solid var(--gray-200) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--navy) !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.social-icon:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

/* Right Side - Form */
.contact-form-side {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

.form-header p {
    font-size: 15px;
    color: var(--gray-600);
}

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

.modern-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.modern-form label .required {
    color: var(--primary-red);
}

.modern-form .form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--navy);
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.modern-form .form-control::placeholder {
    color: #adb5bd;
}

.modern-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Subject Select */
.modern-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
}

/* Submit Button */
.btn-submit-modern {
    width: 100%;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.4);
}

.btn-submit-modern i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover i {
    transform: translateX(5px);
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message i {
    margin-right: 10px;
}

/* Error Field */
.error-field {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* ===== MAP SECTION ===== */
.map-section {
    position: relative;
}

.map-container {
    width: 100%;
    height: 450px;
    background: var(--gray-200);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

.map-overlay-box {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.map-overlay-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-icon i {
    color: var(--white);
    font-size: 24px;
}

.map-overlay-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.map-overlay-content p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
}

/* ===== CTA BANNER ===== */
.contact-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-inner h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-inner h2 span {
    color: var(--primary-red);
}

.cta-inner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.4);
    color: var(--white);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199px) {
    .hero-main-title {
        font-size: 44px;
    }
    
    .contact-grid {
        gap: 40px;
    }
    
    .contact-form-side {
        padding: 40px;
    }
}

@media (max-width: 991px) {
    .contact-hero {
        padding: 120px 0 80px;
    }
    
    .hero-main-title {
        font-size: 38px;
    }
    
    .info-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-cards-row .info-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .section-title-large {
        font-size: 34px;
    }
    
    .map-overlay-box {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: -40px auto 40px;
        max-width: 90%;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 100px 0 70px;
    }
    
    .hero-main-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .contact-info-section {
        margin-top: -40px;
    }
    
    .info-cards-row {
        grid-template-columns: 1fr;
    }
    
    .info-cards-row .info-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .main-contact-section {
        padding: 60px 0;
    }
    
    .section-title-large {
        font-size: 28px;
    }
    
    .contact-form-side {
        padding: 30px 25px;
    }
    
    .form-header h3 {
        font-size: 24px;
    }
    
    .map-overlay-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .cta-inner h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 28px;
    }
    
    .hero-label {
        padding: 8px 18px;
    }
    
    .hero-label span {
        font-size: 12px;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
}

.main-footer:before {
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 0px;
}