/**
 * Contact Page Styles
 * MyHomePros - Contact Page
 * 
 * Requires: main.css for variables, page.css for breadcrumb base styles
 * 
 * @package MyHomePros
 */

/* ========================================
   HERO SECTION
   ======================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    padding: 3rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .contact-hero {
        padding: 4rem 1.5rem 5rem;
    }
}

.contact-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Breadcrumb in hero - light theme override */
.contact-hero .mhp-breadcrumb {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-hero .mhp-breadcrumb-link {
    color: var(--slate-400);
}

.contact-hero .mhp-breadcrumb-link:hover {
    color: var(--primary-400);
}

.contact-hero .mhp-breadcrumb-separator {
    color: var(--slate-500);
}

.contact-hero .mhp-breadcrumb-current {
    color: var(--slate-300);
}

.contact-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: white;
    margin: 0 0 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .contact-hero-title {
        font-size: 3rem;
    }
}

.contact-hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-300);
    margin: 0;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */
.contact-main {
    padding: 3rem 1.5rem 4rem;
    background: var(--slate-50);
}

@media (min-width: 768px) {
    .contact-main {
        padding: 4rem 1.5rem 5rem;
    }
}

.contact-main-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .contact-main-inner {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */
.contact-form-section {
    order: 1;
}

.contact-form-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-200);
}

@media (min-width: 768px) {
    .contact-form-card {
        padding: 2.5rem;
    }
}

.contact-form-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--slate-900);
    margin: 0 0 1.5rem;
}

.contact-form-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* ========================================
   CONTACT FORM 7 STYLING
   ======================================== */
.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-wrapper .wpcf7-form p {
    margin: 0;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form textarea,
.contact-form-wrapper .wpcf7-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form textarea:focus,
.contact-form-wrapper .wpcf7-form select:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-50);
}

.contact-form-wrapper .wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-500);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

@media (min-width: 480px) {
    .contact-form-wrapper .wpcf7-form input[type="submit"] {
        width: auto;
    }
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background: var(--primary-600);
}

/* CF7 validation messages */
.contact-form-wrapper .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.contact-form-wrapper .wpcf7-response-output {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    background: #dcfce7;
    border: 1px solid #22c55e;
    color: #166534;
}

.contact-form-wrapper .wpcf7-validation-errors {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Fallback form styling */
.contact-fallback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-fallback-form p {
    margin: 0;
}

.contact-fallback-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.contact-fallback-form input[type="text"],
.contact-fallback-form input[type="email"],
.contact-fallback-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.contact-fallback-form input:focus,
.contact-fallback-form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-50);
}

.contact-fallback-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-fallback-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-500);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-fallback-form input[type="submit"]:hover {
    background: var(--primary-600);
}

/* ========================================
   CONTACT INFO SIDEBAR
   ======================================== */
.contact-info-section {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--slate-200);
    transition: all 0.3s;
}

.contact-info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-500);
}

.contact-info-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0;
}

.contact-info-content {
    padding-left: 56px;
}

.contact-info-content p {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin: 0;
    line-height: 1.6;
}

.contact-info-content p strong {
    color: var(--slate-800);
}

.contact-email-link {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contact-email-link:hover {
    color: var(--primary-600);
}

.contact-info-link {
    display: inline-block;
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.contact-info-link:hover {
    color: var(--primary-600);
}

/* Social Links */
.contact-social-links {
    display: flex;
    gap: 0.75rem;
}

.contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--slate-100);
    border-radius: 50%;
    color: var(--slate-600);
    transition: all 0.2s;
}

.contact-social-links a:hover {
    background: var(--primary-500);
    color: white;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .contact-hero-title {
        font-size: 1.875rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-title {
        font-size: 1.25rem;
    }
    
    .contact-info-content {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}
