input:focus,

textarea:focus,

select:focus {

    outline: none !important;

    border-color: #8400ff !important; /* Brand */
    /* This creates that soft "glow" (ring) around the box */
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    transition: all 0.2s ease-in-out;
}

select {
    /* 1. Remove the boring browser arrow and grey shading */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* 2. Set the background to white and add a custom arrow */
    background-color: white !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem !important; /* Space for the new arrow */

    cursor: pointer;
}

/* 3. Match the focus ring we built earlier */
select:focus {
    outline: none !important;
    border-color: #8400ff !important;
    box-shadow: 0 0 0 3px rgba(132, 0, 255, 0.2) !important;
}

/* Kanban Card Context Dots */
.context-dot {
    cursor: pointer;
    transition: transform 0.15s ease, outline 0.15s ease;
}
.context-dot:hover {
    transform: scale(1.3);
}

/* Kanban Card Context Content */
.context-content p {
    margin-bottom: 2px;
    line-height: 1.4;
}

/* Stage column drag hover */
.stage-column.drag-over .leads-container {
    background-color: #f0fdf4;
    border: 2px dashed #22c55e;
    border-radius: 0.5rem;
}

/* Service table dotted leaders */
.service-table {
    width: 100%;
    border-collapse: collapse;
}
.service-row {
    display: flex;
    width: 100%;
}
.service-row td {
    display: block;
    padding-bottom: 3px;
}
.service-row td:first-child {
    white-space: nowrap;
    flex: none;
}
.service-dot {
    flex: 1;
    min-width: 6px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
}
.service-row td:last-child {
    white-space: nowrap;
    flex: none;
    text-align: right;
}
.service-row td {
    vertical-align: bottom;
    padding-bottom: 3px;
}
.service-row td:first-child {
    white-space: nowrap;
    padding-right: 3px;
}
.service-row td:last-child {
    white-space: nowrap;
    padding-left: 3px;
    text-align: right;
}
.service-dot {
    width: 100%;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

#section5 {
    padding: 100px 0 50px 0;
}

.cf-turnstile iframe {
    width: 100% !important;
}

@media only screen and (max-width: 666px) {
    #section1 div.max-w-6xl.mx-auto.px-6.flex.gap-12.items-center, #section1 div.flex.items-center.gap-6 {
        flex-direction: column !important;
    }

    #section1 div.max-w-6xl.mx-auto.px-6.flex.gap-12.items-center {
        padding-top: 100px !important;
    }

    #section1 div.flex.gap-5.mt-2 {
        justify-content: center;
    }

    #section2, #section3 {
        padding-top: 100px !important;
    }

    #section2 div.flex.gap-5.mt-2 {
        justify-content: center;
        width: 100%;
    }
}

@media only screen and (max-width: 400px) {
    #mainNav div.flex-1.flex.items-start.gap-8.justify-center {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
}

@media only screen and (max-width: 550px) {
    main div.mb-4.shrink-0.px-4.flex {
        flex-direction: column !important;
        text-align: center;
        align-items: center;
    }

    main h1 {
        font-size: 1.3rem !important;
    }

    main div.mb-4.shrink-0.px-4.flex img {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 650px) {
    #invoices-metrics div.grid.grid-cols-4.gap-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media only screen and (max-width: 900px) {
    main div.flex-1.min-h-0.flex.gap-6.px-4.pb-4 {
        flex-direction: column;
    }

    #invoices-metrics {
        width: 100% !important;
    }
}

@media only screen and (max-width: 1023px) {
    #chat-block {
        height: 500px !important;
    }
}
