/* DataLayer.Site Custom Styling */

:root {
    --dl-primary: #0066CC;
    --dl-accent: #FF6B35;
    --dl-dark: #1A2332;
    --dl-light: #F5F7FA;
}

/* Header logo sizing */
.wp-block-site-logo img {
    max-height: 50px;
    width: auto;
}

/* Primary button styling */
.wp-block-button__link {
    background-color: var(--dl-accent) !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
    background-color: #E55A2B !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

/* Homepage hero section */
.page-id-11 h1 {
    font-size: 3rem !important;
    line-height: 1.2 !important;
    color: var(--dl-dark) !important;
    margin-bottom: 1.5rem !important;
}

/* Service headings */
h2 {
    color: var(--dl-primary) !important;
    margin-top: 3rem !important;
}

/* Navigation */
.wp-block-navigation__responsive-container {
    background-color: white !important;
}

.wp-block-navigation-item__content {
    font-weight: 500 !important;
}

/* List checkmarks */
.wp-block-list li::marker {
    color: var(--dl-primary);
}

/* Hide page title on homepage */
.page-id-11 .entry-header {
    display: none !important;
}

.page-id-11 .wp-block-post-title {
    display: none !important;
}

/* ==============================================
   CONTACT FORM STYLING - CENTERED & IMPROVED
   ============================================== */

/* Contact page form container */
.page-id-51 .entry-content,
.page-id-51 .ast-article-single {
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contact Form 7 wrapper */
.wpcf7 {
    max-width: 650px;
    margin: 2rem auto !important;
    padding: 2.5rem;
    background: #F8F9FA;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form fields styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    background: white !important;
    transition: all 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-color: var(--dl-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
    outline: none !important;
}

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

/* Submit button */
.wpcf7 input[type="submit"] {
    background-color: var(--dl-accent) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    width: auto !important;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #E55A2B !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

/* Form labels */
.wpcf7 label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

/* Fallback for other contact forms */
#contact-form-placeholder,
.contact-form,
form[class*="contact"] {
    max-width: 650px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #F8F9FA;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#contact-form-placeholder input[type="text"],
#contact-form-placeholder input[type="email"],
#contact-form-placeholder textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

#contact-form-placeholder textarea,
.contact-form textarea {
    min-height: 140px;
}

#contact-form-placeholder input[type="submit"],
.contact-form input[type="submit"] {
    background-color: var(--dl-accent) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpcf7,
    #contact-form-placeholder,
    .contact-form,
    form[class*="contact"] {
        padding: 2rem 1.5rem;
        margin: 1.5rem 1rem;
    }

    .page-id-51 .entry-content,
    .page-id-51 .ast-article-single {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==============================================
   CODE BLOCK STYLING - IMPROVED READABILITY
   ============================================== */

/* Code blocks with proper contrast */
.wp-block-code {
    background-color: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    overflow-x: auto !important;
}

.wp-block-code code {
    background-color: transparent !important;
    color: #f8f8f2 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
    white-space: pre !important;
    padding: 0 !important;
}

/* Inline code styling */
code {
    background-color: #f4f4f4 !important;
    color: #c7254e !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 90% !important;
}

/* Override inline code inside paragraphs */
p code,
li code,
td code {
    background-color: #f4f4f4 !important;
    color: #c7254e !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Pre tag styling */
pre {
    background-color: #2d2d2d !important;
    border-radius: 6px !important;
    padding: 1.5rem !important;
    overflow-x: auto !important;
}

/* Ensure code inside pre has correct colors */
pre code {
    background-color: transparent !important;
    color: #f8f8f2 !important;
    padding: 0 !important;
}

/* Code block scrollbar styling */
.wp-block-code::-webkit-scrollbar,
pre::-webkit-scrollbar {
    height: 8px;
    background-color: #1a1a1a;
}

.wp-block-code::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.wp-block-code::-webkit-scrollbar-thumb:hover,
pre::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}
