/* ============================================================
   TK BLINDS CUSTOM CONTACT US PAGE WIDGET CSS
   ============================================================ */

/* General Wrapper Reset */
.elementor-widget-tk-contact-page,
.elementor-widget-tk-contact-page .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.tk-contact-page-wrapper {
    width: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    box-sizing: border-box !important;
    background-color: #f9fbfd !important;
}

.tk-contact-page-wrapper * {
    box-sizing: border-box !important;
}

/* ============================================================
   1. HERO BANNER SECTION
   ============================================================ */
.tk-contact-hero {
    position: relative !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    min-height: 380px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

.tk-contact-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(3, 33, 73, 0.85) 0%, rgba(11, 87, 163, 0.7) 100%) !important;
    z-index: 1 !important;
}

.tk-contact-hero-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 60px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.tk-contact-hero-title {
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -0.5px !important;
}

.tk-contact-hero-desc {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 28px 0 !important;
    max-width: 620px !important;
}

.tk-contact-hero-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tk-contact-hero-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.tk-contact-hero-meta-item i,
.tk-contact-hero-meta-item svg {
    font-size: 18px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   2. MAIN CONTENT AREA (2-COLUMN GRID)
   ============================================================ */
.tk-contact-main-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 60px 24px !important;
}

.tk-contact-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: stretch !important;
    width: 100% !important;
}

/* Left Card (Form) */
.tk-contact-form-card {
    flex: 1 1 58% !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #eff3f8 !important;
    padding: 48px !important;
    box-shadow: 0 10px 35px rgba(3, 33, 73, 0.02) !important;
}

/* Right Card (Sidebar) */
.tk-contact-info-card {
    flex: 1 1 42% !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #eff3f8 !important;
    padding: 48px !important;
    box-shadow: 0 10px 35px rgba(3, 33, 73, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Shared Card Headings */
.tk-contact-card-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #032149 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.tk-contact-card-accent-line {
    width: 40px !important;
    height: 3px !important;
    background-color: #0b57a3 !important;
    margin-bottom: 24px !important;
    border-radius: 2px !important;
}

.tk-contact-info-desc {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #5a6e85 !important;
    margin: 0 0 32px 0 !important;
}

/* ============================================================
   3. SIDEBAR GET IN TOUCH DETAILS
   ============================================================ */
.tk-contact-details-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tk-contact-detail-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
}

.tk-contact-detail-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background-color: #edf5fd !important;
    color: #0b57a3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(11, 87, 163, 0.04) !important;
}

.tk-contact-detail-content {
    display: flex !important;
    flex-direction: column !important;
}

.tk-contact-detail-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #7c8e9f !important;
    margin-bottom: 3px !important;
}

.tk-contact-detail-value {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #032149 !important;
    line-height: 1.4 !important;
}

/* CTA "Need Help Choosing?" Card */
.tk-contact-cta-card {
    background: linear-gradient(135deg, #032149 0%, #083c7a 100%) !important;
    border-radius: 12px !important;
    padding: 28px !important;
    margin-top: auto !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-shadow: 0 8px 24px rgba(3, 33, 73, 0.15) !important;
}

.tk-contact-cta-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.tk-contact-cta-icon {
    font-size: 26px !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
}

.tk-contact-cta-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.tk-contact-cta-desc {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
}

.tk-contact-cta-btn {
    display: block !important;
    width: 100% !important;
    background-color: #ffffff !important;
    color: #032149 !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.tk-contact-cta-btn:hover {
    background-color: #f4f6f9 !important;
    color: #0b57a3 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12) !important;
}

/* ============================================================
   4. CONTACT FORM 7 STYLING (MATCHING THE DESIGN)
   ============================================================ */
.tk-contact-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Make CF7 default containers harmless to grid layout */
.tk-contact-form-grid p,
.tk-contact-form-grid br {
    display: contents !important;
}

.tk-form-field-wrap {
    width: 100% !important;
    display: block !important;
}

.tk-form-field-wrap .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* Field Inner Box wrapper */
.tk-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
}

.tk-input-wrapper:hover {
    border-color: #c0c4cc !important;
}

.tk-input-wrapper:focus-within {
    border-color: #0b57a3 !important;
    box-shadow: 0 0 0 3px rgba(11, 87, 163, 0.1) !important;
}

/* Left Icon */
.tk-input-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border-right: 1px solid #dcdfe6 !important;
    color: #909399 !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

.tk-input-wrapper:focus-within .tk-input-icon {
    border-right-color: #0b57a3 !important;
    color: #0b57a3 !important;
}

/* Input Fields inside wrappers */
.tk-input-wrapper input.tk-field,
.tk-input-wrapper select.tk-field,
.tk-input-wrapper textarea.tk-field {
    border: none !important;
    background: transparent !important;
    padding: 12px 18px !important;
    width: 100% !important;
    height: 48px !important;
    outline: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #032149 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.tk-input-wrapper input.tk-field::placeholder,
.tk-input-wrapper textarea.tk-field::placeholder {
    color: #909399 !important;
    opacity: 0.8 !important;
}

/* Textarea Specific Adjustment */
.tk-input-wrapper.tk-textarea-wrapper {
    align-items: flex-start !important;
}

.tk-input-wrapper.tk-textarea-wrapper .tk-input-icon {
    height: 48px !important; /* Keep icon wrapper square at the top */
}

.tk-input-wrapper textarea.tk-field {
    height: 120px !important;
    resize: vertical !important;
    padding-top: 14px !important;
}

/* Custom Dropdown select styling */
.tk-input-wrapper select.tk-field {
    appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23909399' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}

.tk-input-wrapper:focus-within select.tk-field {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%230b57a3' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
}

/* Submit Button styling */
.tk-contact-form-grid .tk-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background-color: #0b57a3 !important; /* Brand Metallic Blue */
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: none !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(11, 87, 163, 0.15) !important;
    outline: none !important;
    width: auto !important;
}

.tk-contact-form-grid .tk-submit-btn:hover {
    background-color: #032149 !important; /* Dark Navy on hover */
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 16px rgba(3, 33, 73, 0.2) !important;
}

.tk-contact-form-grid .tk-submit-btn i,
.tk-contact-form-grid .tk-submit-btn svg {
    font-size: 14px !important;
}

/* Validation Messages styling */
.tk-contact-form-grid .wpcf7-response-output {
    margin: 12px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-width: 1px !important;
    box-sizing: border-box !important;
}

/* ============================================================
   5. BOTTOM FEATURES / TRUST BANNER
   ============================================================ */
.tk-contact-trust-bar {
    width: 100% !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eff3f8 !important;
    padding: 30px 40px !important;
    margin-top: 48px !important;
    box-shadow: 0 8px 30px rgba(3, 33, 73, 0.01) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

.tk-trust-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    flex: 1 1 22% !important;
}

.tk-trust-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    color: #0b57a3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    flex-shrink: 0 !important;
}

.tk-trust-icon-wrap i,
.tk-trust-icon-wrap svg {
    display: block !important;
    fill: currentColor !important;
}

.tk-trust-content {
    display: flex !important;
    flex-direction: column !important;
}

.tk-trust-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #032149 !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.2 !important;
}

.tk-trust-desc {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    color: #7c8e9f !important;
    margin: 0 !important;
}

/* Vertical separating dividers */
.tk-trust-divider {
    width: 1px !important;
    height: 45px !important;
    background-color: #eff3f8 !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   6. RESPONSIVENESS AND MOBILE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .tk-contact-grid {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .tk-contact-form-card,
    .tk-contact-info-card {
        width: 100% !important;
        flex: 1 1 100% !important;
        padding: 36px !important;
    }

    .tk-contact-trust-bar {
        padding: 24px 30px !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
    }

    .tk-trust-item {
        flex: 1 1 45% !important;
    }

    /* Hide middle vertical dividers on tablet */
    .tk-trust-divider {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .tk-contact-hero {
        min-height: 320px !important;
    }

    .tk-contact-hero-title {
        font-size: 32px !important;
    }

    .tk-contact-hero-desc {
        font-size: 14.5px !important;
        margin-bottom: 20px !important;
    }

    .tk-contact-hero-meta {
        gap: 20px !important;
    }

    .tk-contact-hero-meta-item {
        font-size: 13.5px !important;
    }

    .tk-contact-main-container {
        padding: 40px 16px !important;
    }

    .tk-contact-form-card,
    .tk-contact-info-card {
        padding: 28px 20px !important;
    }

    .tk-contact-card-title {
        font-size: 20px !important;
    }
}

@media (max-width: 576px) {
    .tk-contact-trust-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 24px 20px !important;
        gap: 24px !important;
    }

    .tk-trust-item {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .tk-contact-cta-card {
        padding: 20px !important;
    }

    .tk-contact-detail-item {
        gap: 16px !important;
    }

    .tk-contact-detail-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }

    .tk-contact-detail-value {
        font-size: 14px !important;
    }
}
