/* Contact Page Styles - Consistent with Theme Design */

/* Contact Page Header Styling - Exact Product Detail Page Style */
body.page-template-page-template-contact .site-header {
    background-color: #EEEEEE !important;
    box-shadow: none !important;
    position: sticky !important;
    top: 0 !important; /* Stick right after top bar */
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #000000;
}

/* Top bar remains unchanged for consistency */
body.page-template-page-template-contact .top-bar {
    background-color: #0B926A;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

/* Contact Page Header Text Black */
body.page-template-page-template-contact .primary-menu li a {
    color: #000000 !important;
    font-family: sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body.page-template-page-template-contact .primary-menu li a:hover {
    color: #0B926A !important;
}

body.page-template-page-template-contact .header-actions a {
    color: #000000 !important;
}

body.page-template-page-template-contact .header-actions a:hover {
    color: #0B926A !important;
}

body.page-template-page-template-contact .toggle-menu {
    color: #000000 !important;
}

body.page-template-page-template-contact .toggle-menu:hover {
    color: #0B926A !important;
}

/* Ensure cart count badge remains visible */
body.page-template-page-template-contact .cart-count {
    background-color: #0B926A !important;
    color: white !important;
}

/* Logo text styling - consistent with theme */
body.page-template-page-template-contact .logo-text {
    color: #0B926A;
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* Search dropdown styling for contact page */
body.page-template-page-template-contact .search-dropdown {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.page-template-page-template-contact .search-input {
    color: #333;
}

body.page-template-page-template-contact .search-btn {
    background-color: #0B926A;
    color: white;
}

/* Mobile menu styling for contact page */
body.page-template-page-template-contact .mobile-menu {
    background-color: white;
}

body.page-template-page-template-contact .mobile-nav a {
    color: #333 !important;
}

body.page-template-page-template-contact .mobile-nav a:hover {
    color: #0B926A !important;
}

/* Adjust main content to account for sticky header */
body.page-template-page-template-contact .contact-page {
    margin-top: 0; /* No extra margin needed with sticky header */
}

/* Hero Section Styles - Theme Consistent */
.page-hero {
    background: linear-gradient(135deg, rgba(11, 146, 106, 0.8) 0%, rgba(8, 119, 74, 0.8) 100%), url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.page-subtitle {
    font-family: 'Century Gothic', sans-serif;
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.page-subtitle:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ffffff;
}

/* Contact Page Content */
.contact-page {
    padding: 0 0 80px;
    background-color: #ffffff;
}

/* Contact Container Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

/* Contact Info Section */
.contact-info {
    background: #ffffff;
    padding: 0;
}

.info-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.info-icon {
    font-size: 24px;
    color: #0B926A;
    margin-right: 20px;
    min-width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0B926A 0%, #08774a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 12px rgba(11, 146, 106, 0.3);
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.info-content p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    margin: 0 0 5px;
    line-height: 1.5;
}

/* Social Links Section - Contact Page Only */
.contact-info .social-links {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info .social-links h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-info .social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-info .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0B926A 0%, #08774a 100%);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(11, 146, 106, 0.3);
}

.contact-info .social-icons a:hover {
    background: linear-gradient(135deg, #08774a 0%, #0B926A 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(11, 146, 106, 0.4);
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0B926A 0%, #08774a 100%);
}

.contact-form-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    line-height: 1.2;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #888888;
    border-radius: 4px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    color: #333333;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #0B926A;
    box-shadow: 0 0 0 2px rgba(11, 146, 106, 0.1);
}

.form-control::placeholder {
    color: #999999;
    font-style: italic;
}

/* Required Field Indicator */
.required {
    color: #dc3545;
    margin-left: 3px;
}

/* Submit Button */
.btn {
    background-color: #0B926A;
    color: #ffffff !important;
    border: none;
    padding: 15px 30px;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 180px;
}

.btn:hover {
    background-color: #08774a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 146, 106, 0.3);
    text-decoration: none;
}

.btn i {
    font-size: 14px;
}

/* Form Note */
.form-note {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0B926A;
    border-radius: 0 4px 4px 0;
}

.form-note p {
    font-family: 'Century Gothic', sans-serif;
    color: #666666;
    font-style: italic;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Contact Form 7 Specific Styles */
.wpcf7-form {
    margin-top: 0;
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    display: block;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    width: 100%;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #888888;
    border-radius: 4px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    color: #333333;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #0B926A;
    box-shadow: 0 0 0 2px rgba(11, 146, 106, 0.1);
}

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

.wpcf7-form input[type="submit"] {
    background-color: #0B926A;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
    min-width: 180px;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #08774a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 146, 106, 0.3);
}

/* Contact Form 7 Validation */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px 20px !important;
    border-radius: 4px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    text-align: center;
}

.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background-color: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    color: #856404 !important;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

/* Two-column layout for name and email */
.wpcf7-form .name-email-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Page Content */
.page-content {
    margin: 40px 0;
    font-family: 'Century Gothic', sans-serif;
    line-height: 1.6;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    font-family: 'Cormorant Garamond', serif;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content p {
    color: #666666;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Hide top bar on mobile for contact page */
    body.page-template-page-template-contact .top-bar {
        display: none !important;
    }
    
    /* Adjust header positioning since top bar is hidden */
    body.page-template-page-template-contact .site-header {
        position: sticky !important;
        top: 0 !important;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
        margin-bottom: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .wpcf7-form .name-email-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 35px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .contact-page {
        padding: 0 0 50px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form-container h2 {
        font-size: 28px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .info-content h3 {
        font-size: 18px;
    }
    
    .info-content p {
        font-size: 14px;
    }
    
    .contact-info .social-icons a {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-form-container h2 {
        font-size: 24px;
    }
    
    .info-box {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .wpcf7-form input[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
}