* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    margin: initial;
    padding-left: 40px;
    box-sizing: initial;
}

a {
    color: inherit;
    text-decoration: none;
}


mark {
    background-color: transparent;
}

.wp-block-button__link {
    all: unset;
    cursor: pointer;
}

#primary-menu, #primary-menu-mobile, #menu-stopka-firma, #menu-stopka-uslugi, #menu-stopka-dokumenty {
    padding: 0;
    list-style: none;

    .current-menu-item > a {
        color: rgb(96 165 250)
    }
}

.text-decoration-none {
    text-decoration: none !important;
}

details > summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details > summary::marker,
details > summary::-webkit-details-marker {
    display: none;
}


details.animate summary svg {
    transition: transform 200ms ease-in-out;
}

details.animate[open] summary svg {
    transform: rotate(180deg);
}

#mobile-menu-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#mobile-menu-container.active {
    opacity: 1;
    pointer-events: auto;
}

#cmplz-document {
    max-width: initial;
}


/* --- CONTACT FORM --- */

.wpcf7-form {
    padding-bottom: 43px;
}

.wpcf7-not-valid {
    border-color: rgb(239 68 68) !important;
}

.wpcf7-not-valid-tip {
    font-size: .75rem;
    line-height: 1rem;
    margin-top: .25rem;
}

.wpcf7-form-control:focus-visible {
    outline-color: rgb(37 99 235);
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-response-output {
    margin: -10px 0 0 !important;
    border: none !important;
    font-size: 13px;
    padding: 0 20px 20px !important;
    color: #dd524c;
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: green;
}

.wpcf7-form.submitting {

}

/* --- MAIN FORM CONTAINER --- */

.wpcf7-form {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0/0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.wpcf7-form:hover {
    box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.1), 0 4px 6px -2px rgba(30, 41, 59, 0.05);
}

/* --- FORM HEADER --- */

.custom-form-header {
    padding: 1.5rem;
}

.custom-form-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.custom-form-title svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

/* --- FORM BODY & LAYOUT --- */

.custom-form-body {
    padding: 1.5rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.custom-form-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .custom-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- LABELS & INPUTS --- */

.custom-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.custom-form-input {
    display: flex;
    width: 100%;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.custom-form-input::placeholder {
    color: #64748b;
}

textarea.custom-form-input {
    min-height: 120px;
    height: auto;
}

@media (min-width: 768px) {
    .custom-form-input {
        font-size: 0.875rem; /* text-sm */
    }
}

/* --- ACCEPTANCE CHECKBOX --- */

.custom-form-acceptance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-form-acceptance input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.custom-form-acceptance-label {
    font-size: 0.775rem;
    color: #475569;
    cursor: pointer;
}

.custom-form-acceptance-label a {
    color: #2563eb;
    text-decoration: underline;
}

/* --- SUBMIT BUTTON --- */

.custom-form-submit-wrapper {
    position: relative;
    width: 100%;
}

.custom-form-submit-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: white;
    pointer-events: none;
}

.custom-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0.75rem 1rem 0.75rem 3.25rem;
    border: none;
    border-radius: 0.375rem;
    background-color: #2563eb;
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-form-submit:hover {
    background-color: #1d4ed8;
}

.custom-form-submit:disabled {
    opacity: .5;
}

.custom-form-submit svg {
    margin-right: 10px;
    margin-left: -30px;
    width: 18px;
    height: 18px;
}

.custom-form-info {
    font-size: 12px;
    color: #686868;
    font-weight: 400;
}

.custom-form-info a {
    color: #6464ff;
    text-decoration: underline;
}

/* -- SUBMITTING -- */
.wpcf7-form {
    position: relative;
}

.wpcf7-form.submitting {
    pointer-events: none;
    cursor: wait;
}

.wpcf7-form.submitting::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

.wpcf7-form.submitting::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    margin: -1.5rem 0 0 -1.5rem;
    border: 0.3rem solid #2563eb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cf7-spin 1s linear infinite;
    transform-origin: center center;
    z-index: 11;
}

@keyframes cf7-spin {
    to {
        transform: rotate(360deg);
    }
}

.wpcf7-form.submitting .custom-form-submit {
    cursor: wait;
    opacity: .7;
}

/*  --- HYPERLINK GROUP --- */

.wp-block-tiptip-hyperlink-group-block.block-editor-block-list__layout {
    padding: 0;
    border: none;
    background: none;
}

.wp-block-tiptip-hyperlink-group-block:hover {
    .block-editor-block-list__layout {
        color: inherit;
    }
}

.wp-block-tiptip-hyperlink-group-block.block-editor-block-list__layout:hover {
    background: none;
}

.backdrop-blur-sm {
    backdrop-filter: none;
}