/**
 * Contact V2 - Integrated with Martinez site
 * Mobile-First Responsive Design
 */

/* Import modern readable font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables (matching site)
   ============================================ */
:root {
    --cv2-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cv2-gold: #C88F08;
    --cv2-gold-light: #D4A84B;
    --cv2-gold-dark: #A67506;
    --cv2-dark: #1a1a1a;
    --cv2-darker: #111111;
    --cv2-text: #333333;
    --cv2-text-light: #777777;
    --cv2-white: #ffffff;
    --cv2-cream: #F8F7F5;
    --cv2-border: rgba(0, 0, 0, 0.08);
}

/* ============================================
   Main Page Container - No gaps
   ============================================ */
.contact-v2-page {
    margin: 0;
    padding: 0;
    font-family: var(--cv2-font);
}

.contact-v2-page h1,
.contact-v2-page h2,
.contact-v2-page h3,
.contact-v2-page p,
.contact-v2-page span,
.contact-v2-page a,
.contact-v2-page label,
.contact-v2-page input,
.contact-v2-page textarea,
.contact-v2-page button {
    font-family: var(--cv2-font);
}

/* Remove any default page padding/margin from theme */
.page-template-page-contact-v2 .main-page-wrapper,
.page-template-page-contact-v2 .website-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-template-page-contact-v2 .wd-page-title,
.page-template-page-contact-v2 .page-title {
    display: none !important;
}

/* Remove container restrictions for full-width layout */
.page-template-page-contact-v2 #main-content.container,
.page-template-page-contact-v2 .wd-content-layout.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.page-template-page-contact-v2 .wd-page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure header maintains normal size */
.page-template-page-contact-v2 .whb-header {
    position: relative !important;
}

/* Remove any spacing above first section */
.page-template-page-contact-v2 .contact-v2-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-template-page-contact-v2 .cv2-shops-section {
    margin-top: 0 !important;
    padding-top: 100px !important;
}

/* ============================================
   SECTION 1: Shop Listings
   ============================================ */
.cv2-shops-section {
    background: var(--cv2-darker);
    padding: 50px 20px;
}

.cv2-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Grid: Shops + Contact Info */
.cv2-main-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cv2-shops-column {
    flex: 1;
}

.cv2-info-column {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.cv2-info-column .cv2-info-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 30px 20px;
}

.cv2-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.cv2-section-header h1 {
    font-size: 28px;
    font-weight: 400;
    color: var(--cv2-white);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.cv2-section-header p {
    font-size: 14px;
    color: var(--cv2-text-light);
    margin: 0;
}

/* Shop Accordion */
.martinez-shops-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    margin: 0;
}

.martinez-city-item {
    background: var(--cv2-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.martinez-city-item:hover,
.martinez-city-item.open {
    border-color: rgba(200, 143, 8, 0.3);
}

.martinez-city-header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
    gap: 12px;
}

.martinez-city-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.martinez-city-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--cv2-white);
    letter-spacing: 0.3px;
    flex: 1;
}

.martinez-city-count {
    font-size: 12px;
    color: var(--cv2-text-light);
    font-weight: 400;
}

.martinez-city-arrow {
    width: 18px;
    height: 18px;
    color: var(--cv2-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.martinez-city-item.open .martinez-city-arrow {
    transform: rotate(180deg);
}

.martinez-city-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.martinez-city-item.open .martinez-city-content {
    max-height: 1500px;
}

.martinez-shop-detail {
    margin: 12px;
    padding: 20px;
    background: rgba(200, 143, 8, 0.08);
    border: 1px solid rgba(200, 143, 8, 0.2);
    border-radius: 6px;
}

.martinez-shop-detail:first-child {
    margin-top: 0;
}

.martinez-shop-location {
    font-size: 16px;
    font-weight: 600;
    color: var(--cv2-white);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.martinez-shop-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    padding: 0 0 12px 0;
}

.martinez-shop-row svg {
    width: 18px;
    height: 18px;
    color: var(--cv2-gold);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Shop Hours */
.martinez-shop-hours {
    padding: 12px 0;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 12px 14px;
}

.martinez-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.martinez-hours-day {
    color: #aaa;
    font-weight: 400;
}

.martinez-hours-time {
    color: var(--cv2-white);
    font-weight: 500;
}

.martinez-hours-time.closed {
    color: #888;
    font-style: italic;
    font-weight: 400;
}

.martinez-shop-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cv2-dark);
    background: var(--cv2-gold);
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.martinez-shop-directions:hover {
    background: var(--cv2-gold-light);
    color: var(--cv2-dark);
}

.martinez-shop-directions svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.martinez-shop-directions:hover svg {
    transform: translateX(4px);
}

/* Remove gap before footer */
.page-template-page-contact-v2 .wd-page-content,
.page-template-page-contact-v2 #main-content,
.page-template-page-contact-v2 .contact-v2-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page-template-page-contact-v2 .wd-content-layout {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Contact Info Panel (in right column) */
.cv2-info-panel {
    padding: 0;
}

/* Contact Form Panel (in right column) */
.cv2-info-column .cv2-form-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px 20px;
    margin-top: 20px;
}

.cv2-info-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--cv2-white);
    margin: 0 0 10px 0;
}

.cv2-info-subtitle {
    font-size: 14px;
    color: var(--cv2-text-light);
    margin: 0 0 30px 0;
}

/* Contact Cards */
.cv2-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.cv2-contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cv2-contact-card:hover {
    background: rgba(200, 143, 8, 0.08);
    border-color: rgba(200, 143, 8, 0.3);
}

.cv2-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(200, 143, 8, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv2-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--cv2-gold);
}

.cv2-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv2-card-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cv2-text-light);
}

.cv2-card-value {
    font-size: 14px;
    color: var(--cv2-white);
}

/* Social Links */
.cv2-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cv2-social-label {
    font-size: 12px;
    color: var(--cv2-text-light);
}

.cv2-social-icons {
    display: flex;
    gap: 10px;
}

.cv2-social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 143, 8, 0.3);
    transition: all 0.3s;
}

.cv2-social-icons a:hover {
    background: var(--cv2-gold);
    border-color: var(--cv2-gold);
}

.cv2-social-icons svg {
    width: 16px;
    height: 16px;
    fill: var(--cv2-gold);
    transition: fill 0.3s;
}

.cv2-social-icons a:hover svg {
    fill: var(--cv2-dark);
}

/* Right Panel: Contact Form */
.cv2-form-panel {
    padding: 0;
}

.cv2-form-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--cv2-white);
    margin: 0 0 10px 0;
}

.cv2-form-subtitle {
    font-size: 14px;
    color: var(--cv2-text-light);
    margin: 0 0 25px 0;
}

/* ============================================
   Contact Form 7 Styling
   ============================================ */
.cv2-form-wrapper .wpcf7-form {
    margin: 0;
}

.cv2-form-wrapper .wpcf7-form .row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv2-form-wrapper .wpcf7-form p {
    margin: 0 0 18px 0;
}

.cv2-form-wrapper .wpcf7-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    margin-bottom: 8px;
}

.cv2-form-wrapper .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--cv2-white);
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.cv2-form-wrapper .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--cv2-gold);
}

.cv2-form-wrapper .wpcf7-form-control::placeholder {
    color: #666;
}

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

/* Submit Button */
.cv2-form-wrapper .wpcf7-submit {
    width: 100%;
    padding: 16px 30px;
    background: var(--cv2-gold) !important;
    border: none !important;
    color: var(--cv2-white) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.cv2-form-wrapper .wpcf7-submit:hover {
    background: var(--cv2-gold-dark) !important;
}

/* Validation */
.cv2-form-wrapper .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.cv2-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px;
    border: none;
    font-size: 14px;
}

/* ============================================
   Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .cv2-shops-section {
        padding: 70px 30px;
    }

    .cv2-section-header h1 {
        font-size: 34px;
    }

    .cv2-form-wrapper .wpcf7-form .row {
        flex-direction: row;
        gap: 20px;
    }

    .cv2-form-wrapper .wpcf7-form .row > p {
        flex: 1;
        margin-bottom: 18px;
    }

    .cv2-info-content h2,
    .cv2-form-content h2 {
        font-size: 28px;
    }
}

/* ============================================
   Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .cv2-shops-section {
        padding: 80px 40px;
    }

    .cv2-section-header h1 {
        font-size: 38px;
    }

    /* Two columns: Shops + Contact Info & Form */
    .cv2-main-grid {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
        justify-content: center;
    }

    .cv2-shops-column {
        flex: 0 0 auto;
        width: 550px;
    }

    .cv2-info-column {
        flex: 0 0 auto;
        width: 450px;
        max-width: 450px;
        margin: 0;
    }

    .cv2-info-column .cv2-info-panel {
        padding: 30px 25px;
    }

    .cv2-info-column .cv2-form-panel {
        padding: 30px 25px;
        margin-top: 25px;
    }

    .cv2-info-content h2,
    .cv2-form-content h2 {
        font-size: 32px;
    }

    .cv2-form-section .cv2-form-panel {
        padding: 50px 60px;
    }
}

/* ============================================
   Large Desktop (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .cv2-main-grid {
        gap: 80px;
    }

    .cv2-shops-column {
        width: 600px;
    }

    .cv2-info-column {
        width: 480px;
        max-width: 480px;
    }

    .cv2-info-column .cv2-info-panel {
        padding: 40px 35px;
    }

    .cv2-form-section .cv2-form-panel {
        padding: 60px 80px;
    }
}
