
.wpcf7 {
    p {
        padding-block: 8px;
    }

    label {
        display: block;
        margin-bottom: 4px;
        font-size: 1.6rem;
        font-weight: bold;
        color: #333;
    }

    .form-group {
        margin-bottom: 20px;

        p {
            font-size: 1.6rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 12px;
        }

        label {
            display: block;
            margin-bottom: 16px;
        }
    }

    .wpcf7-form-control-wrap {
        display: block;
        width: 100%;
        margin-top: 8px;
    }

    .wpcf7-form-control {
        width: 100%;
        padding: 0.5rem 1rem;
        background-color: #fafafa;
        border: 1px solid #aaa;
        border-radius: 4px;
        font-size: 1.4rem;

        &:focus {
            outline: 2px solid #f06b6b;
            border-color: #f06b6b;
        }
    }

    .wpcf7-text,
    .wpcf7-email,
    .wpcf7-tel,
    .wpcf7-date,
    .wpcf7-select {
        height: 48px;
    }

    .wpcf7-textarea {
        resize: vertical;
        min-height: 120px;
    }

    .wpcf7-checkbox {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        width: 100% !important;
        padding: 0;
        background-color: transparent;
        border: none;
        border-radius: 0;

        .wpcf7-list-item {
            display: block;
            margin: 0;

            label {
                display: flex;
                align-items: center;
                padding: 8px 12px;
                background-color: #fafafa;
                border: 1px solid #aaa;
                border-radius: 4px;
                font-weight: normal;
                font-size: 1.6rem;
                cursor: pointer;
                transition: all 0.3s ease;

                &:hover {
                    border-color: #f06b6b;
                    background-color: #fff5f5;
                }
            }

            input[type="checkbox"] {
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                width: 18px;
                height: 18px;
                margin-right: 8px;
                cursor: pointer;
                background-color: #fff;
                border: 2px solid #aaa;
                border-radius: 3px;
                position: relative;
                flex-shrink: 0;
                transition: all 0.2s ease;

                &:hover {
                    border-color: #f06b6b;
                }

                &:checked {
                    background-color: #f06b6b;
                    border-color: #f06b6b;

                    &::after {
                        content: '';
                        position: absolute;
                        left: 5px;
                        top: 2px;
                        width: 5px;
                        height: 10px;
                        border: solid white;
                        border-width: 0 2px 2px 0;
                        transform: rotate(45deg);
                    }
                }

                &:checked + .wpcf7-list-item-label {
                    color: #f06b6b;
                    font-weight: bold;
                }
            }

            input[type="checkbox"]:checked ~ .wpcf7-list-item-label {
                color: #f06b6b;
                font-weight: bold;
            }
        }

        .wpcf7-list-item:has(input:checked) label {
            border-color: #f06b6b;
            background-color: #fff5f5;
        }
    }

    .wpcf7-submit {
        display: block;
        width: fit-content;
        min-width: 240px;
        height: auto;
        padding: 16px 24px;
        margin: 24px auto 0;
        background: #fafafa;
        color: #f06b6b;
        font-size: 1.8rem;
        font-weight: bold;
        text-align: center;
        border: 2px solid #f06b6b;
        border-radius: 10000px;
        box-shadow: 0 4px 0 #ccc;
        cursor: pointer;
        transition: all 0.3s ease;

        &:hover {
            background: #f06b6b;
            color: #fff;
            transform: translateY(2px);
            box-shadow: 0 2px 0 #ccc;
        }

        &:active {
            transform: translateY(4px);
            box-shadow: none;
        }
    }

    .wpcf7-spinner {
        display: none;
        margin-left: 8px;
    }

    .wpcf7-response-output {
        margin: 16px 0;
        padding: 12px 16px;
        border-radius: 4px;
        font-size: 1.4rem;
        text-align: center;

        &.wpcf7-validation-errors {
            background-color: #ffebee;
            border: 1px solid #f44336;
            color: #d32f2f;
        }

        &.wpcf7-mail-sent-ok {
            background-color: #e8f5e9;
            border: 1px solid #4caf50;
            color: #2e7d32;
        }
    }
}